Skip to content

Commit

Permalink
Actually *use* configured metrics endpoint
Browse files Browse the repository at this point in the history
Fixes #114 (again)
  • Loading branch information
martin-helmich committed May 4, 2020
1 parent 03c21e1 commit 847e2a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ func main() {
listenAddr := fmt.Sprintf("%s:%d", cfg.Listen.Address, cfg.Listen.Port)
fmt.Printf("running HTTP server on address %s\n", listenAddr)

http.Handle("/metrics", promhttp.Handler())
http.Handle(opts.MetricsEndpoint, promhttp.Handler())

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

0 comments on commit 847e2a6

Please sign in to comment.