From c44c730dcc062f6dd077f94c86f225c5be48d483 Mon Sep 17 00:00:00 2001 From: Tobias Manske Date: Wed, 19 Apr 2023 00:25:23 +0200 Subject: [PATCH] Prometheus: Drop some alerts for general targets. --- .../templates/prometheus/alertmanager.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/coreos-config/roles/compose_project/templates/prometheus/alertmanager.yml b/coreos-config/roles/compose_project/templates/prometheus/alertmanager.yml index 41861a9..c0e3f17 100644 --- a/coreos-config/roles/compose_project/templates/prometheus/alertmanager.yml +++ b/coreos-config/roles/compose_project/templates/prometheus/alertmanager.yml @@ -14,9 +14,19 @@ route: - alertname="PrometheusAlertmanagerE2eDeadManSwitch" - receiver: 'email' group_interval: 1m - continue: true matchers: - - job=matrix_synapse_1 + - job="matrix_synapse_1" + - receiver: 'matrix-monitoring' + group_wait: 30s + group_interval: 1h + matchers: + - alertname="PrometheusAllTargetsMissing" + - receiver: 'matrix-monitoring' + group_wait: 30s + group_interval: 1h + matchers: + - alertname="PrometheusTargetMissing" + receivers: - name: 'email'