Skip to content
Snippets Groups Projects
Commit 72a2eb63 authored by ale's avatar ale
Browse files

De-noise HostUnreachable signal

parent f221675d
No related branches found
No related tags found
No related merge requests found
Pipeline #84176 passed
......@@ -8,8 +8,8 @@ groups:
# once the host becomes reachable again, so as to inhibit alerts that
# might fire immediately after the transition.
- alert: HostUnreachable
expr: min_over_time(host_reachable[10m]) == 0
for: 2m
expr: min_over_time(smoothed_host_reachable[10m]) == 0
for: 1m
labels:
severity: warn
annotations:
......
......@@ -37,5 +37,10 @@ groups:
# Special metric for the ping probe.
# The 'bool' qualifier makes the greater-than operation not act as a filter.
# The 'smoothed' metric verifies that the host has been unreachable for two
# consecutive minutes.
- record: host_reachable
expr: target:probe_success:ratio{probe="ping"} > bool 0.6
- record: smoothed_host_reachable
expr: max_over_time(host_reachable[2m])
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment