-
Notifications
You must be signed in to change notification settings - Fork 23
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
Adding group aggregators to fix many -> one relationships. #36
Conversation
Thanks for submitting your first pull request! You are awesome! 🤗 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for working on this, @felder!
Thanks @felder. Is this ready to merge? If you can add some inline comments on why |
@yuvipanda This is ready for merge. |
dashboards/cluster.jsonnet
Outdated
sum( | ||
# Get a list of all the nodes and which pool they are in. Group | ||
# aggregator is used because we only expect each node to exist | ||
# in a single pool. Unfortunately, if a node pool is rotated it may |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I think the explanation is slightly different. kube_pod_labels
comes from https://github.com/kubernetes/kube-state-metrics, and there is a particular label (kubernetes_node
) that lists the node on which the kube-state-metrics
pod is running! So that's totally irrelevant to these queries, but when a nodepool is rotated it caused there to exist two metrics with the same node
value (which we care about) but different kubernetes_node
values (because kube-state-metrics was running in a different node, even though we don't care about that). So I think this group
really just drops all labels except the two we care about to avoid messing things up.
Thanks, @felder! |
No description provided.