This repository has been archived on 2024-07-08. You can view files and clone it, but cannot push or open issues or pull requests.
nix-config-tn/nixos/hosts/common/optional/monitoring.nix

32 lines
516 B
Nix
Raw Normal View History

2024-03-13 06:55:17 -05:00
{
2024-03-17 16:04:32 -05:00
config,
pkgs,
lib,
...
}: {
2024-03-13 06:55:17 -05:00
services.prometheus.exporters = {
node = {
enable = true;
enabledCollectors = [
"diskstats"
"filesystem"
"loadavg"
"meminfo"
"netdev"
"stat"
"time"
"uname"
"systemd"
];
};
smartctl = {
enable = true;
};
};
2024-03-17 16:04:32 -05:00
2024-03-13 06:55:17 -05:00
networking.firewall.allowedTCPPorts = [
config.services.prometheus.exporters.node.port
config.services.prometheus.exporters.smartctl.port
];
2024-03-17 16:04:32 -05:00
}