From 29e876d02380b6c357a74dfccd607256b8dbe6c9 Mon Sep 17 00:00:00 2001 From: Matthias Loibl <mail@matthiasloibl.com> Date: Fri, 26 Oct 2018 17:26:50 +0200 Subject: [PATCH] contrib/kube-promeheus: Add AlertmanagerMembersInconsistent to manifests --- jsonnetfile.lock.json | 2 +- manifests/prometheus-rules.yaml | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/jsonnetfile.lock.json b/jsonnetfile.lock.json index ca87eab1..76ad6b09 100644 --- a/jsonnetfile.lock.json +++ b/jsonnetfile.lock.json @@ -8,7 +8,7 @@ "subdir": "contrib/kube-prometheus/jsonnet/kube-prometheus" } }, - "version": "a2cea4ac87d32686a2d5ab189f4e694297cbc305" + "version": "04235fdb35f150a46d5aeefd72c995bf864d2a2f" }, { "name": "ksonnet", diff --git a/manifests/prometheus-rules.yaml b/manifests/prometheus-rules.yaml index a049cf46..673dce1f 100644 --- a/manifests/prometheus-rules.yaml +++ b/manifests/prometheus-rules.yaml @@ -961,6 +961,16 @@ spec: for: 10m labels: severity: warning + - alert: AlertmanagerMembersInconsistent + annotations: + message: Alertmanager has not found all other members of the cluster. + expr: | + alertmanager_cluster_members{job="alertmanager-main"} + != on (service) + count by (service) (alertmanager_cluster_members{job="alertmanager-main"}) + for: 5m + labels: + severity: critical - name: general.rules rules: - alert: TargetDown -- GitLab