Skip to content

Commit

Permalink
Make client address configurable (MystenLabs#4459)
Browse files Browse the repository at this point in the history
  • Loading branch information
sadhansood authored Sep 4, 2022
1 parent 6b9dada commit 7d4e8ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/sui-benchmark/src/bin/stress.rs
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ struct Opts {
run_spec: RunSpec,
#[clap(long, default_value = "9091", global = true)]
pub server_metric_port: u16,
#[clap(long, default_value = "127.0.0.1", global = true)]
pub client_metric_host: String,
#[clap(long, default_value = "8081", global = true)]
pub client_metric_port: u16,
/// Number of followers to run. This also stresses the follower logic in validators
Expand Down Expand Up @@ -348,7 +350,7 @@ async fn main() -> Result<()> {
NetworkAuthorityClientMetrics::new_for_tests(),
);
let registry: Registry = metrics::start_prometheus_server(
format!("127.0.0.1:{}", opts.client_metric_port)
format!("{}:{}", opts.client_metric_host, opts.client_metric_port)
.parse()
.unwrap(),
);
Expand Down

0 comments on commit 7d4e8ca

Please sign in to comment.