Skip to content

Commit

Permalink
add --disable-metrics flag
Browse files Browse the repository at this point in the history
  • Loading branch information
MarinPostma committed Sep 24, 2024
1 parent 39a6973 commit bf2ac30
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion libsql-server/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<UtilsSubcommands>,
}
Expand Down Expand Up @@ -506,7 +510,7 @@ async fn make_admin_api_config(config: &Cli) -> anyhow::Result<Option<AdminApiCo
Ok(Some(AdminApiConfig {
acceptor,
connector,
disable_metrics: false,
disable_metrics: config.disable_metrics,
auth_key: config.admin_auth_key.clone(),
}))
}
Expand Down

0 comments on commit bf2ac30

Please sign in to comment.