finalize hydra promtheus config
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
parent
0916a3a8f0
commit
eceaf67ad6
@ -4,7 +4,9 @@
|
|||||||
pkgs,
|
pkgs,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
let
|
||||||
|
hydra_prometheus_port = 9199;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
systemd.services.hydra-notify.serviceConfig.EnvironmentFile =
|
systemd.services.hydra-notify.serviceConfig.EnvironmentFile =
|
||||||
config.sops.secrets."hydra/environment".path;
|
config.sops.secrets."hydra/environment".path;
|
||||||
@ -56,7 +58,7 @@
|
|||||||
<hydra_notify>
|
<hydra_notify>
|
||||||
<prometheus>
|
<prometheus>
|
||||||
listen_address = 127.0.0.1
|
listen_address = 127.0.0.1
|
||||||
port = 9199
|
port = ${hydra_prometheus_port}
|
||||||
</prometheus>
|
</prometheus>
|
||||||
</hydra_notify>
|
</hydra_notify>
|
||||||
'';
|
'';
|
||||||
@ -76,8 +78,19 @@
|
|||||||
};
|
};
|
||||||
scrapeConfigs = [
|
scrapeConfigs = [
|
||||||
{
|
{
|
||||||
job_name = "hydra";
|
job_name = "palatine-hill";
|
||||||
static_configs = [ { targets = [ "127.0.0.1:9199" ]; } ];
|
static_configs = [
|
||||||
|
{ targets = [ "127.0.0.1:${toString config.services.prometheus.exporters.node.port}" ]; }
|
||||||
|
];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
job_name = "hydra-local";
|
||||||
|
static_configs = [ { targets = [ "127.0.0.1:${hydra_prometheus_port}" ]; } ];
|
||||||
|
}
|
||||||
|
{
|
||||||
|
job_name = "hydra-external";
|
||||||
|
scheme = "https";
|
||||||
|
static_configs = [ { targets = [ "hydra.alicehuston.xyz" ]; } ];
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user