Manage alertmanager config using Prometheus operator

20 views
Skip to first unread message

EnthuDeveloper

unread,
Mar 9, 2020, 11:41:44 PM3/9/20
to Prometheus Developers
Hi There,
I am looking for some recommendations as to how we can manage alertmanager configuration ( like webhook receiver details , feed alerts rules to Prometheus etc. ) using Prometheus operator (helm charts ) ??

I see installing Prometheus operator installs Prometheus and Alertmanager both but finding it hard to determine where is it getting the default configuration from ? And how can it be tweaked to install custom configuration as such,

Any inputs would be much appreciated.


Thanks.

Simon Pasquier

unread,
Mar 10, 2020, 6:17:16 AM3/10/20
to EnthuDeveloper, Prometheus Developers
As stated in the documentation [1], the alertmanager's configuration
is taken from the secret specified by the configSecret field. If
undefined, the Prometheus operator will look for a secret named
"alertmanager-<alertmanager CR's name>" in the same namespace.
This secret needs to have an alertmanager.yaml key as in this example [2].

[1] https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#alertmanagerspec
[2] https://github.com/coreos/kube-prometheus/blob/master/manifests/alertmanager-secret.yaml

>
> Any inputs would be much appreciated.
>
>
> Thanks.
>
> --
> You received this message because you are subscribed to the Google Groups "Prometheus Developers" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-devel...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-developers/58b31634-95c8-4b98-9eae-1703103c69d8%40googlegroups.com.

Reply all
Reply to author
Forward
0 new messages