use real alertmanager name

`alertmanager-main` is hardcoded where it should derive from the real alertmanager name as defined by the user
This commit is contained in:
Prune Sebastien THOMAS
2019-08-27 11:53:12 -04:00
committed by GitHub
parent 9c82f86770
commit 2511a6c529

View File

@@ -89,7 +89,7 @@ local configMapList = k3.core.v1.configMapList;
coreDNSSelector: 'job="kube-dns"', coreDNSSelector: 'job="kube-dns"',
podLabel: 'pod', 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 + '"', prometheusSelector: 'job="prometheus-' + $._config.prometheus.name + '",namespace="' + $._config.namespace + '"',
prometheusName: '{{$labels.namespace}}/{{$labels.pod}}', prometheusName: '{{$labels.namespace}}/{{$labels.pod}}',
prometheusOperatorSelector: 'job="prometheus-operator",namespace="' + $._config.namespace + '"', prometheusOperatorSelector: 'job="prometheus-operator",namespace="' + $._config.namespace + '"',