ncps: Add support for the --prometheus-enabled flag
This commit is contained in:
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user