Expose /metrics endpoint for monitoring#313
Expose /metrics endpoint for monitoring#313benjaminapetersen wants to merge 1 commit intoopenshift:release-4.1from
Conversation
- Add manifest for ServiceMonitor object - Authorize prometheus to scrape metrics from console & console-operator - NOTE: console disabled until we support the /metrics endpoint - RBAC - reenable delegated auth - add rolebinding to kube-system for extension-apiserver-authentication-reader for console-operatoro - add clusterrole system:auth-delegator to console-operator - allows authentication (tokenreview) and authorization (subjectaccessreview) - required as the /metrics endpoint is protected - mount serving-cert in operator deployment - add labels to namespaces to tell openshift monitoring to begin monitoring
|
@benjaminapetersen: No Bugzilla bug is referenced in the title of this pull request. DetailsIn response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: benjaminapetersen The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
| - kind: ServiceAccount | ||
| name: console-operator | ||
| --- | ||
| apiVersion: rbac.authorization.k8s.io/v1 |
There was a problem hiding this comment.
Moved to manifests/04-rbac-rolebinding-cluster.yaml (part of original PR).
There was a problem hiding this comment.
Which, is not here. Going to close & reopen, the cherry-pick is missing something.
|
@benjaminapetersen: The following tests failed, say
Full PR test history. Your PR dashboard. Please help us cut down on flakes by linking to an open issue when you hit one in your PR. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
This is a
cherry-pick(with resolutions) of #270 which exposes metrics, specificallyconsole_urlin 4.2.extension-apiserver-authentication-reader for console-operatoro
(subjectaccessreview)
monitoring