We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f711cfa + bf2ac30 commit 9a6e342Copy full SHA for 9a6e342
1 file changed
libsql-server/src/main.rs
@@ -304,6 +304,10 @@ struct Cli {
304
)]
305
sync_conccurency: usize,
306
307
+ /// Disable prometheus metrics collection
308
+ #[clap(long, env = "LIBSQL_DISABLE_METRICS")]
309
+ disable_metrics: bool,
310
+
311
#[clap(subcommand)]
312
subcommand: Option<UtilsSubcommands>,
313
}
@@ -506,7 +510,7 @@ async fn make_admin_api_config(config: &Cli) -> anyhow::Result<Option<AdminApiCo
506
510
Ok(Some(AdminApiConfig {
507
511
acceptor,
508
512
connector,
509
- disable_metrics: false,
513
+ disable_metrics: config.disable_metrics,
514
auth_key: config.admin_auth_key.clone(),
515
}))
516
0 commit comments