Skip to content

Commit

Permalink
Merge pull request #2735 from therc/patch-1
Browse files Browse the repository at this point in the history
Log URL in kubelet check failures
  • Loading branch information
truthbk committed Aug 8, 2016
2 parents 6014293 + ef3aa47 commit 7d2bf9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions checks.d/kubernetes.py
Expand Up @@ -84,9 +84,9 @@ def _perform_kubelet_checks(self, url):
is_ok = False

except Exception as e:
self.log.warning('kubelet check failed: %s' % str(e))
self.log.warning('kubelet check %s failed: %s' % (url, str(e)))
self.service_check(service_check_base, AgentCheck.CRITICAL,
message='Kubelet check failed: %s' % str(e))
message='Kubelet check %s failed: %s' % (url, str(e)))

else:
if is_ok:
Expand Down

0 comments on commit 7d2bf9a

Please sign in to comment.