-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
minikube upper than 1.24 fail to generate metrics container_cpu_system_seconds_total as a counter #13656
Comments
Hi @gaellm, thanks for reporting your issue with minikube! If you do |
Hi, thanks @spowelljr, indeed, this parameter solves the problem. |
Hi @spowelljr I noticed same kind of issue today as I was playing with the metrics server on minikube 1.25.2. I was puzzled first as I was sure I got metrics some month ago on previous minikube releases. So I searched here for known related issues and, luckily, stumbled on this one.
Waiting past the housekeeping interval (more than 5m) does not change anything to this behavior. So to me this should be considered a bug. I saw there's a new (I am using podman driver on minikube 1.25.2 with metrics server installed from official chart v3.8.2 by the way. Got same issues with the metrics server addon) |
thank you @asaintsever for taking the time, this is an interesting discussion, the quesiton, would most users care about having a lower cpu usage or would they care most about having the metrics at more intervals? the graphs shared in this issue shows that the metrics are not broken but they are exported at less interval. I am open in this discussion and I have set mind, would u mind sharing examples of why metric server helps your case? or is there a way that minikube detect that u are using metric server and Suggest you to provide the option automatically? |
alternatviely we could provide a new flag for these kind of optimizations so users do it optionally. |
Thanks @medyagh My experience is a bit different compared to the original issue and the graphs. As I said, I still get errors and no results from To give you a simple use case: try to use Kubernetes HPA following your change. HPA requires the Metrics server to automatically scale in/out a workload. As a test, just follow the example provided here https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale-walkthrough/ |
given this is affecting some of the standard uses of Kubernetes, I purpose we revert this optimization and make it optiional |
What Happened?
When starting minikube 1.25.0 or 1.25.1 (with docker driver, or virtualbox), my CPU metrics graphs fail. I've observed that some prometheus counters value stay constant:
When I downgrade to minikube 1.24.0, all works fine:
My Prometheus scrap url is: /api/v1/nodes/minikube/proxy/metrics/cadvisor
To reproduce:
brew install --cask virtualbox brew install minikube minikube start git clone https://github.com/gaellm/minikube-1-25-issue-demo.git cd minikube-1-25-issue-demo ./deploy.sh
Then with a port-forward 9090 on prometheus pod you can observe the container_cpu_system_seconds_total metric.
(tested with 2 computers, an arm and an amd mac, with same conclusions)
Attach the log file
log.txt
Operating System
macOS (Default)
Driver
VirtualBox
The text was updated successfully, but these errors were encountered: