2024-04-28 17:05:12 +00:00
|
|
|
{ config, ... }:
|
|
|
|
{
|
2024-06-06 10:52:55 +00:00
|
|
|
# Only expose prometheus exporter port via wireguard interface
|
|
|
|
networking.firewall.interfaces.wg-ssh.allowedTCPPorts = [ 9002 ];
|
|
|
|
|
2024-04-28 17:05:12 +00:00
|
|
|
services.prometheus = {
|
|
|
|
exporters = {
|
|
|
|
node = {
|
|
|
|
enable = true;
|
|
|
|
enabledCollectors = [ "systemd" ];
|
|
|
|
port = 9002;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|