From bf2ac301c3dba8d6ba81b173ce923a30a7efbc8c Mon Sep 17 00:00:00 2001 From: ad hoc Date: Tue, 24 Sep 2024 18:42:59 +0200 Subject: [PATCH] add `--disable-metrics` flag --- libsql-server/src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libsql-server/src/main.rs b/libsql-server/src/main.rs index e9290c5c87..d08376d1cc 100644 --- a/libsql-server/src/main.rs +++ b/libsql-server/src/main.rs @@ -304,6 +304,10 @@ struct Cli { )] sync_conccurency: usize, + /// Disable prometheus metrics collection + #[clap(long, env = "LIBSQL_DISABLE_METRICS")] + disable_metrics: bool, + #[clap(subcommand)] subcommand: Option, } @@ -506,7 +510,7 @@ async fn make_admin_api_config(config: &Cli) -> anyhow::Result