21 lines
440 B
Nix
21 lines
440 B
Nix
{
|
|
config,
|
|
lib,
|
|
myData,
|
|
...
|
|
}: {
|
|
options.mj.services.snmp_exporter = with lib.types; {
|
|
enable = lib.mkEnableOption "Enable prometheus snmp_exporter";
|
|
};
|
|
|
|
config = lib.mkIf config.mj.services.snmp_exporter.enable {
|
|
mj.services.friendlyport.vpn.ports = [config.services.prometheus.exporters.snmp.port];
|
|
|
|
services.prometheus.exporters.snmp = {
|
|
enable = true;
|
|
configurationPath = ./snmp.yml;
|
|
};
|
|
|
|
};
|
|
}
|