add prometheus to hydra
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
parent
c808c89fbd
commit
ad9bad9fe2
@ -53,6 +53,12 @@
|
||||
timeout = 3600
|
||||
</git-input>
|
||||
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;
|
||||
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 = [
|
||||
|
Loading…
x
Reference in New Issue
Block a user