configuration.nix/hosts/shared/prometheus-exporters.nix

24 lines
530 B
Nix
Raw Permalink Normal View History

2024-11-17 14:06:41 +05:30
{ config, ... }: {
2024-07-18 22:03:46 +05:30
services = {
2024-07-18 23:00:17 +05:30
prometheus.exporters = {
node = {
enable = true;
2024-11-17 14:06:41 +05:30
listenAddress = config.nodeconfig.facts.wireguard-ip;
2024-07-18 23:00:17 +05:30
port = 9100;
enabledCollectors = [ "systemd" "processes" ];
2024-07-18 23:00:17 +05:30
};
2024-09-19 19:08:58 +05:30
smartctl = {
enable = true;
2024-11-17 14:06:41 +05:30
listenAddress = config.nodeconfig.facts.wireguard-ip;
2024-09-19 19:08:58 +05:30
port = 9633;
};
2024-07-18 23:00:17 +05:30
systemd = {
enable = true;
2024-11-17 14:06:41 +05:30
listenAddress = config.nodeconfig.facts.wireguard-ip;
2024-07-18 23:00:17 +05:30
port = 9558;
};
2024-07-18 22:03:46 +05:30
};
};
}