fixup! Prometheus: add process
This commit is contained in:
parent
1d826f61c7
commit
90929cd857
1 changed files with 7 additions and 1 deletions
|
|
@ -337,7 +337,13 @@ in
|
||||||
enable = true;
|
enable = true;
|
||||||
exporters = {
|
exporters = {
|
||||||
node = { enable = true; enabledCollectors = [ "systemd" ]; };
|
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;
|
systemd.enable = true;
|
||||||
};
|
};
|
||||||
globalConfig = {
|
globalConfig = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue