-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[Metrics UI] Metrics Threshold doesn't warn about redundant groupBy when creating/editing through the API #116197
Comments
Pinging @elastic/logs-metrics-ui (Team:logs-metrics-ui) |
Pinging @elastic/obs-ux-infra_services-team (Team:obs-ux-infra_services) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Pinging @elastic/obs-ux-management-team (Team:obs-ux-management) |
@elastic/obs-ux-management-team this came up as stale but it looks like it's for the alerting rule so I changed the team label. |
@maryam-saeidi do you know if we still do this check in the UI? I think we should probably not do it at all, since adding "Group By" fields is a way to trigger various alerts as data storage scenarios, so a user may have reasons for keeping a group by in place even if it's "redundant" as this issue describes. |
I've tested locally, and I didn't see this check in the Metric threshold rule: Checking the related PR, I see the code is there, but I am not sure why it is not working anymore. We also copied this logic to the custom threshold rule. @jasonrhodes I agree with allowing users to add both group by field and filter for the same field (in this case, the value will be included in the instance id of the alert and can be used in the alert table), so shall we have a separate ticket for removing the related logic from both the custom threshold and metric threshold rules? |
OK thanks, I vote to remove this code from all places (here, custom threshold.... anywhere else?) We will create a new ticket to do this that references this one. |
Created #184712 for removing unused code. |
In #111891, we added this UI warning when the user tries to
groupBy
something that they're already filtering down to a single match:Unfortunately, the user doesn't see this warning when they edit alerts through the API. If they're trying to bulk edit a large group of alerts, or create them programmatically, they might end up with a lot of unnecessarily grouped alerts which are prone to errors.
Possible solutions are to:
force
flag?)Any implementation of this should be sure to also implement the
OR
fix detailed in #116195The text was updated successfully, but these errors were encountered: