Skip to content

Commit

Permalink
fix: external prometheus (#91)
Browse files Browse the repository at this point in the history
  • Loading branch information
EvolveArt authored Nov 4, 2024
1 parent 732af6c commit dc98734
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions rust/theoros/src/cli.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ pub struct TheorosCli {
value_parser = parse_evm_config
)]
pub evm_config: evm_config::EvmConfig,

#[clap(env = "PROMETHEUS_EXTERNAL", long, default_value = "false")]
pub prometheus_external: bool,
}

/// Parse a Felt.
Expand Down
2 changes: 1 addition & 1 deletion rust/theoros/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ async fn main() -> Result<()> {
)
.await?;

let metrics_service = MetricsService::new(false, config.metrics_port)?;
let metrics_service = MetricsService::new(config.prometheus_external, config.metrics_port)?;

let state = AppState {
starknet_rpc: Arc::new(starknet_rpc),
Expand Down

0 comments on commit dc98734

Please sign in to comment.