[Metricbeat] Can't get metrics: Get https://docker-desktop:10250/stats/summary, (Client.Timeout exceeded while awaiting headers

Hello,

Follwoing this post to create index per namespace, I couldn't make metricbeat work to get metrics first from kubernetes.

I'm using:

  • ELK v8.2
  • metricbeat 8.2
  • kube-state-metrics
  • Microsoft Windows [version 10.0.19042.1706]
  • Docker dekstop 4.9.0 (80466)

I downloaded metricbeat using curl -L -O https://raw.githubusercontent.com/elastic/beats/8.2/deploy/kubernetes/metricbeat-kubernetes.yaml and only changed default namespace, when running metricbeat I have the following errors:

{"log.level":"error","@timestamp":"2022-06-16T13:35:55.086Z","log.logger":"kubernetes.container","log.origin":{"file.name":"container/container.go","file.line":91},"message":"error making http request: Get \"https://docker-desktop:10250/stats/summary\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)","service.name":"metricbeat","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-06-16T13:36:05.087Z","log.origin":{"file.name":"module/wrapper.go","file.line":254},"message":"Error fetching data for metricset kubernetes.volume: error doing HTTP request to fetch 'volume' Metricset data: error making http request: Get \"https://docker-desktop:10250/stats/summary\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)","service.name":"metricbeat","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-06-16T13:36:15.088Z","log.origin":{"file.name":"module/wrapper.go","file.line":254},"message":"Error fetching data for metricset kubernetes.system: error doing HTTP request to fetch 'system' Metricset data: error making http request: Get \"https://docker-desktop:10250/stats/summary\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)","service.name":"metricbeat","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-06-16T13:36:25.080Z","log.logger":"kubernetes.node","log.origin":{"file.name":"node/node.go","file.line":95},"message":"error making http request: Get \"https://docker-desktop:10250/stats/summary\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)","service.name":"metricbeat","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-06-16T13:36:35.081Z","log.logger":"kubernetes.pod","log.origin":{"file.name":"pod/pod.go","file.line":92},"message":"error making http request: Get \"https://docker-desktop:10250/stats/summary\": net/http: request canceled (Client.Timeout exceeded while awaiting headers)","service.name":"metricbeat","ecs.version":"1.6.0"}
{"log.level":"error","@timestamp":"2022-06-16T13:36:45.087Z","log.logger":"kubernetes.container","log.origin":{"file.name":"container/container.go","file.line":91},"message":"error making http request: Get \"https://docker-desktop:10250/stats/summary\": context deadline exceeded (Client.Timeout exceeded while awaiting headers)","service.name":"metricbeat","ecs.version":"1.6.0"}

what could be wrong please?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.