marleyos/modules/nixos/services/prometheus/default.nix

23 lines
418 B
Nix
Raw Normal View History

2025-02-26 04:12:54 +00:00
{
lib,
config,
...
}: let
cfg = config.marleyos.services.prometheus;
in {
options.marleyos.services.prometheus.enable = lib.mkEnableOption "prometheus";
config = lib.mkIf cfg.enable {
services.prometheus = {
exporters = {
node = {
enable = true;
port = 9002;
openFirewall = true;
enabledCollectors = ["systemd"];
};
};
};
};
}