From 08d86e33ca3ab86809f8763354f1c63e0ddeebeb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Wed, 24 Aug 2022 16:39:56 +0200 Subject: [PATCH] Accept an env variable to enable the metrics route --- meilisearch-http/src/option.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meilisearch-http/src/option.rs b/meilisearch-http/src/option.rs index e97bf39d7..9459f0309 100644 --- a/meilisearch-http/src/option.rs +++ b/meilisearch-http/src/option.rs @@ -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)]