22 lines
456 B
Nix
22 lines
456 B
Nix
{ lib, config, ... }:
|
|
with lib;
|
|
with types;
|
|
{
|
|
imports = [
|
|
../../components/monitor
|
|
];
|
|
|
|
# todo create a the components.monitor.container module.
|
|
options.promtail.port = mkOption {
|
|
type = int;
|
|
};
|
|
|
|
config = {
|
|
components.monitor.enable = true;
|
|
components.monitor.metrics.enable = false;
|
|
components.monitor.promtail.port = config.promtail.port;
|
|
components.monitor.opentelemetry.exporter.endpoint = "127.0.0.1:4317";
|
|
};
|
|
|
|
|
|
}
|