From 06213708da8a3ae05e7cfb6c6c2dd231ba3add2b Mon Sep 17 00:00:00 2001 From: shenzhuan Date: Fri, 11 Nov 2022 14:24:24 +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 | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/prometheus.go b/prometheus.go index 984601a..d61f09c 100644 --- a/prometheus.go +++ b/prometheus.go @@ -7,10 +7,6 @@ import ( "strconv" ) -/* -@Auth:ShenZ -@Description: -*/ func PrometheusBoot(port int) { http.Handle("/metrics", promhttp.Handler()) //启动web服务 @@ -19,7 +15,6 @@ func PrometheusBoot(port int) { if err != nil { log.Fatal("启动普罗米修斯失败!") } - log.Println("监控启动,端口为:" + strconv.Itoa(port)) + log.Println("启动普罗米修斯监控成功! 端口:" + strconv.Itoa(port)) }() - }