Skip to content
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

Collect service labels to be able to use the kube_service_labels metric in Grafana #3473

Merged
merged 1 commit into from
Nov 30, 2023

Conversation

GeorgianaElena
Copy link
Member

@GeorgianaElena GeorgianaElena commented Nov 29, 2023

I think I found the fix to #3237.

The $hub variable used in Grafana is using a label_values query, on a service metric called kube_service_labels. But for the service labels to be available, they need to be allowed listed, because starting with kube-state-metrics > v2.0, by default, the metrics contains only name and namespace labels, and all other needed labels need to be explicitly allowed.

What I don't understand why it worked until a month ago, as the v2.0 was released for some time already, but I believe this requirement got tighter with kubernetes/kube-state-metrics#2145 which was released more recently.

Anyway, I've test-deployed this and we got the $hub variable back into our dashboards 🎉

Closes #3237

Copy link

Merging this PR will trigger the following deployment actions.

Support and Staging deployments

Cloud Provider Cluster Name Upgrade Support? Reason for Support Redeploy Upgrade Staging? Reason for Staging Redeploy
aws nasa-ghg Yes Support helm chart has been modified No
gcp catalystproject-latam Yes Support helm chart has been modified No
aws openscapes Yes Support helm chart has been modified No
gcp callysto Yes Support helm chart has been modified No
gcp linked-earth Yes Support helm chart has been modified No
aws nasa-veda Yes Support helm chart has been modified No
gcp 2i2c Yes Support helm chart has been modified No
gcp qcl Yes Support helm chart has been modified No
aws smithsonian Yes Support helm chart has been modified No
gcp leap Yes Support helm chart has been modified No
aws nasa-cryo Yes Support helm chart has been modified No
gcp cloudbank Yes Support helm chart has been modified No
aws catalystproject-africa Yes Support helm chart has been modified No
kubeconfig utoronto Yes Support helm chart has been modified No
aws ubc-eoas Yes Support helm chart has been modified No
aws jupyter-meets-the-earth Yes Support helm chart has been modified No
gcp meom-ige Yes Support helm chart has been modified No
aws victor Yes Support helm chart has been modified No
gcp m2lines Yes Support helm chart has been modified No
gcp hhmi Yes Support helm chart has been modified No
aws carbonplan Yes Support helm chart has been modified No
aws 2i2c-aws-us Yes Support helm chart has been modified No
aws gridsst Yes Support helm chart has been modified No
gcp 2i2c-uk Yes Support helm chart has been modified No
gcp pangeo-hubs Yes Support helm chart has been modified No
gcp awi-ciroh Yes Support helm chart has been modified No

Production deployments

No production hub upgrades will be triggered

@GeorgianaElena GeorgianaElena merged commit 74d8627 into 2i2c-org:master Nov 30, 2023
32 checks passed
@GeorgianaElena GeorgianaElena deleted the service-labels branch November 30, 2023 07:52
Copy link

🎉🎉🎉🎉

Monitor the deployment of the hubs here 👉 https://github.com/2i2c-org/infrastructure/actions/runs/7043525168

@GeorgianaElena GeorgianaElena changed the title Collect service labels in order for kube_service_ metrics to be usable Collect service labels to be able to use the kube_service_labels metric in Grafana Nov 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done 🎉
Development

Successfully merging this pull request may close these issues.

Grafanas show empty due to how variables are refreshed
2 participants