lensapp / lens

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

Make rateAccuracy a setting #7743

Open akelge opened 1 year ago

akelge commented 1 year ago

What would you like to be added: Currently when I configure metrics reading on a cluster I have 5 options plus autodetect. Each option has its own hardcoded value for rateAccuracy, I would like if this can become a setting parameter.

Why is this needed: I use kube-prometheus-stack helm chart to deploy the full stack on K8S clusters, but I would like to change the scrapeInterval to 1 minute instead of the default 30 seconds. If I do so this breaks CPU reporting in Lens, cause the detected prometheus (operator) has a default rateAccuracy of 1 minute that makes some CPU metrics query report empty results.

Environment you are Lens application on:

zalejus commented 7 months ago

Hello everyone, January 26, 2024 and I am in exactly the same situation. Same problem - unable to change scraping interval in Prometheus without losing CPU usage in Lens panel. If you ask me it should be one of the basic functionalities.

dark-brains commented 4 weeks ago

Yes same issue not working CPU Usage metrics for example for Node