ncps: Add support for the --prometheus-enabled flag

This commit is contained in:
Wael Nasreddine
2025-09-04 23:45:17 -07:00
parent c46f18dfb2
commit a0817f37f2
@@ -27,6 +27,9 @@ let
cfg.openTelemetry.grpcURL != null
) "--otel-grpc-url='${cfg.openTelemetry.grpcURL}'")
))
++ (lib.optionals cfg.prometheus.enable [
"--prometheus-enabled"
])
);
serveFlags = lib.concatStringsSep " " (
@@ -76,6 +79,8 @@ in
};
};
prometheus.enable = lib.mkEnableOption "Enable Prometheus metrics endpoint at /metrics";
logLevel = lib.mkOption {
type = lib.types.enum logLevels;
default = "info";