Skip to content

Commit

Permalink
feat: change the metrics port
Browse files Browse the repository at this point in the history
  • Loading branch information
bendanzhentan committed Feb 4, 2024
1 parent 4b3b689 commit 7f9dd7a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/bot/run.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 7f9dd7a

Please sign in to comment.