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

Alerting: Allow re-ordering of Notification Policies #60101

Closed
gillesdemey opened this issue Dec 9, 2022 · 1 comment · Fixed by #83704
Closed

Alerting: Allow re-ordering of Notification Policies #60101

gillesdemey opened this issue Dec 9, 2022 · 1 comment · Fixed by #83704
Assignees
Labels
area/alerting Grafana Alerting area/frontend internal for issues made by grafanistas type/feature-request

Comments

@gillesdemey
Copy link
Member

It's currently not possible to re-order notification policies in the policy tree. This is of little importance if none of the notification policies have overlapping label matchers.

This becomes more important if you do have notification policies with overlapping label matchers and you want to use the deterministic algorithm of the tree selection (depth-first, left to right) to match the correct policy.

It should therefore be possible to re-order notification policies of the root route and child policies.

See #52574
Prom docs https://prometheus.io/docs/alerting/latest/configuration/#route

@gtirloni
Copy link

gtirloni commented Sep 20, 2023

We've migrated from the legacy alerting and would like to introduce new notification policies while keeping the old ones in place. For that, we need to created nested policies at the top of the tree but that's currently not possible (new nested policies go to the bottom). Yes, there will be some overlaps so I was looking to rearrange the policies.

Until this is implemented in Grafana, is there a workaround that avoids having to delete and recreate everything from scratch? Can we edit JSON somewhere? EDIT: I was able to go to Alerting > Admin and edit the JSON manually to rearrange things.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/alerting Grafana Alerting area/frontend internal for issues made by grafanistas type/feature-request
Projects
Archived in project
3 participants