Skip to content

Commit

Permalink
Merge pull request #116 from martin-helmich/bugfix/actually-use-metri…
Browse files Browse the repository at this point in the history
…cs-endpoint

Actually *use* configured metrics endpoint
  • Loading branch information
martin-helmich authored May 4, 2020
2 parents 03c21e1 + 847e2a6 commit b3b4fab
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 b3b4fab

Please sign in to comment.