From 7f9dd7a5b775856e7d86ff66b067c1ccc1753a70 Mon Sep 17 00:00:00 2001 From: bendanzhentan <455462586@qq.com> Date: Sun, 4 Feb 2024 17:08:43 +0800 Subject: [PATCH] feat: change the metrics port --- cmd/bot/run.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/bot/run.go b/cmd/bot/run.go index 4dd8157..0528a9d 100644 --- a/cmd/bot/run.go +++ b/cmd/bot/run.go @@ -70,7 +70,8 @@ func RunCommand(ctx *cli.Context) error { go func() { http.Handle("/metrics", promhttp.Handler()) - err := http.ListenAndServe(":8080", nil) + http.Handle("/debug/metrics/prometheus", promhttp.Handler()) + err := http.ListenAndServe(":6060", nil) if err != nil { logger.Error("failed to start prometheus server", "error", err) }