2023-02-28 13:29:28 +00:00
|
|
|
# File contains default list of alerts for vmalert service.
|
2022-11-21 13:45:45 +00:00
|
|
|
# The alerts below are just recommendations and may require some updates
|
|
|
|
# and threshold calibration according to every specific setup.
|
|
|
|
groups:
|
|
|
|
# Alerts group for vmalert assumes that Grafana dashboard
|
2024-01-18 10:19:53 +00:00
|
|
|
# https://grafana.com/grafana/dashboards/14950/ is installed.
|
2022-11-21 13:45:45 +00:00
|
|
|
# Pls update the `dashboard` annotation according to your setup.
|
|
|
|
- name: vmalert
|
2022-11-21 14:23:23 +00:00
|
|
|
interval: 30s
|
2022-11-21 13:45:45 +00:00
|
|
|
rules:
|
|
|
|
- alert: ConfigurationReloadFailure
|
|
|
|
expr: vmalert_config_last_reload_successful != 1
|
|
|
|
labels:
|
|
|
|
severity: warning
|
|
|
|
annotations:
|
|
|
|
summary: "Configuration reload failed for vmalert instance {{ $labels.instance }}"
|
|
|
|
description: "Configuration hot-reload failed for vmalert on instance {{ $labels.instance }}.
|
|
|
|
Check vmalert's logs for detailed error message."
|
|
|
|
|
|
|
|
- alert: AlertingRulesError
|
2024-11-26 08:22:00 +00:00
|
|
|
expr: sum(increase(vmalert_alerting_rules_errors_total[5m])) without(id) > 0
|
2022-11-21 13:45:45 +00:00
|
|
|
for: 5m
|
|
|
|
labels:
|
|
|
|
severity: warning
|
|
|
|
annotations:
|
2024-11-12 16:00:39 +00:00
|
|
|
dashboard: "http://localhost:3000/d/LzldHAVnz?viewPanel=13&var-instance={{ $labels.instance }}&var-file={{ $labels.file }}&var-group={{ $labels.group }}"
|
2022-11-21 13:45:45 +00:00
|
|
|
summary: "Alerting rules are failing for vmalert instance {{ $labels.instance }}"
|
2024-11-26 08:22:00 +00:00
|
|
|
description: "Alerting rules execution is failing for \"{{ $labels.alertname }}\" from group \"{{ $labels.group }}\" in file \"{{ $labels.file }}\".
|
2022-11-21 13:45:45 +00:00
|
|
|
Check vmalert's logs for detailed error message."
|
|
|
|
|
|
|
|
- alert: RecordingRulesError
|
2024-11-26 08:22:00 +00:00
|
|
|
expr: sum(increase(vmalert_recording_rules_errors_total[5m])) without(id) > 0
|
2022-11-21 13:45:45 +00:00
|
|
|
for: 5m
|
|
|
|
labels:
|
|
|
|
severity: warning
|
|
|
|
annotations:
|
2024-11-12 16:00:39 +00:00
|
|
|
dashboard: "http://localhost:3000/d/LzldHAVnz?viewPanel=30&var-instance={{ $labels.instance }}&var-file={{ $labels.file }}&var-group={{ $labels.group }}"
|
2022-11-21 13:45:45 +00:00
|
|
|
summary: "Recording rules are failing for vmalert instance {{ $labels.instance }}"
|
2024-11-26 08:22:00 +00:00
|
|
|
description: "Recording rules execution is failing for \"{{ $labels.recording }}\" from group \"{{ $labels.group }}\" in file \"{{ $labels.file }}\".
|
2022-11-21 13:45:45 +00:00
|
|
|
Check vmalert's logs for detailed error message."
|
|
|
|
|
|
|
|
- alert: RecordingRulesNoData
|
2024-06-10 10:26:03 +00:00
|
|
|
expr: sum(vmalert_recording_rules_last_evaluation_samples) without(id) < 1
|
2022-11-21 13:45:45 +00:00
|
|
|
for: 30m
|
|
|
|
labels:
|
2023-04-26 10:57:41 +00:00
|
|
|
severity: info
|
2022-11-21 13:45:45 +00:00
|
|
|
annotations:
|
2024-11-12 16:00:39 +00:00
|
|
|
dashboard: "http://localhost:3000/d/LzldHAVnz?viewPanel=33&var-file={{ $labels.file }}&var-group={{ $labels.group }}"
|
2024-09-19 07:11:30 +00:00
|
|
|
summary: "Recording rule {{ $labels.recording }} ({{ $labels.group }}) produces no data"
|
2024-11-12 16:00:39 +00:00
|
|
|
description: "Recording rule \"{{ $labels.recording }}\" from group \"{{ $labels.group }}\ in file \"{{ $labels.file }}\"
|
2022-11-21 13:45:45 +00:00
|
|
|
produces 0 samples over the last 30min. It might be caused by a misconfiguration
|
|
|
|
or incorrect query expression."
|
|
|
|
|
2023-10-31 09:30:05 +00:00
|
|
|
- alert: TooManyMissedIterations
|
2023-12-11 14:17:30 +00:00
|
|
|
expr: increase(vmalert_iteration_missed_total[5m]) > 0
|
2023-10-31 09:30:05 +00:00
|
|
|
for: 15m
|
|
|
|
labels:
|
|
|
|
severity: warning
|
|
|
|
annotations:
|
|
|
|
summary: "vmalert instance {{ $labels.instance }} is missing rules evaluations"
|
2024-11-12 16:00:39 +00:00
|
|
|
description: "vmalert instance {{ $labels.instance }} is missing rules evaluations for group \"{{ $labels.group }}\" in file \"{{ $labels.file }}\".
|
2023-10-31 09:30:05 +00:00
|
|
|
The group evaluation time takes longer than the configured evaluation interval. This may result in missed
|
|
|
|
alerting notifications or recording rules samples. Try increasing evaluation interval or concurrency of
|
2024-04-17 23:44:12 +00:00
|
|
|
group \"{{ $labels.group }}\". See https://docs.victoriametrics.com/vmalert/#groups.
|
2024-04-18 01:26:36 +00:00
|
|
|
If rule expressions are taking longer than expected, please see https://docs.victoriametrics.com/troubleshooting/#slow-queries."
|
2023-10-31 09:30:05 +00:00
|
|
|
|
2022-11-21 13:45:45 +00:00
|
|
|
- alert: RemoteWriteErrors
|
2023-12-11 14:17:30 +00:00
|
|
|
expr: increase(vmalert_remotewrite_errors_total[5m]) > 0
|
2022-11-21 13:45:45 +00:00
|
|
|
for: 15m
|
|
|
|
labels:
|
|
|
|
severity: warning
|
|
|
|
annotations:
|
|
|
|
summary: "vmalert instance {{ $labels.instance }} is failing to push metrics to remote write URL"
|
|
|
|
description: "vmalert instance {{ $labels.instance }} is failing to push metrics generated via alerting
|
|
|
|
or recording rules to the configured remote write URL. Check vmalert's logs for detailed error message."
|
|
|
|
|
2024-10-31 13:03:08 +00:00
|
|
|
- alert: RemoteWriteDroppingData
|
|
|
|
expr: increase(vmalert_remotewrite_dropped_rows_total[5m]) > 0
|
|
|
|
for: 5m
|
|
|
|
labels:
|
|
|
|
severity: critical
|
|
|
|
annotations:
|
|
|
|
summary: "vmalert instance {{ $labels.instance }} is dropping data sent to remote write URL"
|
|
|
|
description: "vmalert instance {{ $labels.instance }} is failing to send results of alerting or recording rules
|
|
|
|
to the configured remote write URL. This may result into gaps in recording rules or alerts state.
|
|
|
|
Check vmalert's logs for detailed error message."
|
|
|
|
|
2022-11-21 13:45:45 +00:00
|
|
|
- alert: AlertmanagerErrors
|
2023-12-11 14:17:30 +00:00
|
|
|
expr: increase(vmalert_alerts_send_errors_total[5m]) > 0
|
2022-11-21 13:45:45 +00:00
|
|
|
for: 15m
|
|
|
|
labels:
|
|
|
|
severity: warning
|
|
|
|
annotations:
|
|
|
|
summary: "vmalert instance {{ $labels.instance }} is failing to send notifications to Alertmanager"
|
|
|
|
description: "vmalert instance {{ $labels.instance }} is failing to send alert notifications to \"{{ $labels.addr }}\".
|
|
|
|
Check vmalert's logs for detailed error message."
|