# Elasticsearch-exporter connection failure

**URL:** <https://discuss.elastic.co/t/elasticsearch-exporter-connection-failure/259128>\
**Category:** Elasticsearch\
**Created:** [December 18, 2020, 5:32pm UTC](https://discuss.elastic.co/t/elasticsearch-exporter-connection-failure/259128 "2020-12-18T17:32:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Patrick\_Lieberg1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/patrick_lieberg1/32/81127_2.png) [@Patrick\_Lieberg1](https://discuss.elastic.co/u/Patrick_Lieberg1)\
**Post date:** [December 18, 2020, 5:32pm UTC](https://discuss.elastic.co/t/elasticsearch-exporter-connection-failure/259128/1 "2020-12-18T17:32:12Z")

</div>

Any idea why an elasticsearch-exporter pod's logs report an error connecting to the coordinating pod, but if I exec into the pod and curl the same address, it works?

Exporter version: 1.1.0-debian-10-r303  
Error from log:  
level=warn ts=2020-12-18T17:29:04.443053623Z caller=nodes.go:1851 msg="failed to fetch and decode node stats" err="failed to get cluster health from [http://elasticsearch-sandbox-coordinating-only:9200/\_nodes/stats:](http://elasticsearch-sandbox-coordinating-only:9200/_nodes/stats:) Get [http://elasticsearch-sandbox-coordinating-only:9200/\_nodes/stats:](http://elasticsearch-sandbox-coordinating-only:9200/_nodes/stats:) net/http: request canceled (Client.Timeout exceeded while awaiting headers)"

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [December 21, 2020, 3:08am UTC](https://discuss.elastic.co/t/elasticsearch-exporter-connection-failure/259128/2 "2020-12-21T03:08:54Z")

</div>

Welcome to our community! 😃

Can you clarify what `elasticsearch-exporter` is?

---

<div class="post-metadata">

**Author:** ![Patrick\_Lieberg1](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/patrick_lieberg1/32/81127_2.png) [@Patrick\_Lieberg1](https://discuss.elastic.co/u/Patrick_Lieberg1)\
**Post date:** [December 28, 2020, 6:31pm UTC](https://discuss.elastic.co/t/elasticsearch-exporter-connection-failure/259128/3 "2020-12-28T18:31:47Z")

</div>

Sorry for the delay. The holidays have been a bit crazy.

Looks like a third-party tool, which I missed, but it's for collecting metrics for Prometheus:

> **[Build software better, together](https://github.com/search?q=elasticsearch_exporter)**
>
> GitHub is where people build software. More than 50 million people use GitHub to discover, fork, and contribute to over 100 million projects.

---

<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:** [January 25, 2021, 6:31pm UTC](https://discuss.elastic.co/t/elasticsearch-exporter-connection-failure/259128/4 "2021-01-25T18:31:53Z")

</div>

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