use real alertmanager name

the name is build as `alertmanager-main` while it should be `alertmanager-<the user-defined name>`
This commit is contained in:
Prune Sebastien THOMAS
2019-08-28 06:45:13 -04:00
committed by GitHub
parent 79d0151ed4
commit 1d87031c24

View File

@@ -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 + '"',