17 lines
368 B
Nix
17 lines
368 B
Nix
_: let
|
|
ipInternal = "10.13.1.1"; # TODO: hardcoding
|
|
inherit (import ../../modules/nebula/shared.nix) unit;
|
|
in {
|
|
services.prometheus.exporters = {
|
|
node = {
|
|
enable = true;
|
|
listenAddress = ipInternal;
|
|
enabledCollectors = ["systemd"];
|
|
};
|
|
};
|
|
systemd.services."prometheus-node-exporter" = {
|
|
wants = [unit];
|
|
after = [unit];
|
|
};
|
|
}
|