Skip to content

Commit

Permalink
Reduce health check log level to debug when ready/healthy. (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
gtopper authored May 2, 2019
1 parent bbeea0d commit e25bd68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/web.go
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ func New(logger log.Logger, o *Options) *Handler {
return
}
w.WriteHeader(http.StatusOK)
level.Info(h.logger).Log("msg", "Prometheus is Healthy.")
level.Debug(h.logger).Log("msg", "Prometheus is Healthy.")
fmt.Fprintf(w, "Prometheus is Healthy.\n")
})
router.Get("/-/ready", readyf(func(w http.ResponseWriter, r *http.Request) {
Expand All @@ -387,7 +387,7 @@ func New(logger log.Logger, o *Options) *Handler {
return
}
w.WriteHeader(http.StatusOK)
level.Info(h.logger).Log("msg", "Prometheus is Ready.")
level.Debug(h.logger).Log("msg", "Prometheus is Ready.")
fmt.Fprintf(w, "Prometheus is Ready.\n")
}))

Expand Down

0 comments on commit e25bd68

Please sign in to comment.