Skip to content

Commit b3b4fab

Browse files
Merge pull request #116 from martin-helmich/bugfix/actually-use-metrics-endpoint
Actually *use* configured metrics endpoint
2 parents 03c21e1 + 847e2a6 commit b3b4fab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ func main() {
201201
listenAddr := fmt.Sprintf("%s:%d", cfg.Listen.Address, cfg.Listen.Port)
202202
fmt.Printf("running HTTP server on address %s\n", listenAddr)
203203

204-
http.Handle("/metrics", promhttp.Handler())
204+
http.Handle(opts.MetricsEndpoint, promhttp.Handler())
205205

206206
if err := http.ListenAndServe(listenAddr, nil); err != nil {
207207
fmt.Printf("error while starting HTTP server: %s", err.Error())

0 commit comments

Comments
 (0)