From 90929cd8579c2b60f1f7f09c39e1d588e02a9eb7 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Sun, 26 May 2024 23:29:24 +0200 Subject: [PATCH] fixup! Prometheus: add process --- instances/freya/configuration.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/instances/freya/configuration.nix b/instances/freya/configuration.nix index 22bce8b..1f5c893 100644 --- a/instances/freya/configuration.nix +++ b/instances/freya/configuration.nix @@ -337,7 +337,13 @@ in enable = true; exporters = { node = { enable = true; enabledCollectors = [ "systemd" ]; }; - process.enable = true; + process = { + enable = true; + settings.process_names = [ + # Remove nix store path from process name + { name = "{{.Matches.Wrapped}} {{ .Matches.Args }}"; cmdline = [ "^/nix/store[^ ]*/(?P[^ /]*) (?P.*)" ]; } + ]; + }; systemd.enable = true; }; globalConfig = {