Skip to content

Commit

Permalink
fix multiple registrations for /metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
marriva committed Mar 10, 2021
1 parent b736169 commit 2c6d86e
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -152,8 +152,6 @@ func main() {
log.Infoln("Starting es-snapshot-exporter", version.Info())
log.Infoln("Build context", version.BuildContext())

http.Handle(*metricsPath, promhttp.Handler())

log.Infoln("Starting server on", *listenAddress)
log.Fatal(http.ListenAndServe(*listenAddress, nil))

Expand Down

0 comments on commit 2c6d86e

Please sign in to comment.