add queue runner to prometheus

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
ahuston-0 2024-06-22 23:03:20 -04:00 committed by Alice Huston
parent 5ace8a7a10
commit f28e596132

View File

@ -5,7 +5,8 @@
... ...
}: }:
let let
hydra_prometheus_port = "9199"; hydra_notify_prometheus_port = "9199";
hydra_queue_runner_prometheus_port = "9200";
in in
{ {
systemd.services.hydra-notify.serviceConfig.EnvironmentFile = systemd.services.hydra-notify.serviceConfig.EnvironmentFile =
@ -58,9 +59,10 @@ in
<hydra_notify> <hydra_notify>
<prometheus> <prometheus>
listen_address = 127.0.0.1 listen_address = 127.0.0.1
port = ${hydra_prometheus_port} port = ${hydra_notify_prometheus_port}
</prometheus> </prometheus>
</hydra_notify> </hydra_notify>
queue_runner_metrics_address = [::]:${hydra_queue_runner_prometheus_port}
''; '';
}; };
@ -85,7 +87,14 @@ in
} }
{ {
job_name = "hydra-local"; job_name = "hydra-local";
static_configs = [ { targets = [ "127.0.0.1:${hydra_prometheus_port}" ]; } ]; static_configs = [
{
targets = [
"127.0.0.1:${hydra_notify_prometheus_port}"
"127.0.0.1:${hydra_queue_runner_prometheus_port}"
];
}
];
} }
{ {
job_name = "hydra-external"; job_name = "hydra-external";