ansible-infra/resources/chaosknoten/grafana/docker_compose/prometheus_alerts-fux.rules.yaml
2025-09-01 01:25:11 +02:00

37 lines
1.3 KiB
YAML

groups:
- name: SNMP
rules:
- alert: SnmpTargetMissing
expr: up{job=~".*snmp|SNMP.*"} == 0
for: 15m
labels:
severity: critical
annotations:
summary: SNMP target missing (instance {{ $labels.instance }})
description: "A SNMP target has disappeared for more the 30 min.\n VALUE = {{ $value }}"
- alert: SnmpTargetFalky
expr: changes(up{job=~"snmp"}[24h]) > 5
for: 0m
labels:
severity: info
annotations:
summary: SNMP target flaky (instance {{ $labels.instance }})
description: "A SNMP target is has a flaky respons over the last 24 hours.\n VALUE = {{ $value }}"
- name: DHCP
rules:
- alert: DhcpFuxSharedFailed
expr: script_success{script="check_dhcp_fux_shared"} == 0
for: 0m
labels:
severity: critical
annotations:
summary: DHCP for Fux Shared stoped working
description: "No DHCP lease for the Fux Shared range was received"
- alert: DhcpFuxAdminFailed
expr: script_success{script_success="check_dhcp_fux_admin"} == 0
for: 0m
labels:
severity: critical
annotations:
summary: DHCP for Fux Admin stoped working
description: "No DHCP lease for the Fux Admin range was received"