From a6c77584c26f0fa4dc50517a418d2f8153c0a048 Mon Sep 17 00:00:00 2001 From: Inex Code Date: Sat, 27 Jul 2024 01:17:57 +0300 Subject: [PATCH] test cadvisor --- sp-modules/monitoring/module.nix | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sp-modules/monitoring/module.nix b/sp-modules/monitoring/module.nix index 828ea9e..69fe5e8 100644 --- a/sp-modules/monitoring/module.nix +++ b/sp-modules/monitoring/module.nix @@ -21,6 +21,11 @@ in { ]; }; }; + services.cadvisor = { + enable = true; + port = 9003; + listenAddress = "127.0.0.1"; + }; services.prometheus = { enable = true; port = 9001; @@ -28,15 +33,10 @@ in { exporters = { node = { enable = true; - enabledCollectors = [ "systemd" "cgroups" ]; + enabledCollectors = [ "systemd" ]; port = 9002; listenAddress = "127.0.0.1"; }; - systemd = { - enable = true; - port = 9003; - listenAddress = "127.0.0.1"; - }; }; scrapeConfigs = [ { @@ -46,7 +46,7 @@ in { }]; } { - job_name = "systemd-exporter"; + job_name = "cadvisor"; static_configs = [{ targets = [ "127.0.0.1:9003" ]; }];