monitoring: optimize alerts and mitigate fritzbox-exporter timeouts
This commit is contained in:
@@ -47,7 +47,7 @@ spec:
|
||||
rules:
|
||||
- alert: WireguardExporterDown
|
||||
expr: up{job="wireguard-exporter"} == 0
|
||||
for: 5m
|
||||
for: 1h
|
||||
labels:
|
||||
severity: critical
|
||||
annotations:
|
||||
@@ -55,7 +55,7 @@ spec:
|
||||
description: "The WireGuard Prometheus exporter is unreachable. The pod may have crashed or is unresponsive."
|
||||
- alert: WireguardInterfaceDown
|
||||
expr: absent(wireguard_sent_bytes_total{interface="wg0"}) == 1
|
||||
for: 5m
|
||||
for: 1h
|
||||
labels:
|
||||
severity: critical
|
||||
annotations:
|
||||
@@ -63,7 +63,7 @@ spec:
|
||||
description: "The WireGuard interface wg0 is not reporting any statistics. The VPN tunnel might be down or inactive."
|
||||
- alert: WireguardPeerOffline
|
||||
expr: (time() - wireguard_latest_handshake_seconds{interface="wg0"}) > 300
|
||||
for: 5m
|
||||
for: 1h
|
||||
labels:
|
||||
severity: critical
|
||||
annotations:
|
||||
|
||||
Reference in New Issue
Block a user