f4114f02d4
The `PodMetrics` are now limited by `labelSelector` like already done for pods and probably other requests to Kubernetes. This limits the amount of data that is fetched. Tested locally by modifying `app-config.yaml` and an example component to use an internal cluster, which leads to the following request size improvements: Before: 344.71 kB compressed, 6.89 MB uncompressed After: 12.01 kB compressed, 238.86 kB uncompressed For the POST http://localhost:7007/api/kubernetes/services/playback-order call, in a Kubernetes cluster with ~500 pods. Fixes #17450. Signed-off-by: Luna Stadler <luc@spreadshirt.net>
282 B
282 B
@backstage/plugin-kubernetes-backend
| @backstage/plugin-kubernetes-backend |
|---|
| minor |
Allow fetching pod metrics limited by a labelSelector.
This is used by the Kubernetes tab on a components' page and leads to much smaller responses being received from Kubernetes, especially with larger Kubernetes clusters.