Skip to content
Snippets Groups Projects
Unverified Commit 2511a6c5 authored by Prune Sebastien THOMAS's avatar Prune Sebastien THOMAS Committed by GitHub
Browse files

use real alertmanager name

`alertmanager-main` is hardcoded where it should derive from the real alertmanager name as defined by the user
parent 9c82f867
No related branches found
No related tags found
No related merge requests found
...@@ -89,7 +89,7 @@ local configMapList = k3.core.v1.configMapList; ...@@ -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 + '"',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment