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"