Skip to content
Snippets Groups Projects
Commit e1ed5015 authored by Matthias Loibl's avatar Matthias Loibl
Browse files

contrib/kube-prometheus: Fix AlertmanagerConfigInconsistent alert expression

parent e2476ce2
No related branches found
No related tags found
No related merge requests found
......@@ -10,7 +10,7 @@
message: 'The configuration of the instances of the Alertmanager cluster `{{$labels.service}}` are out of sync.',
},
expr: |||
count_values("config_hash", alertmanager_config_hash{%(alertmanagerSelector)s}) BY (service) / ON(service) GROUP_LEFT() label_replace(prometheus_operator_spec_replicas{%(prometheusOperatorSelector)s}, "service", "alertmanager-$1", "alertmanager", "(.*)") != 1
count_values("config_hash", alertmanager_config_hash{%(alertmanagerSelector)s}) BY (service) / ON(service) GROUP_LEFT() label_replace(prometheus_operator_spec_replicas{%(prometheusOperatorSelector)s,controller="alertmanager"}, "service", "alertmanager-$1", "name", "(.*)") != 1
||| % $._config,
'for': '5m',
labels: {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment