Add process exporter

This commit is contained in:
Agatha Lovelace 2023-06-11 22:28:27 +02:00
parent 3e9811007b
commit c48a30d66a
Signed by: sorceress
GPG Key ID: 01D0B3AB10CED4F8
3 changed files with 23 additions and 0 deletions

View File

@ -49,6 +49,16 @@
]; ];
}]; }];
} }
{
job_name = "process";
static_configs = [{
targets = [
"localhost:${
toString config.services.prometheus.exporters.process.port
}"
];
}];
}
]; ];
}; };
} }

View File

@ -20,6 +20,17 @@
enable = true; enable = true;
port = 9003; port = 9003;
}; };
process = {
enable = true;
port = 9005;
settings.process_names = [
# Remove nix store path from process name
{
name = "{{.Matches.Wrapped}} {{ .Matches.Args }}";
cmdline = [ "^/nix/store[^ ]*/(?P<Wrapped>[^ /]*) (?P<Args>.*)" ];
}
];
};
}; };
}; };

View File

@ -193,6 +193,8 @@
proxyPass = "http://unix:/run/mastodon-streaming/streaming.socket"; proxyPass = "http://unix:/run/mastodon-streaming/streaming.socket";
proxyWebsockets = true; proxyWebsockets = true;
}; };
extraConfig = "client_max_body_size 64M;";
}; };
}; };