From 1d87031c242bfa8fcf8a3349cad520cfdb4e6aa0 Mon Sep 17 00:00:00 2001 From: Prune Sebastien THOMAS Date: Wed, 28 Aug 2019 06:45:13 -0400 Subject: [PATCH] use real alertmanager name the name is build as `alertmanager-main` while it should be `alertmanager-` --- jsonnet/kube-prometheus/kube-prometheus.libsonnet | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsonnet/kube-prometheus/kube-prometheus.libsonnet b/jsonnet/kube-prometheus/kube-prometheus.libsonnet index f51ae49a..23643f5d 100644 --- a/jsonnet/kube-prometheus/kube-prometheus.libsonnet +++ b/jsonnet/kube-prometheus/kube-prometheus.libsonnet @@ -86,7 +86,7 @@ local configMapList = k.core.v1.configMapList; coreDNSSelector: 'job="kube-dns"', podLabel: 'pod', - alertmanagerSelector: 'job="alertmanager-main",namespace="' + $._config.namespace + '"', + alertmanagerSelector: 'job="alertmanager-' + $._config.alertmanager.name + '",namespace="' + $._config.namespace + '"', prometheusSelector: 'job="prometheus-' + $._config.prometheus.name + '",namespace="' + $._config.namespace + '"', prometheusOperatorSelector: 'job="prometheus-operator",namespace="' + $._config.namespace + '"',