Skip to content

Commit b10a6c0

Browse files
authored
Merge pull request #591 from Erethon/fix-domain-alert
prometheus: Catch false positive on domain expiry
2 parents 3a26517 + 77bb22c commit b10a6c0

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

build/pluto/prometheus/exporters/domain.nix

+8-1
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,18 @@
4444
rules = [
4545
{
4646
alert = "DomainExpiry";
47-
expr = "domain_expiry_days < 30";
47+
expr = "domain_expiry_days != -1 and domain_expiry_days < 30";
4848
for = "1h";
4949
labels.severity = "warning";
5050
annotations.summary = "Domain {{ $labels.domain }} will expire in less than 30 days";
5151
}
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+
}
5259
];
5360
}
5461
];

0 commit comments

Comments
 (0)