Missing agones_k8s_client_cache_* metrics
What happened:
Setup of a GKE Autopilot cluster with Agones was completed, and Prometheus was configured for collecting metrics. During the setup of Grafana dashboards, it was observed that the agones_k8s_client_cache_* metrics are missing. These metrics are not present in the Prometheus exports from the /metrics endpoints of any services.
What you expected to happen:
Expected the agones_k8s_client_cache_* metrics in Grafana dashboards
How to reproduce it (as minimally and precisely as possible):
Anything else we need to know?:
It's possible that the metrics exported from client-go have changed. Relevant code is here, in case you want to take a look: https://github.com/googleforgames/agones/blob/e5d89bc2f47c6a34662c6afa6f1a057e250f81a8/pkg/metrics/kubernetes_client.go#L199C8-L199C35
Environment:
- Agones version: 1.36.0
- Kubernetes version (use
kubectl version): 1.28 - Cloud provider or hardware configuration: GKE Autopilot
Just noting that I'm seeing this in GKE standard, as well - I don't think it's an autopilot issue - I think something changed in client-go somewhere.
'This issue is marked as Stale due to inactivity for more than 30 days. To avoid being marked as 'stale' please add 'awaiting-maintainer' label or add a comment. Thank you for your contributions '