-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
🐛 Serve metrics even if not leader #197
🐛 Serve metrics even if not leader #197
Conversation
/kind bug |
I think this LGTM. Looks like the test issue is in the metrics test: https://travis-ci.org/kubernetes-sigs/controller-runtime/jobs/450256058#L617 |
Looks like it's affecting multiple PRs (e.g. #193). I'd guess it's a flake. I'm going to fork off a separate bug. |
928bc7d
to
3493e1c
Compare
@DirectXMan12 I've rebased this now #200 is merged, tests are passing now |
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: DirectXMan12, JoelSpeed 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 |
looks like there's a merge conflict. rebase and we'll get this merged. |
3493e1c
to
e1ceb2f
Compare
@DirectXMan12 Rebased, should be good to go now |
/lgtm |
🐛 Serve metrics even if not leader
Fixes #196.
Move metrics serving to before we separate into the leader election vs non leader election start process.
This allows prometheus to count non-leader targets as up, but will just receive an empty response for non-leaders and so no inaccurate metrics are collected.