-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add YANG Model and Configuration Support for Memory Statistics #20354
Add YANG Model and Configuration Support for Memory Statistics #20354
Conversation
Signed-off-by: Arham-Nasir <arqamnasir719@gmail.com>
Hi @qiluo-msft , @prgeor , and @FengPan-Frank , Could you please help review the HLD and the linked code PRs for our feature? Thank you! |
could you pls change
|
Signed-off-by: Arham-Nasir <arqamnasir719@gmail.com>
@FengPan-Frank , I updated the sonic-buildimage/src/sonic-yang-models/doc/Configuration.md file to include the Memory Statistics section. Thank you for your feedback! |
/azpw run Azure.sonic-buildimage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
/azpw run |
/AzurePipelines run |
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Arham-Nasir <arqamnasir719@gmail.com>
@qiluo-msft @xincunli-sonic @zbud-msft . Please help review the feature. |
@qiluo-msft @xincunli-sonic pls help review this feature |
…-net#20354) This PR introduces a new YANG model for configuring memory statistics in SONiC, along with necessary updates to the configuration database and test cases. The following changes have been made: YANG Model: Created a new YANG module sonic-memory-statistics.yang for managing memory statistics configuration parameters, including: enabled: Boolean flag to enable or disable memory statistics collection. sampling_interval: Configurable time interval for sampling memory statistics. retention_period: Configurable retention period for memory statistics data. Configuration Database: Updated sample_config_db.json to include default values for the memory statistics configuration, ensuring seamless integration with the existing configuration management. Test Cases: Added comprehensive test cases in memory_statistics.json to validate the configuration parameters, including valid configurations and error scenarios for invalid sampling intervals and retention periods. These changes aim to enhance the monitoring capabilities of SONiC by providing a structured way to configure memory statistics, thereby improving overall system performance and resource management.
This PR introduces a new YANG model for configuring memory statistics in SONiC, along with necessary updates to the configuration database and test cases. The following changes have been made:
YANG Model:
sonic-memory-statistics.yang
for managing memory statistics configuration parameters, including:enabled
: Boolean flag to enable or disable memory statistics collection.sampling_interval
: Configurable time interval for sampling memory statistics.retention_period
: Configurable retention period for memory statistics data.Configuration Database:
sample_config_db.json
to include default values for the memory statistics configuration, ensuring seamless integration with the existing configuration management.Test Cases:
memory_statistics.json
to validate the configuration parameters, including valid configurations and error scenarios for invalid sampling intervals and retention periods.These changes aim to enhance the monitoring capabilities of SONiC by providing a structured way to configure memory statistics, thereby improving overall system performance and resource management.