From cba44e51513ef903270ae228f183a5326713a365 Mon Sep 17 00:00:00 2001 From: Preston Van Loon Date: Thu, 19 Sep 2019 08:09:56 -0700 Subject: [PATCH] log a warning on unhealthy healthz (#3529) --- shared/prometheus/service.go | 1 + 1 file changed, 1 insertion(+) diff --git a/shared/prometheus/service.go b/shared/prometheus/service.go index 5243726e4..e07b1012b 100644 --- a/shared/prometheus/service.go +++ b/shared/prometheus/service.go @@ -75,6 +75,7 @@ func (s *Service) healthzHandler(w http.ResponseWriter, _ *http.Request) { // Write status header if hasError { w.WriteHeader(http.StatusInternalServerError) + log.WithField("statuses", statuses).Warn("Node is unhealthy!") } else { w.WriteHeader(http.StatusOK) }