1
0
Fork 0
This commit is contained in:
Lukas Wurzinger 2025-03-23 22:48:46 +01:00
parent 616f310f4a
commit 1555d7b643
No known key found for this signature in database
51 changed files with 243 additions and 231 deletions

View file

@ -1,8 +1,4 @@
{
config,
lib,
...
}: {
{config, ...}: {
services.prometheus = {
enable = true;
port = 3020;
@ -22,11 +18,9 @@
static_configs = [
{
targets = let
target = lib.formatHostPort {
host = config.services.prometheus.exporters.node.listenAddress;
inherit (config.services.prometheus.exporters.node) port;
};
in [target];
host = config.services.prometheus.exporters.node.listenAddress;
port = builtins.toString config.services.prometheus.exporters.node.port;
in ["${host}:${port}"];
}
];
}