Skip to content

Commit

Permalink
Merge pull request #752 from Jimdo/add-health-endpoint
Browse files Browse the repository at this point in the history
Add health endpoint
  • Loading branch information
mem authored Mar 16, 2021
2 parents 0617320 + 70bce1a commit b8d3883
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,10 @@ func run() int {
}
})
http.Handle(path.Join(*routePrefix, "/metrics"), promhttp.Handler())
http.HandleFunc(path.Join(*routePrefix, "/-/healthy"), func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
w.Write([]byte("Healthy"))
})
http.HandleFunc(path.Join(*routePrefix, "/probe"), func(w http.ResponseWriter, r *http.Request) {
sc.Lock()
conf := sc.C
Expand Down

0 comments on commit b8d3883

Please sign in to comment.