about summary refs log tree commit diff stats
path: root/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'server.go')
-rw-r--r--server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/server.go b/server.go
index 9d04dc1..0835d68 100644
--- a/server.go
+++ b/server.go
@@ -186,7 +186,7 @@ func main() {
 	})
 
 	go func() {
-		err := metricServer.Listen(":9091")
+		err := metricServer.Listen(net.JoinHostPort(runtimeConfig.ListenAddress, "9091"))
 		log.Printf("failed to start metrics server: %v", err)
 	}()
 	log.Fatal(toplevel.Listen(net.JoinHostPort(runtimeConfig.ListenAddress, fmt.Sprint(runtimeConfig.Port))))