Files
2026-05-17 00:46:26 +02:00

31 lines
720 B
YAML

apiVersion: monitoring.coreos.com/v1
kind: PrometheusRule
metadata:
name: blackbox-alerts
namespace: monitoring
labels:
release: kube-prometheus-stack
spec:
groups:
- name: blackbox
rules:
- alert: DeviceDown
expr: probe_success == 0
for: 1m
labels:
severity: critical
annotations:
summary: "Device down"
description: "{{ $labels.instance }} is DOWN"
- alert: HighPing
expr: probe_duration_seconds > 0.5
for: 2m
labels:
severity: warning
annotations:
summary: "High ping"
description: "{{ $labels.instance }} has high latency"