Serve metrics for non-leader pods #196
Labels
kind/bug
Categorizes issue or PR as related to a bug.
priority/important-soon
Must be staffed and worked on either currently, or very soon, ideally in time for the next release.
When using leader election, metrics aren't served and so the non-leader pods are shown as "Down" by prometheus when it scrapes the pod.
Raised originally in #132 (comment)
To fix this, controller-runtime should start serving metrics while waiting to acquire leader status.
We need to make sure however that it doesn't serve metrics that are false, prometheus should pick up no time series from it and just connect, read and get a basically empty document.
The text was updated successfully, but these errors were encountered: