Skip to content

Commit

Permalink
Prometheus listen on 0.0.0.0
Browse files Browse the repository at this point in the history
kostekIV committed Feb 7, 2024
1 parent 628b7b0 commit b450360
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/extensions/prometheus/mod.rs
Original file line number Diff line number Diff line change
@@ -59,7 +59,7 @@ impl Prometheus {
}

fn start_prometheus_exporter(registry: Registry, port: u16) -> JoinHandle<()> {
let addr = SocketAddr::new(Ipv4Addr::LOCALHOST.into(), port);
let addr = SocketAddr::new(Ipv4Addr::UNSPECIFIED.into(), port);

tokio::spawn(async move {
init_prometheus(addr, registry).await.unwrap();

0 comments on commit b450360

Please sign in to comment.