-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Metrics missing, such as container_cpu_usage_seconds_total #1958
Comments
Up to now, I found the problem is that the metrics generated by cadvisor(except those can be displayed by prometheus) has lots of null labels, shown on the picture. The output metrics is output of one node/kubelet from kubectl version is Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.1", GitCommit:"d4ab47518836c750f9949b9e0d387f20fb92260b", GitTreeState:"clean", BuildDate:"2018-04-13T22:27:55Z", GoVersion:"go1.9.5", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"8", GitVersion:"v1.8.6", GitCommit:"6260bb08c46c31eea6cb538b34a9ceb3e406689c", GitTreeState:"clean", BuildDate:"2017-12-21T06:23:29Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"} I think this is related to #1704. Is my k8s cluster's version too small to suffer such problem? |
cAdvisor logs are found in the kubelet logs. |
@dashpole thanks. |
I solved my question using this method, I forgot to clarify that some of my kubelet don't grant the |
cAdvisor produces metrics for each cgroup. It just happens to attack extra information to cgroups that it identifies as containers. |
since the problem has been solved, close it now. thanks for you @dashpole . |
I used kube-prometheus to monitor the k8s, but I found that the container level metrics is restricted to those pods in
kube-system
,monitoring
andkubeflow-seldon
namespace, the pods info in other namespace is not displayed, such asdefault
namespace. I'm curious about the reason.Some one else happened to has the same problem, and the kube-state-metrics members thought the reason may be lay in cadvisor.
The official doc said that the cadvisor is integrated in k8s, so I wanna use
log
command to investigate it but found that the k8s has no daemonset named cadvisor. Can you give me some suggestions to debug the cadvisor in k8s.The text was updated successfully, but these errors were encountered: