Fix node exporter failing to start
This commit is contained in:
parent
c4a2215822
commit
bf81c73eca
|
|
@ -1,5 +1,6 @@
|
||||||
_: let
|
_: let
|
||||||
ipInternal = "10.13.1.1"; # TODO: hardcoding
|
ipInternal = "10.13.1.1"; # TODO: hardcoding
|
||||||
|
inherit (import ../../modules/nebula/shared.nix) unit;
|
||||||
in {
|
in {
|
||||||
services.prometheus.exporters = {
|
services.prometheus.exporters = {
|
||||||
node = {
|
node = {
|
||||||
|
|
@ -8,4 +9,8 @@ in {
|
||||||
enabledCollectors = ["systemd"];
|
enabledCollectors = ["systemd"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
systemd.services."prometheus-node-exporter" = {
|
||||||
|
wants = [unit];
|
||||||
|
after = [unit];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,4 +4,5 @@ rec {
|
||||||
# https://github.com/NixOS/nixpkgs/blob/nixos-24.05/nixos/modules/services/networking/nebula.nix
|
# https://github.com/NixOS/nixpkgs/blob/nixos-24.05/nixos/modules/services/networking/nebula.nix
|
||||||
interface = "nebula.${netName}";
|
interface = "nebula.${netName}";
|
||||||
userGroup = "nebula-${netName}";
|
userGroup = "nebula-${netName}";
|
||||||
|
unit = "nebula@${netName}.service";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue