lensapp / lens

Lens - The way the world runs Kubernetes
https://k8slens.dev/
MIT License
22.51k stars 1.47k forks source link

HPA external metrics values show 0 incorrectly #6068

Open zerodayyy opened 2 years ago

zerodayyy commented 2 years ago

Describe the bug HPA external metric values are displayed with the value 0 when these are actually different

To Reproduce Steps to reproduce the behavior:

  1. Connect to a cluster with HPA using External metrics, e.g. KEDA
  2. See 0 / X in Metrics column and details view (X is target value)

Expected behavior Actual metric values are displayed

Screenshots

image image image

Environment (please complete the following information):

Logs: Nothing relevant except:

info:    ▪ Creating a new port-forward system/service/keda-operator-metrics-apiserver:9022 +3s

The port forward seems intact:

image image
RotemBirman commented 1 year ago

I'm using OpenLens 6.4.14 and iI feel it actually got worse since the above and this were opened - https://github.com/lensapp/lens/issues/6110 The HPA based on CPU/Memory are showing ok, anything relaying on custom metrics is simply not showing -

image

nicolasbelanger commented 1 year ago

Just got burned by this after an upgrade from K8s 1.24 to 1.25... Any idea? K9s will report the metrics just fine...