From 786a10835b09c9ace21764ec49d58d5f0ca7864f Mon Sep 17 00:00:00 2001 From: Hui Wang Date: Tue, 26 Nov 2024 16:22:00 +0800 Subject: [PATCH] alerts-vmalert: reserve rule name for description (#7659) --- deployment/docker/rules/alerts-vmalert.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/deployment/docker/rules/alerts-vmalert.yml b/deployment/docker/rules/alerts-vmalert.yml index 4f21e4e89..af0bbbe50 100644 --- a/deployment/docker/rules/alerts-vmalert.yml +++ b/deployment/docker/rules/alerts-vmalert.yml @@ -18,25 +18,25 @@ groups: Check vmalert's logs for detailed error message." - alert: AlertingRulesError - expr: sum(increase(vmalert_alerting_rules_errors_total[5m])) without(alertname, id) > 0 + expr: sum(increase(vmalert_alerting_rules_errors_total[5m])) without(id) > 0 for: 5m labels: severity: warning annotations: dashboard: "http://localhost:3000/d/LzldHAVnz?viewPanel=13&var-instance={{ $labels.instance }}&var-file={{ $labels.file }}&var-group={{ $labels.group }}" summary: "Alerting rules are failing for vmalert instance {{ $labels.instance }}" - description: "Alerting rules execution is failing for group \"{{ $labels.group }}\" in file \"{{ $labels.file }}\". + description: "Alerting rules execution is failing for \"{{ $labels.alertname }}\" from group \"{{ $labels.group }}\" in file \"{{ $labels.file }}\". Check vmalert's logs for detailed error message." - alert: RecordingRulesError - expr: sum(increase(vmalert_recording_rules_errors_total[5m])) without(recording, id) > 0 + expr: sum(increase(vmalert_recording_rules_errors_total[5m])) without(id) > 0 for: 5m labels: severity: warning annotations: dashboard: "http://localhost:3000/d/LzldHAVnz?viewPanel=30&var-instance={{ $labels.instance }}&var-file={{ $labels.file }}&var-group={{ $labels.group }}" summary: "Recording rules are failing for vmalert instance {{ $labels.instance }}" - description: "Recording rules execution is failing for group \"{{ $labels.group }}\" in file \"{{ $labels.file }}\". + description: "Recording rules execution is failing for \"{{ $labels.recording }}\" from group \"{{ $labels.group }}\" in file \"{{ $labels.file }}\". Check vmalert's logs for detailed error message." - alert: RecordingRulesNoData