Added resolvectl + own DNS
This commit is contained in:
27
hosts/puter/prometheus-node-exporter.nix
Normal file
27
hosts/puter/prometheus-node-exporter.nix
Normal file
@@ -0,0 +1,27 @@
|
||||
{
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}: {
|
||||
# https://nixos.org/manual/nixos/stable/#module-services-prometheus-exporters
|
||||
# https://github.com/NixOS/nixpkgs/blob/nixos-24.05/nixos/modules/services/monitoring/prometheus/exporters.nix
|
||||
services.prometheus.exporters.node = {
|
||||
enable = true;
|
||||
port = 9100;
|
||||
# For the list of available collectors, run, depending on your install:
|
||||
# - Flake-based: nix run nixpkgs#prometheus-node-exporter -- --help
|
||||
# - Classic: nix-shell -p prometheus-node-exporter --run "node_exporter --help"
|
||||
enabledCollectors = [
|
||||
"ethtool"
|
||||
"softirqs"
|
||||
"systemd"
|
||||
"tcpstat"
|
||||
"wifi"
|
||||
];
|
||||
# You can pass extra options to the exporter using `extraFlags`, e.g.
|
||||
# to configure collectors or disable those enabled by default.
|
||||
# Enabling a collector is also possible using "--collector.[name]",
|
||||
# but is otherwise equivalent to using `enabledCollectors` above.
|
||||
# extraFlags = [ "--collector.ntp.protocol-version=4" "--no-collector.mdadm" ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user