Skip to content
This repository has been archived by the owner on Mar 30, 2024. It is now read-only.

Commit

Permalink
Added handler of /-/ping request to check liveness of exporter
Browse files Browse the repository at this point in the history
  • Loading branch information
alxrem committed Jan 11, 2018
1 parent 90f6dbf commit 6d37403
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ func main() {
prometheus.MustRegister(exporter)

http.Handle(*metricsPath, promhttp.Handler())
http.HandleFunc("/-/ping", func(w http.ResponseWriter, r *http.Request) {})

log.Infoln("Listening on", *listenAddress)
log.Fatal(http.ListenAndServe(*listenAddress, nil))
Expand Down

0 comments on commit 6d37403

Please sign in to comment.