Listen metrics on all interfaces

This commit is contained in:
braginini 2022-10-21 16:50:06 +02:00
parent 4f1f0df7d2
commit 4388dcc20b

View File

@ -163,7 +163,7 @@ var (
tlsEnabled = true
}
metricsListener, err := net.Listen("tcp4", fmt.Sprintf("localhost:%d", mgmtMetricsPort))
metricsListener, err := net.Listen("tcp4", fmt.Sprintf(":%d", mgmtMetricsPort))
if err != nil {
return err
}