monitoring: added node-exporter
This commit is contained in:
parent
d1911c28e8
commit
d90283ae2c
2 changed files with 18 additions and 0 deletions
|
@ -14,5 +14,6 @@
|
|||
./mon-uptime-kuma.nix
|
||||
./mon-searx.nix
|
||||
./mon-nextcloud.nix
|
||||
./mon-node-exporter.nix
|
||||
];
|
||||
}
|
||||
|
|
17
machines/gerd/services/monitoring/mon-node-exporter.nix
Normal file
17
machines/gerd/services/monitoring/mon-node-exporter.nix
Normal file
|
@ -0,0 +1,17 @@
|
|||
{ config, lib, ... }:
|
||||
|
||||
{
|
||||
services.prometheus.exporters.node = {
|
||||
enable = true;
|
||||
listenAddress = "localhost";
|
||||
};
|
||||
|
||||
services.prometheus.scrapeConfigs = [
|
||||
{
|
||||
job_name = "node-exporter";
|
||||
static_configs = [{
|
||||
targets = [ "localhost:${builtins.toString config.services.prometheus.exporters.node.port}"];
|
||||
}];
|
||||
}
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue