Metrics fixups

- fix grafana-agent config format
- rekey metrics-push-password for fodwatch
This commit is contained in:
Ilya K 2024-07-08 10:01:25 +03:00
parent 8d2a367e92
commit 563e0685d4
3 changed files with 3 additions and 3 deletions

View file

@ -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 (

Binary file not shown.

View file

@ -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;
}