add prometheus to hydra

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
ahuston-0 2024-06-22 21:58:37 -04:00 committed by Alice Huston
parent c808c89fbd
commit ad9bad9fe2

View File

@ -53,6 +53,12 @@
timeout = 3600 timeout = 3600
</git-input> </git-input>
Include ${config.sops.secrets."alice/gha-hydra-token".path} Include ${config.sops.secrets."alice/gha-hydra-token".path}
<hydra_notify>
<prometheus>
listen_address = 127.0.0.1
port = 9199
</prometheus>
</hydra_notify>
''; '';
}; };
@ -60,6 +66,20 @@
enable = true; enable = true;
secretKeyFile = config.sops.secrets."nix-serve/secret-key".path; 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 = [ users.users.root.openssh.authorizedKeys.keys = [