From 8fda0125d8641018db73b2ccafe8b8302937660f Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 11 Nov 2022 16:15:19 +0100 Subject: ... --- hosts/vidhar/prometheus/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'hosts') diff --git a/hosts/vidhar/prometheus/default.nix b/hosts/vidhar/prometheus/default.nix index 8e5ff0ea..e6de6806 100644 --- a/hosts/vidhar/prometheus/default.nix +++ b/hosts/vidhar/prometheus/default.nix @@ -69,6 +69,7 @@ in { "--systemd.collector.enable-ip-accounting" ]; }; + lvm.enable = true; blackbox = { enable = true; configFile = pkgs.writeText "blackbox-config.yaml" (builtins.toJSON { @@ -104,6 +105,13 @@ in { relabel_configs = relabelHosts; scrape_interval = "1s"; } + { job_name = "lvm"; + static_configs = [ + { targets = ["localhost:${toString config.services.prometheus.exporters.lvm.port}"]; } + ]; + relabel_configs = relabelHosts; + scrape_interval = "5s"; + } { job_name = "systemd"; static_configs = [ { targets = ["localhost:${toString config.services.prometheus.exporters.systemd.port}"]; } -- cgit v1.2.3