From 0f14beff58b32cd5d9f0c067919a456059741005 Mon Sep 17 00:00:00 2001 From: Max Golionko <8kirk8@gmail.com> Date: Wed, 26 Apr 2023 21:32:25 +0800 Subject: [PATCH] alerts: relax job filter to support job names created by VMOperator (#4203) --- 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 8686c10636..551e5d1df9 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"}[15m]) > 2 + expr: changes(process_start_time_seconds{job=~"victoriametrics.*|vmselect.*|vminsert.*|vmstorage.*|vmagent.*|vmalert.*"}[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"} == 0 + expr: up{job=~"victoriametrics.*|vmselect.*|vminsert.*|vmstorage.*|vmagent.*|vmalert.*"} == 0 for: 2m labels: severity: critical