From cbce724ade82790bc7b2ed964ee64eced51e8663 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Thu, 7 Aug 2025 10:14:07 +0200 Subject: [PATCH] reformat --- systems/makanek/monitoring/default.nix | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/systems/makanek/monitoring/default.nix b/systems/makanek/monitoring/default.nix index eb9a4b6..e68806d 100644 --- a/systems/makanek/monitoring/default.nix +++ b/systems/makanek/monitoring/default.nix @@ -357,7 +357,9 @@ in { scheme = "http"; path_prefix = "/"; - static_configs = [{targets = ["localhost:${toString config.services.prometheus.alertmanager.port}"];}]; + static_configs = [ + { targets = [ "localhost:${toString config.services.prometheus.alertmanager.port}" ]; } + ]; } ]; @@ -385,14 +387,14 @@ in scrape_interval = "5m"; job_name = "blackbox"; metrics_path = "/probe"; - params.module = ["http_2xx"]; + params.module = [ "http_2xx" ]; relabel_configs = [ { - source_labels = ["__address__"]; + source_labels = [ "__address__" ]; target_label = "__param_target"; } { - source_labels = ["__param_target"]; + source_labels = [ "__param_target" ]; target_label = "instance"; } { @@ -450,7 +452,7 @@ in scrape_interval = "60s"; metrics_path = "/api/prometheus"; scheme = "http"; - static_configs = [{targets = ["zaatar.r:8123"];}]; + static_configs = [ { targets = [ "zaatar.r:8123" ]; } ]; bearer_token_file = config.age.secrets.home-assistant-token.path; } { @@ -467,7 +469,7 @@ in services.prometheus.exporters.blackbox = { enable = true; - configFile = (pkgs.formats.yaml {}).generate "blackbox.yaml" blackboxConfig; + configFile = (pkgs.formats.yaml { }).generate "blackbox.yaml" blackboxConfig; }; networking.firewall.allowedTCPPorts = [ @@ -476,6 +478,6 @@ in services.loki = { enable = true; - configFile = (pkgs.formats.yaml {}).generate "loki.yaml" lokiConfig; + configFile = (pkgs.formats.yaml { }).generate "loki.yaml" lokiConfig; }; }