22 lines
327 B
Nix
22 lines
327 B
Nix
{ lib, ... }:
|
|
with lib;
|
|
with types;
|
|
{
|
|
|
|
options.components.monitor = {
|
|
enable = mkOption {
|
|
type = bool;
|
|
default = true;
|
|
};
|
|
};
|
|
|
|
imports = [
|
|
./netdata.nix
|
|
./opentelemetry.nix
|
|
./prometheus.nix
|
|
./promtail.nix
|
|
./telegraf.nix
|
|
];
|
|
|
|
config = mkIf config.components.monitor.enable { };
|
|
}
|