shipper
shipper copied to clipboard
Restclient metrics based on GVR always report "Unknown"
Presumably after the client-go
upgrade, our shipper_rest_client_latency_seconds
metrics started always reporting gvr="Unknown"
. We suspect that extractGVR
(here) is getting paths in a different way now.
As far as I can tell, this seems to be a regression in client-go. The url object that RESTLatencyMetric.Observe
receives always points to https://$host/{prefix}
. It's possible that this got introduced in https://github.com/kubernetes/client-go/commit/13b096589c6307cb2634a1d6048eebd96bfd497d
I'll investigate this further and open a PR upstream if needed.