prometheus-engine icon indicating copy to clipboard operation
prometheus-engine copied to clipboard

alertmanager: support for reusable templates

Open nick-jones opened this issue 2 years ago • 3 comments

https://prometheus.io/docs/alerting/latest/notification_examples/#defining-reusable-templates

Please correct me if I'm wrong, but I don't see any support for defining and loading these in just yet. Reusable templates are a useful feature when configuring receivers.

It seems they could be defined in a configmap or secret in gmp-public and then the operator could take care of copying to gmp-system and volume mounting into alertmanager? I'm guessing this could be similar to how this is handled by prometheus-operator https://github.com/prometheus-operator/prometheus-operator/blob/main/Documentation/user-guides/alerting.md#using-a-kubernetes-secret

nick-jones avatar May 12 '23 15:05 nick-jones

Hi @nick-jones,

Yes indeed you are correct and thanks for raising this point. I think what you suggested makes sense as a potential path forward to support this.

Marking this as a feature enhancement.

pintohutch avatar May 12 '23 18:05 pintohutch

@pintohutch Is this on the roadmap at all, or would you be open to contributions?

We're keen to start adopting Alertmanager as part of GMP, but not being able to handle reusable templates adds friction for us.

adamstrawson avatar Oct 10 '23 15:10 adamstrawson

Hey @adamstrawson - we are absolutely open to contributions!

In general, we're de-emphasizing the managed alertmanager, preferring to recommend Cloud Alerting's promQL support.

However, we will continue to support this and will happily review any contributions.

pintohutch avatar Oct 12 '23 19:10 pintohutch