mirror of
https://github.com/dump-dvb/nix-config.git
synced 2024-06-03 14:59:23 +02:00
data-hoarder: add prometheus node_exporter
This commit is contained in:
parent
52c34bdcb2
commit
4273af69ce
|
@ -15,5 +15,6 @@
|
||||||
./website.nix
|
./website.nix
|
||||||
./trekkie.nix
|
./trekkie.nix
|
||||||
./chemo.nix
|
./chemo.nix
|
||||||
|
./prometheus-exporter.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
17
modules/data-hoarder/prometheus-exporter.nix
Normal file
17
modules/data-hoarder/prometheus-exporter.nix
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
{ self, config, ... }:
|
||||||
|
{
|
||||||
|
# metrics exporter
|
||||||
|
services.prometheus.exporters = {
|
||||||
|
node = {
|
||||||
|
enable = true;
|
||||||
|
port = 8119;
|
||||||
|
listenAddress = config.deployment-TLMS.net.wg.addr4;
|
||||||
|
enabledCollectors = [
|
||||||
|
"systemd"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
# log exporter
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user