New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add metrics for health checks (for later use in apiserver) #111771
add metrics for health checks (for later use in apiserver) #111771
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: logicalhan The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/cc |
668b351
to
4a82eb1
Compare
/retest |
/triage accepted |
Change-Id: I0dff11cc298c4960ae6620004a071ef6a62ddc9a
4a82eb1
to
895c80b
Compare
staging/src/k8s.io/component-base/metrics/prometheus/health/metrics.go
Outdated
Show resolved
Hide resolved
staging/src/k8s.io/component-base/metrics/prometheus/health/metrics.go
Outdated
Show resolved
Hide resolved
Change-Id: I9c9854b8bb3221e4791c70f566361bd0421061c1
020453d
to
822c52c
Compare
Change-Id: I4a235c0d8b936da960cf5ce25cdd992e94130391
/lgtm |
Setting release notes to none since this PR just adds a new metrics Interface that is not yet wired anywhere in the code. /release-note-none |
/lgtm |
What type of PR is this?
/kind cleanup
What this PR does / why we need it:
Currently, our health check endpoints only output health information via
livez
,readyz
andhealthz
. Generally you need to parse the return code to know if the component is healthy. We should also just record this data as a metric, so that we can parse it directly through a monitoring pipeline./sig instrumentation