43 lines
689 B
Nix
43 lines
689 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"
|
|
"internet_speed"
|
|
"gpu"
|
|
]);
|
|
default = [ ];
|
|
};
|
|
|
|
outputs = mkOption {
|
|
type = types.listOf types.str;
|
|
default = [ ];
|
|
};
|
|
|
|
extraConfig = mkOption {
|
|
type = types.attrs;
|
|
default = { };
|
|
};
|
|
};
|
|
}
|