Metrics fixups
- fix grafana-agent config format - rekey metrics-push-password for fodwatch
This commit is contained in:
parent
8d2a367e92
commit
563e0685d4
|
@ -12,8 +12,8 @@ let
|
||||||
loki-environment = [ machines.meta01 ];
|
loki-environment = [ machines.meta01 ];
|
||||||
|
|
||||||
# These are the same password, but nginx wants it in htpasswd format
|
# These are the same password, but nginx wants it in htpasswd format
|
||||||
loki-htpasswd = [ machines.meta01 ];
|
metrics-push-htpasswd = [ machines.meta01 ];
|
||||||
promtail-password = builtins.attrValues machines;
|
metrics-push-password = builtins.attrValues machines;
|
||||||
};
|
};
|
||||||
in
|
in
|
||||||
builtins.listToAttrs (
|
builtins.listToAttrs (
|
||||||
|
|
Binary file not shown.
|
@ -54,7 +54,7 @@ in
|
||||||
scrape_configs = lib.mapAttrsToList (name: value: {
|
scrape_configs = lib.mapAttrsToList (name: value: {
|
||||||
job_name = name;
|
job_name = name;
|
||||||
static_configs = [
|
static_configs = [
|
||||||
{ targets = "localhost:" + (toString value.port); }
|
{ targets = [ "localhost:${toString value.port}" ]; }
|
||||||
];
|
];
|
||||||
}) config.bagel.monitoring.grafana-agent.exporters;
|
}) config.bagel.monitoring.grafana-agent.exporters;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue