-
Notifications
You must be signed in to change notification settings - Fork 10.2k
grafana_dashboard: update cluster
variable to follow kubernetes-mixin
#20449
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
base: main
Are you sure you want to change the base?
Conversation
`kubernetes-monitoring/kubernetes-mixin` has set the standard of templating the `cluster` variable exactly as this repo have done, only the two seem to define the variable differently. kubernetes-mixin defines it as a pointer to multiple kubernetes clusters, whereas the existing config here seems to treat it as a `job` selector. Signed-off-by: TheRealNoob <[email protected]>
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: TheRealNoob The full list of commands accepted by this bot can be found here.
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Hi @TheRealNoob. Thanks for your PR. I'm waiting for a etcd-io member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. 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-sigs/prow repository. |
So the challenge I'm facing and the reason I've opened this PR as a draft is because I can't figure out how to make it work without implementing a breaking change. I suspect the number of people it would impact would be quite small and would be an easy fix (depending on the path forward), but still a breaking change. I would like feedback from maintainers on how to proceed before I go any further. Let me levelset with the two variables as I currently have them defined.
The problem I'm having is with the kubernetes-monitoring doesn't run into this problem because it doesn't have an equivalent My proposal would be to delete the If we really want to keep this functionality, I can think of two options.
|
Completely unrelated proposal....would it ever be considered to migrate the management of this dashboard into kubernetes-mixin? I'm sure it would be beneficial for it to receive standardization features beyond just this one problem I've run into. |
https://github.com/kubernetes-monitoring/kubernetes-mixin has set the standard of templating the
cluster
variable exactly as this repo has done, only the two seem to define the variable differently. kubernetes-mixin defines it as a selector of multiple kubernetes clusters, whereas the existing config here seems to treat it as a selector for multiple instances of etcd. This approach doesn't work if you've installed etcd to each cluster using the same set of labels such asjob
.My proposed change is to change the definition of
cluster
to follow the standard set by kubernetes-mixin, and add an additional variablejob
which acts as the instance selector. There are some challenges with this which I'll get into in the comments.