From ab1a5ce6768ed3a422968ec0b81803d3aba888ff Mon Sep 17 00:00:00 2001 From: shenzhuan Date: Fri, 11 Nov 2022 15:43:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=99=AE=E7=BD=97=E7=B1=B3=E4=BF=AE=E6=96=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prometheus.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prometheus.go b/prometheus.go index 567052c..d1810d1 100644 --- a/prometheus.go +++ b/prometheus.go @@ -11,7 +11,7 @@ func PrometheusBoot(port int) { http.Handle("/metrics", promhttp.Handler()) //启动web服务 go func() { - err := http.ListenAndServe("0.0.0.0"+strconv.Itoa(port), nil) + err := http.ListenAndServe("0.0.0.0:"+strconv.Itoa(port), nil) if err != nil { log.Fatal("启动普罗米修斯失败!", err) }