Skip to content
This repository was archived by the owner on Mar 14, 2025. It is now read-only.

Commit b408b52

Browse files
committed
Improve the AlertmanagerMembersInconsistent alert
The expression alertmanager_cluster_members{job="alertmanager"}[5m]) is assumed to return one series for each alertmanager instance in the cluster. When running inside Kubernetes, alertmanager pods can get evicted and rescheduled. This can change the instance label and produce a new series for that alertmanager instance. When the same pod gets evicted several times in a row, there will be a short interval in which Prometheus will return values from both the new series and the old series. As a result, counting the number of series for the alertmanager_cluster_members metric will overestimate the number of instances in the given cluster. This commit modifies the the AlertmanagerMembersInconsistent alert to increase the for clause to 15m in order to reduce the probability of a false positive. Signed-off-by: fpetkovski <[email protected]>
1 parent 58169c1 commit b408b52

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/alertmanager-mixin/alerts.libsonnet

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
< on (%(alertmanagerClusterLabels)s) group_left
3030
count by (%(alertmanagerClusterLabels)s) (max_over_time(alertmanager_cluster_members{%(alertmanagerSelector)s}[5m]))
3131
||| % $._config,
32-
'for': '10m',
32+
'for': '15m',
3333
labels: {
3434
severity: 'critical',
3535
},

0 commit comments

Comments
 (0)