service/blackbox: increase thresholds for http services

This commit is contained in:
Felix Buehler 2023-12-12 23:14:41 +01:00
parent effd9de67a
commit d30f0ebbcd

View file

@ -93,7 +93,7 @@ in
BlackboxProbeFailed = { BlackboxProbeFailed = {
condition = ''probe_success == 0''; condition = ''probe_success == 0'';
description = "Blackbox probe failed (instance {{ $labels.instance }}): {{$value}}"; description = "Blackbox probe failed (instance {{ $labels.instance }}): {{$value}}";
time = "0m"; time = "1m";
labels = { labels = {
severity = "critical"; severity = "critical";
}; };
@ -117,7 +117,7 @@ in
BlackboxProbeHttpFailure = { BlackboxProbeHttpFailure = {
condition = ''probe_http_status_code <= 199 OR probe_http_status_code >= 400''; condition = ''probe_http_status_code <= 199 OR probe_http_status_code >= 400'';
description = "HTTP status code is not 200-399\n VALUE = {{ $value }}\n LABELS = {{ $labels }}"; description = "HTTP status code is not 200-399\n VALUE = {{ $value }}\n LABELS = {{ $labels }}";
time = "0m"; time = "1m";
}; };
BlackboxSslCertificateWillExpireSoon = { BlackboxSslCertificateWillExpireSoon = {
condition = ''3 <= round((last_over_time(probe_ssl_earliest_cert_expiry[10m]) - time()) / 86400, 0.1) < 20''; condition = ''3 <= round((last_over_time(probe_ssl_earliest_cert_expiry[10m]) - time()) / 86400, 0.1) < 20'';