fixup! Prometheus: add process

This commit is contained in:
Filippo Berto 2024-05-26 23:29:24 +02:00
parent 1d826f61c7
commit 90929cd857
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED

View file

@ -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<Wrapped>[^ /]*) (?P<Args>.*)" ]; }
];
};
systemd.enable = true;
};
globalConfig = {