From fa3ebb03197776933fc3aa32d78f87048fc23dc3 Mon Sep 17 00:00:00 2001 From: Jack O'Sullivan Date: Sun, 12 Jun 2022 20:20:28 +0100 Subject: [PATCH] nixos/common: Monitor systemd units with Netdata --- nixos/modules/common.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/nixos/modules/common.nix b/nixos/modules/common.nix index 0ce8d80..96c5931 100644 --- a/nixos/modules/common.nix +++ b/nixos/modules/common.nix @@ -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' + ''); + }; }; }; }