diff --git a/secrets.nix b/secrets.nix index 9e6f070..368ff9d 100644 --- a/secrets.nix +++ b/secrets.nix @@ -12,8 +12,8 @@ let loki-environment = [ machines.meta01 ]; # These are the same password, but nginx wants it in htpasswd format - loki-htpasswd = [ machines.meta01 ]; - promtail-password = builtins.attrValues machines; + metrics-push-htpasswd = [ machines.meta01 ]; + metrics-push-password = builtins.attrValues machines; }; in builtins.listToAttrs ( diff --git a/secrets/metrics-push-password.age b/secrets/metrics-push-password.age index 00835a9..b36ab5d 100644 Binary files a/secrets/metrics-push-password.age and b/secrets/metrics-push-password.age differ diff --git a/services/monitoring/agent.nix b/services/monitoring/agent.nix index 17274ba..5c44126 100644 --- a/services/monitoring/agent.nix +++ b/services/monitoring/agent.nix @@ -54,7 +54,7 @@ in scrape_configs = lib.mapAttrsToList (name: value: { job_name = name; static_configs = [ - { targets = "localhost:" + (toString value.port); } + { targets = [ "localhost:${toString value.port}" ]; } ]; }) config.bagel.monitoring.grafana-agent.exporters; }