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

ruler: Support alert relabeling #5886

Closed
badrabubker opened this issue Apr 12, 2022 · 0 comments · Fixed by #6220
Closed

ruler: Support alert relabeling #5886

badrabubker opened this issue Apr 12, 2022 · 0 comments · Fixed by #6220
Labels
component/ruler type/feature Something new we should do

Comments

@badrabubker
Copy link

badrabubker commented Apr 12, 2022

Hello Loki development team,
I would like to ask for adding alert_relabel_configs to ruler

Is your feature request related to a problem?
I have the current setup:
Prometheus + Alertmanager + Opsgenie and recently Loki was deployed
I use alert_relabel_configs in Prometheus to map severity of an alert to Opsgenie priority
e.g.

alert_relabel_configs:
  - source_labels: [severity]
    regex: emergency
    target_label: opsgenie_priority
    replacement: P1

to abstract Opsgenie priorities. I can't do that with ruler since it does not support alert relabeling.

Describe the solution you'd like
Add alert relabeling similar to Prometheus

Describe alternatives you've considered
I could do the mapping on alert manager side but I had to define 5 more receivers for each receiver I had
e.g.

      routes:
      - match:
          severity: emergency
        receiver: events-P1
      - match:
          severity: alert
        receiver: events-P2
.....

Additional context

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component/ruler type/feature Something new we should do
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants