Skip to content

Commit

Permalink
refactor: update Prometheus listener address to "0.0.0.0:3000"
Browse files Browse the repository at this point in the history
  • Loading branch information
luis-herasme committed Aug 16, 2024
1 parent 89f0934 commit 1445145
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ghost-crab/src/logs/prometheus.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,8 @@ impl Prometheus {

tokio::spawn(async move {
let app = Router::new().route("/metrics", get(metrics_handler)).with_state(state);
let listener = tokio::net::TcpListener::bind(address).await.unwrap();
println!("Metrics server listening on {}", listener.local_addr().unwrap());
let listener = tokio::net::TcpListener::bind("0.0.0.0:3000").await.unwrap();
println!("Metrics server listening on {:?}", listener);
axum::serve(listener, app).await.unwrap();
});
}
Expand Down

0 comments on commit 1445145

Please sign in to comment.