2023-12-29 17:03:35 +01:00
|
|
|
{ lib, ... }:
|
|
|
|
with lib;
|
|
|
|
with types;
|
|
|
|
{
|
|
|
|
|
|
|
|
options.components.monitor = {
|
|
|
|
enable = mkOption {
|
|
|
|
type = bool;
|
|
|
|
default = true;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
imports = [
|
|
|
|
./netdata.nix
|
2024-05-15 11:59:24 +02:00
|
|
|
./opentelemetry.nix
|
|
|
|
./prometheus.nix
|
2024-05-15 14:39:21 +02:00
|
|
|
./promtail.nix
|
2024-05-15 11:59:24 +02:00
|
|
|
./telegraf.nix
|
2023-12-29 17:03:35 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
config = mkIf config.components.monitor.enable { };
|
|
|
|
}
|