modules/monitoring: fix probes

This commit is contained in:
xinyangli 2024-12-06 23:25:44 +08:00
parent 082e64b960
commit e4fd9e8b23
Signed by: xin
SSH key fingerprint: SHA256:UU5pRTl7NiLFJbWJZa+snLylZSXIz5rgHmwjzv8v4oE
3 changed files with 35 additions and 2 deletions

View file

@ -237,6 +237,17 @@ in
{
inherit name;
rules = [
{
alert = "ProbeError";
expr = "probe_success != 1";
for = "3m";
labels = {
severity = "critical";
};
annotations = {
summary = "Probing {{ $labels.instance }} from {{ $labels.from }} failed";
};
}
{
alert = "HighProbeLatency";
expr = "probe_duration_seconds > 0.5";