mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-26 12:05:05 +08:00
Accept an env variable to enable the metrics route
This commit is contained in:
parent
f87ebfe477
commit
08d86e33ca
@ -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)]
|
||||
|
Loading…
Reference in New Issue
Block a user