# Configuration Prometheus data in ElasticSearch via Metricbeats

**URL:** <https://discuss.elastic.co/t/configuration-prometheus-data-in-elasticsearch-via-metricbeats/310222>\
**Category:** Elasticsearch\
**Created:** [July 20, 2022, 11:59pm UTC](https://discuss.elastic.co/t/configuration-prometheus-data-in-elasticsearch-via-metricbeats/310222 "2022-07-20T23:59:06Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![TiagoQueiroz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tiagoqueiroz/32/107061_2.png) [@TiagoQueiroz](https://discuss.elastic.co/u/TiagoQueiroz)\
**Post date:** [August 2, 2022, 2:33pm UTC](https://discuss.elastic.co/t/configuration-prometheus-data-in-elasticsearch-via-metricbeats/310222/8 "2022-08-02T14:33:02Z")

</div>

Unfortunately I can't help more because I don't have access to your environment.

But if you cannot connect from outside the pod, and it works when testing from inside the pod, it's clearly a issue outside Metricbeat and related to you Kubernetes environment. You'll have to find out why Kubernetes is not routing the traffic to this port on the container.

---

_[View the full topic](https://discuss.elastic.co/t/configuration-prometheus-data-in-elasticsearch-via-metricbeats/310222)._
