We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3a26517 + 77bb22c commit b10a6c0Copy full SHA for b10a6c0
build/pluto/prometheus/exporters/domain.nix
@@ -44,11 +44,18 @@
44
rules = [
45
{
46
alert = "DomainExpiry";
47
- expr = "domain_expiry_days < 30";
+ expr = "domain_expiry_days != -1 and domain_expiry_days < 30";
48
for = "1h";
49
labels.severity = "warning";
50
annotations.summary = "Domain {{ $labels.domain }} will expire in less than 30 days";
51
}
52
+ {
53
+ alert = "DomainProbeFailure";
54
+ expr = "domain_probe_success == 0";
55
+ for = "3h";
56
+ labels.severity = "warning";
57
+ annotations.summary = "Domain {{ $labels.domain }} probe failing for more than 3 hours.";
58
+ }
59
];
60
61
0 commit comments