32 lines
607 B
Nix
32 lines
607 B
Nix
{ lib, config, ... }:
|
|
with lib;
|
|
with types;
|
|
{
|
|
|
|
options.components.monitor = {
|
|
enable = mkOption {
|
|
type = bool;
|
|
default = true;
|
|
};
|
|
metrics.enable = mkOption {
|
|
type = bool;
|
|
default = config.components.monitor.enable;
|
|
};
|
|
logs.enable = mkOption {
|
|
type = bool;
|
|
default = config.components.monitor.enable;
|
|
};
|
|
};
|
|
|
|
imports = [
|
|
./logs-promtail.nix
|
|
./metrics-export-zfs.nix
|
|
./metrics-netdata.nix
|
|
./metrics-prometheus.nix
|
|
./metrics-telegraf.nix
|
|
./opentelemetry.nix
|
|
];
|
|
|
|
config = mkIf config.components.monitor.enable { };
|
|
|
|
}
|