nixos/common: Monitor systemd units with Netdata

This commit is contained in:
Jack O'Sullivan 2022-06-12 20:20:28 +01:00
parent e846c4404e
commit fa3ebb0319

View File

@ -140,6 +140,23 @@ in
"dbengine multihost disk space" = 256;
};
};
configDir = {
"go.d.conf" = mkDefault (pkgs.writeText "netdata-go.d.conf" ''
modules:
systemdunits: yes
'');
"go.d/systemdunits.conf" = mkDefault (pkgs.writeText "netdata-systemdunits.conf" ''
jobs:
- name: service-units
include:
- '*.service'
- name: socket-units
include:
- '*.socket'
'');
};
};
};
}