alloy icon indicating copy to clipboard operation
alloy copied to clipboard

Listen for AlertManagerConfig CRDs and configure Alertmanager in Grafana Mimir/Cortex

Open nicoche opened this issue 2 years ago • 10 comments

Similarly to https://github.com/grafana/agent/issues/1544, the agent could discover AlertManagerConfig CRDs to configure mimir's alert manager via its API

nicoche avatar Jan 14 '23 15:01 nicoche

Hey there! 👋 Yes, that sounds like an interesting idea!

Would you like to take a shot at creating an Agent Flow component for it? We can provide guidance around it.

tpaschalis avatar Jan 26 '23 15:01 tpaschalis

Hey! I've been planning to 🙂 However, I haven't been able to find the time yet -I'll try to in the coming weeks.

Thanks for the proposition to help! I believe that we can do something similar to https://github.com/grafana/agent/pull/2604

nicoche avatar Jan 27 '23 11:01 nicoche

This would be so useful to us!

ilia-medvedev-codefresh avatar Feb 07 '23 13:02 ilia-medvedev-codefresh

I would like to see an example of that using grafana agent operator CRDs

rafilkmp3 avatar May 24 '23 20:05 rafilkmp3

@tpaschalis, can you give me some guidance? I have a lot of prometheus rules in my cluster and since I moved to prometheus-agent I lost all my alerting system since mimir ruler does not use rules for nothing

rafilkmp3 avatar May 24 '23 20:05 rafilkmp3

@rafilkmp3 Apologies I totally missed your initial message. In case you're still interested, you can take some inspiration from grafana/agent#2604; implementing a new mimir.alertmanager.kubernetes component.

tpaschalis avatar Sep 06 '23 08:09 tpaschalis

I just wanted to bump this issue since the feature would be an absolute bomber. I did not miss any other implementations that would solve this request, right?

Thanks for the amazing tools you guys develop!

LeszekBlazewski avatar Feb 21 '24 23:02 LeszekBlazewski

Another +1 from me! The integration with Mimir Ruler is super useful! Thanks for implementing that :blush: Alertmanager is the final piece of the puzzle!

bcrisp4 avatar Mar 12 '24 15:03 bcrisp4

+1 for this feature

reda-ayoub avatar Mar 15 '24 11:03 reda-ayoub

Could we help get this over the line please? :) So close

jeremych1000 avatar Apr 30 '24 12:04 jeremych1000

Plus one for me here also 🤞

Daniel-Vaz avatar Jun 03 '24 06:06 Daniel-Vaz

+1

How are you managing this right now ? We are migrating to Alloy with loki and mimir kubernetes rules components to replicate kube-prometheus (prometheus-operator), that is working fine and all is visible in Grafana, but the AM config is lacking (mainly configuring routing to Grafana Oncall integrations depending on labels, etc.)

fculpo avatar Jul 18 '24 07:07 fculpo