Skip to content

Commit 9a6e342

Browse files
authored
Merge pull request #1755 from tursodatabase/disable-metrics
disable metrics
2 parents f711cfa + bf2ac30 commit 9a6e342

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

libsql-server/src/main.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,10 @@ struct Cli {
304304
)]
305305
sync_conccurency: usize,
306306

307+
/// Disable prometheus metrics collection
308+
#[clap(long, env = "LIBSQL_DISABLE_METRICS")]
309+
disable_metrics: bool,
310+
307311
#[clap(subcommand)]
308312
subcommand: Option<UtilsSubcommands>,
309313
}
@@ -506,7 +510,7 @@ async fn make_admin_api_config(config: &Cli) -> anyhow::Result<Option<AdminApiCo
506510
Ok(Some(AdminApiConfig {
507511
acceptor,
508512
connector,
509-
disable_metrics: false,
513+
disable_metrics: config.disable_metrics,
510514
auth_key: config.admin_auth_key.clone(),
511515
}))
512516
}

0 commit comments

Comments
 (0)