nixos-config/nixos/components/monitor/container.nix

19 lines
467 B
Nix
Raw Normal View History

2024-05-18 23:57:31 +02:00
{ lib, config, ... }:
with lib;
with types;
{
imports = [ ./default.nix ];
options.components.monitor.container.promtail.port = mkOption {
type = int;
};
config = {
components.monitor.enable = mkDefault true;
components.monitor.metrics.enable = mkDefault false;
components.monitor.promtail.port = config.components.monitor.container.promtail.port;
components.monitor.opentelemetry.exporter.endpoint = mkDefault "127.0.0.1:4317";
};
}