{
lib,
config,
...
}: let
cfg = config.roles.prometheus;
in {
options.roles.prometheus = {
exporters = lib.mkOption {
type = lib.types.submodule {
options = {
openFirewall = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Wheter to open firewall ports for enabled exporters";
};
node.enable = lib.mkEnableOption "node exporter";
systemd.enable = lib.mkEnableOption "systemd exporter";
};
};
default = {};
};
};
}