add vmalertmanager filter for health alerts (#4665)

This commit is contained in:
Haleygo 2023-07-20 02:29:45 +08:00 committed by Aliaksandr Valialkin
parent 7703059746
commit 1794a97ebe
No known key found for this signature in database
GPG Key ID: A72BEC6CD3D0DED1

View File

@ -6,7 +6,7 @@ groups:
# note the `job` filter and update accordingly to your setup # note the `job` filter and update accordingly to your setup
rules: rules:
- alert: TooManyRestarts - 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: labels:
severity: critical severity: critical
annotations: annotations:
@ -15,7 +15,7 @@ groups:
It might be crashlooping." It might be crashlooping."
- alert: ServiceDown - 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 for: 2m
labels: labels:
severity: critical severity: critical