From f28e5961322aeb52385e0df47aa877575bc23218 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Sat, 22 Jun 2024 23:03:20 -0400 Subject: [PATCH] add queue runner to prometheus Signed-off-by: ahuston-0 --- systems/palatine-hill/hydra.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/systems/palatine-hill/hydra.nix b/systems/palatine-hill/hydra.nix index 934bad2..aef65ab 100644 --- a/systems/palatine-hill/hydra.nix +++ b/systems/palatine-hill/hydra.nix @@ -5,7 +5,8 @@ ... }: let - hydra_prometheus_port = "9199"; + hydra_notify_prometheus_port = "9199"; + hydra_queue_runner_prometheus_port = "9200"; in { systemd.services.hydra-notify.serviceConfig.EnvironmentFile = @@ -58,9 +59,10 @@ in listen_address = 127.0.0.1 - port = ${hydra_prometheus_port} + port = ${hydra_notify_prometheus_port} + queue_runner_metrics_address = [::]:${hydra_queue_runner_prometheus_port} ''; }; @@ -85,7 +87,14 @@ in } { 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";