grafana / mimir

Grafana Mimir provides horizontally scalable, highly available, multi-tenant, long-term storage for Prometheus.
https://grafana.com/oss/mimir/
GNU Affero General Public License v3.0
4.18k stars 537 forks source link

[ruler] add possibility for alert_relabeling config #7295

Open ToonTijtgat2 opened 10 months ago

ToonTijtgat2 commented 10 months ago

Is your feature request related to a problem? Please describe.

We'd like to move our alerting from prometheus to mimir ruler and alertmanager to have all the alerts in one place. But there is no possibility to relabel before sending the alert to alertmanager.

Describe the solution you'd like

We would be in need to be able to do relabeling for alert. https://prometheus.io/docs/prometheus/latest/configuration/configuration/#alert_relabel_configs This is possible in the ruler of loki, but not for mimir. https://github.com/grafana/loki/blob/c350641a64b041228616c84c69e6fe834b5bd581/docs/sources/configure/_index.md?plain=1#L1019

oferziss-armis commented 3 months ago

+1

fahdessmaki commented 2 months ago

Please could you merge this PR ? Thank you 🙏

ying-jeanne commented 1 month ago

We need to pick up that PR, adding some tests and fixing nits. This can be done by origin author or someone else who is willing to contribute.

ToonTijtgat2 commented 1 month ago

@ying-jeanne Since the difference is that big between loke and mimir ruler, I have to be honest that my knowledge of the code is not good enough to fix this good. I hope someone is able to help.

oferziss-armis commented 1 month ago

this is a key feature we really need this +1