treewide: apply nix-fmt
Some checks failed
/ Build Nix targets (push) Has been cancelled

This commit is contained in:
Felix Buehler 2026-01-17 09:04:30 +01:00
parent 8b56443b2d
commit 7129af88ba
4 changed files with 20 additions and 20 deletions

View file

@ -92,7 +92,7 @@ in
my.services.prometheus.rules = {
BlackboxProbeFailed = {
condition = ''probe_success == 0'';
condition = "probe_success == 0";
description = "Blackbox probe failed (instance {{ $labels.instance }}): {{$value}}";
time = "1m";
labels = {
@ -100,7 +100,7 @@ in
};
};
BlackboxConfigurationReloadFailure = {
condition = ''blackbox_exporter_config_last_reload_successful != 1'';
condition = "blackbox_exporter_config_last_reload_successful != 1";
description = "Blackbox configuration reload failure\n VALUE = {{ $value }}\n LABELS = {{ $labels }}";
time = "0m";
labels = {
@ -108,7 +108,7 @@ in
};
};
BlackboxSlowProbe = {
condition = ''avg_over_time(probe_duration_seconds[1m]) > 2'';
condition = "avg_over_time(probe_duration_seconds[1m]) > 2";
description = "Blackbox probe took more than 2s to complete\n VALUE = {{ $value }}\n LABELS = {{ $labels }}";
time = "1m";
labels = {
@ -116,12 +116,12 @@ in
};
};
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 }}";
time = "1m";
};
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";
description = "SSL certificate expires in less than 20 days\n VALUE = {{ $value }}\n LABELS = {{ $labels }}";
time = "0m";
labels = {
@ -129,7 +129,7 @@ in
};
};
BlackboxSslCertificateWillExpireShortly = {
condition = ''0 <= round((last_over_time(probe_ssl_earliest_cert_expiry[10m]) - time()) / 86400, 0.1) < 3'';
condition = "0 <= round((last_over_time(probe_ssl_earliest_cert_expiry[10m]) - time()) / 86400, 0.1) < 3";
description = "SSL certificate expires in less than 3 days\n VALUE = {{ $value }}\n LABELS = {{ $labels }}";
time = "0m";
labels = {
@ -137,7 +137,7 @@ in
};
};
BlackboxProbeSlowHttp = {
condition = ''avg_over_time(probe_http_duration_seconds[1m]) > 2'';
condition = "avg_over_time(probe_http_duration_seconds[1m]) > 2";
description = "HTTP request took more than 2s\n VALUE = {{ $value }}\n LABELS = {{ $labels }}";
time = "1m";
labels = {
@ -145,7 +145,7 @@ in
};
};
BlackboxProbeSlowPing = {
condition = ''avg_over_time(probe_icmp_duration_seconds[1m]) > 1'';
condition = "avg_over_time(probe_icmp_duration_seconds[1m]) > 1";
description = "Blackbox ping took more than 1s\n VALUE = {{ $value }}\n LABELS = {{ $labels }}";
time = "1m";
labels = {