Skip to content
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

[FEATURE]Add Category-Specific Suppression Rules #1431

Open
amitgalitz opened this issue Mar 6, 2025 · 2 comments
Open

[FEATURE]Add Category-Specific Suppression Rules #1431

amitgalitz opened this issue Mar 6, 2025 · 2 comments
Labels
enhancement New feature or request

Comments

@amitgalitz
Copy link
Member

amitgalitz commented Mar 6, 2025

Is your feature request related to a problem?
AD currently supports suppression rules at the feature level, allowing users to define threshold-based rules so that anomalies are ignored by minor fluctuations in anomaly detection. These rules can be configured based on either relative percentage absolute threshold value difference between the expected and actual values.

However, suppression rules today apply globally to all entities within a categorical field. For example, if a user configures anomaly detection for a region field, suppression rules will apply across all regions being monitored:

region=us-west-1
region=us-west-2
region=us-east-1
region=eu-west-3
...etc.

There is no way to apply suppression rules only to specific category values, such as only suppressing anomalies for us-west-* if the categorical field was region while keeping anomaly detection unchanged for other regions.

What solution would you like?

We propose adding support for category-specific suppression rules in anomaly detection, allowing users to define suppression rules for specific entities within a categorical field instead of applying them to all entities.

  • Entities can be chosen by regex or some other type of criteria.
  • Users should be able to set multiple regex pattern for the same categorical field

We will need both a solution on the backend to add this capability and a frontend solution as well to make it easy for users to configure category specific rules.

Frontend Solution

In order to make category specific suppression rules easy to configure we will need to adjust our anomaly-detection dashboards plugins.

Options:

  1. Extend the Suppression Rules Section

Add an optional dropdown or text field that allows users to specify which category values the suppression rules should apply to.

  • Support explicit entity selection (e.g., us-west-1, us-east-1) and regex capabilities (e.g., us-west-*).
  1. Change the categorical field section

When a categorical field is enabled, display an additional selector to specify which category values to apply the suppression rule to.
Users should be able to:

  • Define suppression rules for all entities (default behavior).
  • Define suppression rules only for specific entities (new feature).
  • Define suppression rules using regex
@amitgalitz amitgalitz added enhancement New feature or request untriaged labels Mar 6, 2025
@kaituo
Copy link
Collaborator

kaituo commented Mar 10, 2025

  1. We define feature first and then categorical field. "Extend the Suppression Rules Section" option would force people to go back and forth in UX. Not good.
  2. Categorical field is for splitting time series. It is not optimal to mix rules and categorical together.

How about a separate rule section? You can preload existing features and categorical field. They can add rules on top of features and categorical fields?

@kaituo kaituo removed the untriaged label Mar 10, 2025
@amitgalitz
Copy link
Member Author

  1. We define feature first and then categorical field. "Extend the Suppression Rules Section" option would force people to go back and forth in UX. Not good.
  2. Categorical field is for splitting time series. It is not optimal to mix rules and categorical together.

How about a separate rule section? You can preload existing features and categorical field. They can add rules on top of features and categorical fields?

That's a fair point, adding an additional section can work also, I see there being two ways for this. One way is to create all the rules there along with the regex for each entities these rules will apply too, the other option is still create the rules as part of the feature definition but show them as read only in this new section of the form along with displaying the categorical fields in order to let users define the regex rules there

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants