what
This commit is contained in:
parent
616f310f4a
commit
1555d7b643
51 changed files with 243 additions and 231 deletions
|
@ -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}"];
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue