Skip to content

[Feature] Add CLI support for configuring persistent drop monitor #3757

@arista-hpandya

Description

@arista-hpandya

Description:

This issue tracks the implementation of CLI support for configuring and managing the persistent drop monitor feature in SONiC. This feature enables users to define thresholds for drop counts and incident counts within a specified time window, which registers alerts when persistent drops are detected.

Tasks:

  • Implement new CLI commands to enable/disable and configure the persistent drop monitor, including:
    • Setting the monitoring window size (-w/--window)
    • Setting the drop count threshold (-dct/--drop-count-threshold)
    • Setting the incident count threshold (-ict/--incident-count-threshold)
    • Have ability to enable/disable the feature on individual drop counters
  • Update the show dropcounters command to display the current monitor configuration.
  • Implement input validation and error handling for the new CLI commands.
  • Add unit tests to cover the new CLI functionality.
  • Update documentation to reflect the new CLI commands and options.

Background:

The persistent drop monitor feature allows for proactive monitoring and identification of persistent packet drops in the SONiC environment. It builds upon the existing drop counter functionality and provides a mechanism to detect and log sustained drop patterns. The configuration has two levels of granularity global and for each drop counter. For the feature to track the drops on a specific drop counter, both the global and the drop counter specific toggle should be enabled.

References:

Assignee:
@arista-hpandya

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions