# Error making http request

**URL:** <https://discuss.elastic.co/t/error-making-http-request/323056>\
**Category:** Elastic Agent\
**Tags:** metricbeat\
**Created:** [January 12, 2023, 7:19pm UTC](https://discuss.elastic.co/t/error-making-http-request/323056 "2023-01-12T19:19:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Myagmarsuren-a](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/myagmarsuren-a/32/115876_2.png) [@Myagmarsuren-a](https://discuss.elastic.co/u/Myagmarsuren-a)\
**Post date:** [January 12, 2023, 7:19pm UTC](https://discuss.elastic.co/t/error-making-http-request/323056/1 "2023-01-12T19:19:09Z")

</div>

I have issue. I added elastic-agent as fleet server. Also i installed elasticsearch and kibana using docker-compose. Then i wanted to monitor my kubernetes cluster with elastic agent with kubernetes integration in it. What i get from kubernetes cluster overview were running pods and its names. What i wanted to see from dashboard was cpu, memory metrics but i does not shown. From log i have found error message like this.

02:54:21.475

```auto
elastic_agent.metricbeat

[elastic_agent.metricbeat][error] Error fetching data for metricset kubernetes.proxy: error getting metrics: error making http request: Get "http://localhost:10249/metrics": dial tcp [::1]:10249: connect: cannot assign requested address

02:54:21.591

elastic_agent.metricbeat

[elastic_agent.metricbeat][error] error making http request: Get "https://clustername:10250/stats/summary": lookup `clustername` on IPv4:53: no such host

02:54:21.753

elastic_agent.metricbeat

[elastic_agent.metricbeat][error] error making http request: Get "https://clustername:10250/stats/summary": lookup clustername IPv4:53: no such host

02:54:21.872

elastic_agent.metricbeat

[elastic_agent.metricbeat][error] error making http request: Get "https://clustername:10250/stats/summary": lookup clustername on IPv4: no such host

02:54:21.872

elastic_agent.metricbeat

[elastic_agent.metricbeat][error] error making http request: Get "https://clustername:10250/stats/summary": lookup clustername on IPv4: no such host

```

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 9, 2023, 7:19pm UTC](https://discuss.elastic.co/t/error-making-http-request/323056/2 "2023-02-09T19:19:23Z")

</div>

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