Accept an env variable to enable the metrics route

This commit is contained in:
Clément Renault 2022-08-24 16:39:56 +02:00
parent f87ebfe477
commit 08d86e33ca
No known key found for this signature in database
GPG Key ID: 92ADA4E935E71FA4

View File

@ -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)]