Scan ren
This commit is contained in:
parent
3932189c8b
commit
2c56d76f6d
3 changed files with 17 additions and 0 deletions
|
|
@ -50,6 +50,7 @@
|
|||
targets = [
|
||||
"localhost:${toString config.services.prometheus.exporters.node.port}"
|
||||
"localhost:8096"
|
||||
"10.100.0.3:53231"
|
||||
];
|
||||
}
|
||||
];
|
||||
|
|
|
|||
15
systems/ren/prom.nix
Normal file
15
systems/ren/prom.nix
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
services.prometheus.exporters.node = {
|
||||
enable = true;
|
||||
port = 53231;
|
||||
# https://github.com/NixOS/nixpkgs/blob/nixos-24.05/nixos/modules/services/monitoring/prometheus/exporters.nix
|
||||
enabledCollectors = [ "systemd" ];
|
||||
# /nix/store/zgsw0yx18v10xa58psanfabmg95nl2bb-node_exporter-1.8.1/bin/node_exporter --help
|
||||
extraFlags = [
|
||||
"--collector.ethtool"
|
||||
"--collector.softirqs"
|
||||
"--collector.tcpstat"
|
||||
"--collector.wifi"
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -36,5 +36,6 @@ nixpkgs.lib.nixosSystem {
|
|||
./volumes.nix
|
||||
(import ./wireguard.nix).systemModule
|
||||
../../modules/servermodules/arr/arr.nix
|
||||
./prom.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue