From 1d826f61c70d9616f7d4de612517de8dc5cd4436 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Sun, 26 May 2024 23:11:15 +0200 Subject: [PATCH] Prometheus: add process --- instances/freya/configuration.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/instances/freya/configuration.nix b/instances/freya/configuration.nix index 25d38cd..22bce8b 100644 --- a/instances/freya/configuration.nix +++ b/instances/freya/configuration.nix @@ -337,6 +337,7 @@ in enable = true; exporters = { node = { enable = true; enabledCollectors = [ "systemd" ]; }; + process.enable = true; systemd.enable = true; }; globalConfig = { @@ -347,6 +348,10 @@ in job_name = "node"; static_configs = [{ targets = [ "localhost:${toString config.services.prometheus.exporters.node.port}" ]; }]; } + { + job_name = "process"; + static_configs = [{ targets = [ "localhost:${toString config.services.prometheus.exporters.process.port}" ]; }]; + } { job_name = "systemd"; static_configs = [{ targets = [ "localhost:${toString config.services.prometheus.exporters.systemd.port}" ]; }];