Skip to content

Commit

Permalink
Merge branch 'main' into feat/add-blackbox-probes-library
Browse files Browse the repository at this point in the history
  • Loading branch information
lucabello authored Jan 28, 2025
2 parents a8d2c65 + e6c7c70 commit a9a2410
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions src/prometheus_alert_rules/probe_failure.rule
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
groups:
- name: probes
rules:
- alert: ProbeFailedOnce
expr: probe_success{} < 1
for: 0m
labels:
severity: warning
annotations:
summary: Blackbox Exporter target {{ $labels.probe_target }} has failed.
description: >
Blackbox Exporter target {{ $labels.probe_target }} has failed.
LABELS = {{ $labels }}
- alert: ProbeFailed
expr: probe_success{} < 1
for: 5m
labels:
severity: critical
annotations:
summary: Blackbox Exporter target {{ $labels.probe_target }} has failed for the last five minutes.
description: >
Blackbox Exporter target {{ $labels.probe_target }} has failed for the last five minutes.
LABELS = {{ $labels }}

0 comments on commit a9a2410

Please sign in to comment.