Accept an env variable to enable the metrics route
@@ -147,7 +147,7 @@ pub struct Opt {
pub log_level: String,
/// Enables Prometheus metrics and /metrics route.
- #[clap(long)]
+ #[clap(long, env = "MEILI_ENABLE_METRICS_ROUTE")]
pub enable_metrics_route: bool,
#[serde(flatten)]
