Files
nixconfig/modules/shared/syscfg/monitoring.nix
2026-06-06 01:45:59 +02:00

42 lines
664 B
Nix

{ lib, ... }:
with lib; {
telegraf = {
enable = mkOption {
type = types.bool;
default = false;
};
collectors = mkOption {
type = types.listOf (types.enum [
"cpu"
"mem"
"swap"
"system"
"disk"
"diskio"
"kernel"
"net"
"netstat"
"processes"
"temp"
"mdstat"
"smart"
"docker"
"ping"
"gpu"
]);
default = [ ];
};
outputs = mkOption {
type = types.listOf types.str;
default = [ ];
};
extraConfig = mkOption {
type = types.attrs;
default = { };
};
};
}