From 6362ff1e3506137e5041c2d10f6fb3b95f9dcc0e Mon Sep 17 00:00:00 2001 From: Inex Code Date: Fri, 26 Jul 2024 19:31:03 +0300 Subject: [PATCH] feat: systemd exporter --- sp-modules/monitoring/module.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sp-modules/monitoring/module.nix b/sp-modules/monitoring/module.nix index 7ad8f83..47d7e2a 100644 --- a/sp-modules/monitoring/module.nix +++ b/sp-modules/monitoring/module.nix @@ -32,6 +32,11 @@ in { port = 9002; listenAddress = "127.0.0.1"; }; + systemd = { + enable = true; + port = 9003; + listenAddress = "127.0.0.1"; + }; }; scrapeConfigs = [ { @@ -40,6 +45,12 @@ in { targets = [ "127.0.0.1:9002" ]; }]; } + { + job_name = "systemd-exporter"; + static_configs = [{ + targets = [ "127.0.0.1:9003" ]; + }]; + } ]; }; };