Hi! I am struggling a bit to figure out how to correctly configure autodiscovery of AlertManagers in a Kubernetes cluster.
Anyone have a fully working example Prometheus custom resource of this? Just putting example config from Prometheus doc doesn't seem to work as the resource expects a list of alertmanager endpoints ( https://github.com/coreos/prometheus-operator/blob/master/Documentation/api.md#alertmanagerendpoints ) Example config not working: alerting: alertmanagers: - path_prefix: /admin/alertmanager kubernetes_sd_configs: - role: pod tls_config: ca_file: /var/run/secrets/kubernetes.io/serviceaccount/ca.crt bearer_token_file: /var/run/secrets/kubernetes.io/serviceaccount/token relabel_configs: - source_labels: [__meta_kubernetes_pod_label_name] regex: alertmanager action: keep - source_labels: [__meta_kubernetes_namespace] regex: default action: keep - source_labels: [__meta_kubernetes_pod_container_port_number] regex: action: drop Thanks :) -- You received this message because you are subscribed to the Google Groups "Prometheus Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/96bbd5a2-2090-439d-84a3-853445ebd8d6%40googlegroups.com.

