Fix node exporter failing to start
This commit is contained in:
parent
c4a2215822
commit
bf81c73eca
|
|
@ -1,5 +1,6 @@
|
|||
_: let
|
||||
ipInternal = "10.13.1.1"; # TODO: hardcoding
|
||||
inherit (import ../../modules/nebula/shared.nix) unit;
|
||||
in {
|
||||
services.prometheus.exporters = {
|
||||
node = {
|
||||
|
|
@ -8,4 +9,8 @@ in {
|
|||
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
|
||||
interface = "nebula.${netName}";
|
||||
userGroup = "nebula-${netName}";
|
||||
unit = "nebula@${netName}.service";
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue