Server: add prometheus with node exporter
This commit is contained in:
parent
710e431dad
commit
a2bce9715d
2 changed files with 25 additions and 0 deletions
|
|
@ -15,6 +15,7 @@
|
|||
./caddy.nix
|
||||
./rust_motd.nix
|
||||
./adguard.nix
|
||||
./prometheus.nix
|
||||
./changedetection-io.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
24
roles/server/prometheus.nix
Normal file
24
roles/server/prometheus.nix
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
{...}: {
|
||||
services.prometheus = {
|
||||
enable = true;
|
||||
enableReload = true;
|
||||
exporters = {
|
||||
node = {
|
||||
enable = true;
|
||||
enabledCollectors = ["systemd"];
|
||||
listenAddress = "127.0.0.1";
|
||||
port = 9002;
|
||||
};
|
||||
};
|
||||
scrapeConfigs = [
|
||||
{
|
||||
job_name = "everest-node";
|
||||
static_configs = [
|
||||
{
|
||||
targets = ["127.0.0.1:9002"];
|
||||
}
|
||||
];
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue