# How to retrieve metric data from prometheus

**URL:** <https://discuss.elastic.co/t/how-to-retrieve-metric-data-from-prometheus/275411>\
**Category:** Elasticsearch\
**Created:** [June 9, 2021, 9:08am UTC](https://discuss.elastic.co/t/how-to-retrieve-metric-data-from-prometheus/275411 "2021-06-09T09:08:33Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![A\_Mightiev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a_mightiev/32/62186_2.png) [@A\_Mightiev](https://discuss.elastic.co/u/A_Mightiev)\
**Post date:** [June 9, 2021, 9:08am UTC](https://discuss.elastic.co/t/how-to-retrieve-metric-data-from-prometheus/275411/1 "2021-06-09T09:08:33Z")

</div>

I would like to visualize data from a prometheus server in kibana, any idea how to do it?  
I tried to use the module of metricbeat called prometheus, but this looks like is just monitoring the service, it doesn't give me much more.  
Any hint would be appreciated

---

<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:** [June 9, 2021, 9:09am UTC](https://discuss.elastic.co/t/how-to-retrieve-metric-data-from-prometheus/275411/2 "2021-06-09T09:09:30Z")

</div>

I don't know prometheus, but Kibana will only display data in Elasticsearch. So you will need to look at extracting data from prometheus into Elasticsearch somehow.

---

<div class="post-metadata">

**Author:** ![A\_Mightiev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a_mightiev/32/62186_2.png) [@A\_Mightiev](https://discuss.elastic.co/u/A_Mightiev)\
**Post date:** [June 9, 2021, 10:14am UTC](https://discuss.elastic.co/t/how-to-retrieve-metric-data-from-prometheus/275411/3 "2021-06-09T10:14:32Z")

</div>

I thought that the prometheus module in metricbeat was doing that, but looks like I need to do something more

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [June 9, 2021, 10:38am UTC](https://discuss.elastic.co/t/how-to-retrieve-metric-data-from-prometheus/275411/4 "2021-06-09T10:38:29Z")

</div>

You may also be able to use Grafana, which I believe can connect to both Elasticsearch and Prometheus.

---

<div class="post-metadata">

**Author:** ![A\_Mightiev](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/a_mightiev/32/62186_2.png) [@A\_Mightiev](https://discuss.elastic.co/u/A_Mightiev)\
**Post date:** [June 9, 2021, 10:41am UTC](https://discuss.elastic.co/t/how-to-retrieve-metric-data-from-prometheus/275411/5 "2021-06-09T10:41:37Z")

</div>

We are using Grafana indeed, what I want to do is to create a proof of concept the same thing can be achieved in kibana. All data is in Prometheus but once I show it is possible I can start replacing naglios with filebeat and metricbeat.  
The reason being is that grafana can't handle text logs and I want to correlate them with metrics

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [June 9, 2021, 10:49am UTC](https://discuss.elastic.co/t/how-to-retrieve-metric-data-from-prometheus/275411/6 "2021-06-09T10:49:05Z")

</div>

Ok. Then you will need to start feeding the data that is stored in Prometheus into Elasticsearch. Metricbeat might be able to help you there.

---

<div class="post-metadata">

**Author:** ![goodmirek5849](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/goodmirek5849/32/39761_2.png) [@goodmirek5849](https://discuss.elastic.co/u/goodmirek5849)\
**Post date:** [June 10, 2021, 6:20am UTC](https://discuss.elastic.co/t/how-to-retrieve-metric-data-from-prometheus/275411/7 "2021-06-10T06:20:28Z")

</div>

I believe that what you need is described in these articles:

> **[Prometheus monitoring at scale with the Elastic Stack](https://www.elastic.co/blog/prometheus-monitoring-at-scale-with-the-elastic-stack)**
>
> Prometheus is a powerful monitoring tool, but its simplicity comes with tradeoffs in cases of large-scale deployments and cross-team collaboration. In this blog we’ll examine some of these trade-offs and see how Elastic Stack can help resolve them.

> **[How to implement Prometheus long-term storage using Elasticsearch | Elastic Blog](https://www.elastic.co/blog/how-to-implement-prometheus-long-term-storage-using-elasticsearch)**
>
> Prometheus plays a significant role in observability, but it has its limitations. Learn how to use the Elastic Stack with Prometheus to boost scalability and durability, as well as open the door for more use cases. The scaling capabilities and search...

You may want to use `metricbeat` with module `prometheus`, metricsets `remote_write` and `query`.

> **[Prometheus module | Metricbeat Reference \[7.13\] | Elastic](https://www.elastic.co/guide/en/beats/metricbeat/7.13/metricbeat-module-prometheus.html)**

---

<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:** [July 8, 2021, 6:20am UTC](https://discuss.elastic.co/t/how-to-retrieve-metric-data-from-prometheus/275411/8 "2021-07-08T06:20:42Z")

</div>

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