mirror of
https://github.com/meilisearch/meilisearch.git
synced 2024-11-23 02:27:40 +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,
|
pub log_level: String,
|
||||||
|
|
||||||
/// Enables Prometheus metrics and /metrics route.
|
/// Enables Prometheus metrics and /metrics route.
|
||||||
#[clap(long)]
|
#[clap(long, env = "MEILI_ENABLE_METRICS_ROUTE")]
|
||||||
pub enable_metrics_route: bool,
|
pub enable_metrics_route: bool,
|
||||||
|
|
||||||
#[serde(flatten)]
|
#[serde(flatten)]
|
||||||
|
Loading…
Reference in New Issue
Block a user