grafana / alloy

OpenTelemetry Collector distribution with programmable pipelines
https://grafana.com/oss/alloy
Apache License 2.0
1.43k stars 210 forks source link

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

Open nicoche opened 1 year ago

nicoche commented 1 year ago

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

tpaschalis commented 1 year ago

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.

nicoche commented 1 year ago

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

ilia-medvedev-codefresh commented 1 year ago

This would be so useful to us!

rafilkmp3 commented 1 year ago

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

rafilkmp3 commented 1 year ago

@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

tpaschalis commented 1 year ago

@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.

LeszekBlazewski commented 9 months ago

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!

bcrisp4 commented 8 months ago

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!

reda-ayoub commented 8 months ago

+1 for this feature

jeremych1000 commented 6 months ago

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

Daniel-Vaz commented 5 months ago

Plus one for me here also 🤞

fculpo commented 4 months ago

+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.)

lieberlois commented 4 weeks ago

+1

Any updates on this? If you need support with the implementation I'd be happy to help if I find the time - just would need some pointers on how to get started ^^