From ad9bad9fe2f87ad822554dd8377928ca1f17b578 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Sat, 22 Jun 2024 21:58:37 -0400 Subject: [PATCH] add prometheus to hydra Signed-off-by: ahuston-0 --- systems/palatine-hill/hydra.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/systems/palatine-hill/hydra.nix b/systems/palatine-hill/hydra.nix index 7ecdde2..02a0bb6 100644 --- a/systems/palatine-hill/hydra.nix +++ b/systems/palatine-hill/hydra.nix @@ -53,6 +53,12 @@ timeout = 3600 Include ${config.sops.secrets."alice/gha-hydra-token".path} + + + listen_address = 127.0.0.1 + port = 9199 + + ''; }; @@ -60,6 +66,20 @@ enable = true; secretKeyFile = config.sops.secrets."nix-serve/secret-key".path; }; + prometheus = { + enable = true; + exporters.node = { + enable = true; + enabledCollectors = [ "systemd" ]; + port = 9002; + }; + scrapeConfigs = [ + { + job_name = "hydra"; + static_configs = [ { targets = [ "127.0.0.1:9199" ]; } ]; + } + ]; + }; }; users.users.root.openssh.authorizedKeys.keys = [