add node exporter to all deployment systems
This commit is contained in:
parent
3bf9093745
commit
310162c24f
|
@ -1,10 +1,12 @@
|
|||
{
|
||||
imports = [
|
||||
./base.nix
|
||||
./binary-cache.nix
|
||||
./general-options.nix
|
||||
./json.nix
|
||||
./net.nix
|
||||
./wg.nix
|
||||
];
|
||||
imports =
|
||||
[
|
||||
./base.nix
|
||||
./binary-cache.nix
|
||||
./general-options.nix
|
||||
./json.nix
|
||||
./net.nix
|
||||
./wg.nix
|
||||
./node-exporter.nix
|
||||
];
|
||||
}
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
{ config, ... }:
|
||||
{
|
||||
# metrics exporter
|
||||
services.prometheus.exporters = {
|
||||
node = {
|
||||
enable = true;
|
||||
port = 8119;
|
||||
listenAddress = config.deployment-TLMS.net.wg.addr4;
|
||||
enabledCollectors = [
|
||||
"systemd"
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue