-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 fully scrape metrics from source kubelet_summary #167
Comments
Issue resolved by adding |
@ajatkj I had the same issue. I followed your steps to troubleshoot it and now it is fixed, but when I run "kubectl top node" I get the following error: and when I run "kubectl get hpa", I get the targets unknown like that: NAME REFERENCE TARGETS MINPODS MAXPODS REPLICAS AGE Did you have the same issue? |
@minasys check kubectl version. you might need to download newer kubectl and try. |
@ajatkj i am getting same error. What i noticed is metric server is able to get metrics from kubelet of the node which is hosting metric server but not from kubelets of other nodes. I am already passing those flags but still same issue. |
I am also facing same issue , even if passing those flags still getting below error. i am using 1.12.0v
|
Having same issue on k8s 1.10.0
Kubelet - removed --read-only-port=0 |
Sweet! Thanks for the assist @anjuls ... very annoying that this didn't work right when deployed. |
issue reference: kubernetes-sigs/metrics-server#167 also bump chart version to 2.8.6
K8s v1.16.x and Metrics server 0.3.4, following fix worked.
|
I am facing the same issue. I have download yaml from [https://github.com/kubernetes-sigs/metrics-server/releases/download/v0.3.6/components.yaml]
any clue is appreciated. TIA ! |
Using k8s version 1.11, metric server version 0.3.1.
Deployed metric-server using kubectl create -f deploy/1.8+/
However, on checking metric server pods log, I can see-
I1101 06:08:08.436868 1 round_trippers.go:405] GET https://k8s-node-1:10250/stats/summary/ in 10006 milliseconds
I1101 06:08:08.436919 1 round_trippers.go:411] Response Headers:
I1101 06:08:08.451861 1 round_trippers.go:405] GET https://k8s-node-2:10250/stats/summary/ in 10004 milliseconds
I1101 06:08:08.451896 1 round_trippers.go:411] Response Headers:
I1101 06:08:08.455742 1 round_trippers.go:405] GET https://k8s-master:10250/stats/summary/ in 10003 milliseconds
I1101 06:08:08.455769 1 round_trippers.go:411] Response Headers:
I1101 06:08:08.455816 1 manager.go:150] ScrapeMetrics: time: 10.0274536s, nodes: 0, pods: 0
E1101 06:08:08.455843 1 manager.go:102] unable to fully collect metrics: [unable to fully scrape metrics from source kubelet_summary:k8s-node-1: unable to fetch metrics from Kubelet k8s-node-1 (k8s-node-1): Get https://k8s-node-1:10250/stats/summary/: dial tcp: lookup k8s-node-1 on 10.96.0.10:53: read udp 10.244.2.27:54765->10.96.0.10:53: i/o timeout, unable to fully scrape metrics from source kubelet_summary:k8s-node-2: unable to fetch metrics from Kubelet k8s-node-2 (k8s-node-2): Get https://k8s-node-2:10250/stats/summary/: dial tcp: lookup k8s-node-2 on 10.96.0.10:53: read udp 10.244.2.27:40281->10.96.0.10:53: i/o timeout, unable to fully scrape metrics from source kubelet_summary:k8s-master: unable to fetch metrics from Kubelet k8s-master (k8s-master): Get https://k8s-master:10250/stats/summary/: dial tcp: lookup k8s-master on 10.96.0.10:53: read udp 10.244.2.27:56051->10.96.0.10:53: i/o timeout]
I1101 06:08:08.455883 1 manager.go:115] ...Storing metrics...
I1101 06:08:08.455902 1 manager.go:126] ...Cycle complete
I changed metrics-server-deployment.yaml to include below flags:
When I do
curl -k https://k8s-node-2:10250/stats/summary/
I get response asUnauthorized
I am also running heapster for dashboard which shows the stats correctly.
Anybody know what could be the issue? or any other information required.
The text was updated successfully, but these errors were encountered: