[show][config] Add CLI support for configurable drop monitor feature#3756
Merged
vmittal-msft merged 4 commits intosonic-net:masterfrom Sep 3, 2025
Merged
Conversation
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
78028a4 to
3a2461c
Compare
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
3a2461c to
0b3e396
Compare
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
0b3e396 to
f7dde2d
Compare
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
* Implements commands to configure persistent drop monitor thresholds. * Adds support for setting monitoring window size, drop count threshold, and incident count threshold. * Includes `show dropcounters persistent_drops` command to display persistent drop alerts. * Provides `config dropcounters enable_monitor/disbale_monitor` command to enable/disable the feature. * Adds unit tests to cover the new CLI functionality.
f7dde2d to
5d8a671
Compare
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
95b259e to
0f99e0f
Compare
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
0f99e0f to
f2e7558
Compare
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
f2e7558 to
d76c878
Compare
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Collaborator
|
/azp run |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Contributor
Author
|
Hi @vmittal-msft could I get a review on this PR? All changes that we have discussed have been made. |
Contributor
|
@arista-hpandya Sure. Will work on it this week. |
Contributor
Author
|
Hi @vmittal-msft did you get a chance to go over the changes? Let me know if there are any clarifications you need from my end. Thank you! |
Contributor
|
@arista-hpandya changes look ok to me. few comments -
|
vmittal-msft
requested changes
Jul 29, 2025
Contributor
vmittal-msft
left a comment
There was a problem hiding this comment.
Please see comment.
YairRaviv
pushed a commit
to YairRaviv/sonic-utilities
that referenced
this pull request
Jan 12, 2026
…onic-net#3756) * [show][config] Add CLI support for configurable drop monitor feature * Implements commands to configure persistent drop monitor thresholds. * Adds support for setting monitoring window size, drop count threshold, and incident count threshold. * Includes `show dropcounters persistent_drops` command to display persistent drop alerts. * Provides `config dropcounters enable_monitor/disbale_monitor` command to enable/disable the feature. * Adds unit tests to cover the new CLI functionality. * Fix test failures and minor edits * Add more testcases for coverage * Update CLI to reflect changes in HLD
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This PR enables users to proactively monitor and identify persistent packet drops in their SONiC environment, improving network stability and troubleshooting capabilities.
Fixes #3757
What I did
show dropcounters persistent-dropscommand to display persistent drop alerts.config dropcounters enable-monitor/disbale-monitorcommand to enable/disable the feature.Key Features:
How I did it
How to verify it
Previous command output (if the output of a command-line utility has changed)
NA
New command output (if the output of a command-line utility has changed)
Snapshots from an Arista switch running SONiC.
Documentation
Details are discussed in the HLD: sonic-net/SONiC#1912