Skip to content

Commit

Permalink
Merge pull request tursodatabase#1755 from tursodatabase/disable-metrics
Browse files Browse the repository at this point in the history
disable metrics
  • Loading branch information
MarinPostma authored Sep 24, 2024
2 parents f711cfa + bf2ac30 commit 9a6e342
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 9a6e342

Please sign in to comment.