Files
nixconfig/modules/shared/syscfg/monitoring.nix
soraefir 9573be2232 cleanup
2026-06-06 00:48:56 +02:00

41 lines
650 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"
]);
default = [ ];
};
outputs = mkOption {
type = types.listOf types.str;
default = [ ];
};
extraConfig = mkOption {
type = types.attrs;
default = { };
};
};
}