Prometheus: add process

This commit is contained in:
Filippo Berto 2024-05-26 23:11:15 +02:00
parent f70935d0a5
commit 1d826f61c7
Signed by: bertof
GPG key ID: 9DBF7E6A1D2CE9ED

View file

@ -337,6 +337,7 @@ in
enable = true; enable = true;
exporters = { exporters = {
node = { enable = true; enabledCollectors = [ "systemd" ]; }; node = { enable = true; enabledCollectors = [ "systemd" ]; };
process.enable = true;
systemd.enable = true; systemd.enable = true;
}; };
globalConfig = { globalConfig = {
@ -347,6 +348,10 @@ in
job_name = "node"; job_name = "node";
static_configs = [{ targets = [ "localhost:${toString config.services.prometheus.exporters.node.port}" ]; }]; 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"; job_name = "systemd";
static_configs = [{ targets = [ "localhost:${toString config.services.prometheus.exporters.systemd.port}" ]; }]; static_configs = [{ targets = [ "localhost:${toString config.services.prometheus.exporters.systemd.port}" ]; }];