From ee933541b28b4880f01f7cf9b70880f0acbf91ed Mon Sep 17 00:00:00 2001 From: Haleygo Date: Thu, 20 Jul 2023 02:29:45 +0800 Subject: [PATCH] add vmalertmanager filter for health alerts (#4665) --- deployment/docker/alerts-health.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment/docker/alerts-health.yml b/deployment/docker/alerts-health.yml index 0a58cc853..fde2de5ae 100644 --- a/deployment/docker/alerts-health.yml +++ b/deployment/docker/alerts-health.yml @@ -6,7 +6,7 @@ groups: # note the `job` filter and update accordingly to your setup rules: - alert: TooManyRestarts - expr: changes(process_start_time_seconds{job=~"victoriametrics.*|vmselect.*|vminsert.*|vmstorage.*|vmagent.*|vmalert.*|vmsingle.*"}[15m]) > 2 + expr: changes(process_start_time_seconds{job=~"victoriametrics.*|vmselect.*|vminsert.*|vmstorage.*|vmagent.*|vmalert.*|vmsingle.*|vmalertmanager.*"}[15m]) > 2 labels: severity: critical annotations: @@ -15,7 +15,7 @@ groups: It might be crashlooping." - alert: ServiceDown - expr: up{job=~"victoriametrics.*|vmselect.*|vminsert.*|vmstorage.*|vmagent.*|vmalert.*|vmsingle.*"} == 0 + expr: up{job=~"victoriametrics.*|vmselect.*|vminsert.*|vmstorage.*|vmagent.*|vmalert.*|vmsingle.*|vmalertmanager.*"} == 0 for: 2m labels: severity: critical