Prometheus: add process
This commit is contained in:
parent
f70935d0a5
commit
1d826f61c7
1 changed files with 5 additions and 0 deletions
|
|
@ -337,6 +337,7 @@ in
|
|||
enable = true;
|
||||
exporters = {
|
||||
node = { enable = true; enabledCollectors = [ "systemd" ]; };
|
||||
process.enable = true;
|
||||
systemd.enable = true;
|
||||
};
|
||||
globalConfig = {
|
||||
|
|
@ -347,6 +348,10 @@ in
|
|||
job_name = "node";
|
||||
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";
|
||||
static_configs = [{ targets = [ "localhost:${toString config.services.prometheus.exporters.systemd.port}" ]; }];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue