-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Remove metrics global registry #210
Copy link
Copy link
Open
Labels
lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.priority/backlogHigher priority than priority/awaiting-more-evidence.Higher priority than priority/awaiting-more-evidence.
Milestone
Metadata
Metadata
Assignees
Labels
lifecycle/frozenIndicates that an issue or PR should not be auto-closed due to staleness.Indicates that an issue or PR should not be auto-closed due to staleness.priority/backlogHigher priority than priority/awaiting-more-evidence.Higher priority than priority/awaiting-more-evidence.
Type
Fields
Give feedbackNo fields configured for issues without a type.
I would like to suggest to remove the global registry as currently the controller-runtime global registry does not capture metrics registered onto
prometheus.DefaultRegisterer. As a step forward and in line with the prosed KEP, the controller-runtime should be able to have the registry injected. (for a start withprometheus.DefaultRegisterer, with the long term goal of removing the global registry in the first place, I am open for suggestions on that.)As per the proposal kubernetes/community#2909:
Lastly, this may be my own opinion, but introducing globals as a library hides its dependencies, therefore I think having the registry be injected makes the API more clear.