Skip to content
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

unable to fetch pod metrics #603

Closed
RamanaChowdam opened this issue Sep 30, 2020 · 4 comments
Closed

unable to fetch pod metrics #603

RamanaChowdam opened this issue Sep 30, 2020 · 4 comments

Comments

@RamanaChowdam
Copy link

RamanaChowdam commented Sep 30, 2020

i am installed metric server from aws documentation, when i look on metric server logs it giving some errors. but HPA is able to get resource utilization, and top pods also showing resources utilizaition.below are the error logs getting from metric server

E0929 10:10:07.183040 1 reststorage.go:160] unable to fetch pod metrics for pod default/podname: no metrics known for pod
E0929 10:10:07.187845 1 reststorage.go:160] unable to fetch pod metrics for pod default/podname: no metrics known for pod
E0929 10:10:07.189841 1 reststorage.go:160] unable to fetch pod metrics for pod default/pod: no metrics known for pod
E0929 10:10:37.653862 1 reststorage.go:160] unable to fetch pod metrics for pod default/pod: no metrics known for pod
E0929 10:10:37.655906 1 reststorage.go:160] unable to fetch pod metrics for pod default/pod: no metrics known for pod
E0929 10:10:52.669356 1 reststorage.go:160] unable to fetch pod metrics for pod default/pod: no metrics known for pod
E0929 10:10:52.671464 1 reststorage.go:160] unable to fetch pod metrics for pod default/pod: no metrics known for pod
E0929 10:11:08.083685 1 reststorage.go:160] unable to fetch pod metrics for pod default/pod: no metrics known for pod
E0929 10:11:08.086017 1 reststorage.go:160] unable to fetch pod metrics for pod default/pod: no metrics known for pod
W0929 13:05:44.203218 1 reflector.go:289] k8s.io/client-go/informers/factory.go:133: watch of *v1.Pod ended with: too old resource version: 4479009 (4521785)

@Cipher27
Copy link

+1 I am also facing this issue EKS 1.15, metrics server 0.3.1

Increasing verbosity to 10 still gives no more information than the line @RamanaChowdam put above. "no known metrics for pod"

Some pods are collected successfully. kubectl top pods and kubectl top nodes works fine.
As suggested in many of the other issues threads, any combination of the below added to the args of the metricserver deployment did NOT resolve the issue.

--kubelet-inescure-tls=true
--kubelet-preferred-address-types=InternalIP

What else can be an issue here? What else can I check?

@serathius
Copy link
Contributor

serathius commented Oct 1, 2020

"no metrics known for pod" doesn't imply any failures in Metrics Server. This log will be removed in next release #349

@osaffer
Copy link

osaffer commented Nov 6, 2020

Did you find solution ?

@serathius
Copy link
Contributor

Those log lines were removed in new release as they don't indicate any problem. Please create separate issue and fill bug request form.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants