# Can it replace Prometheus?

**URL:** <https://discuss.elastic.co/t/can-it-replace-prometheus/296417>\
**Category:** Elasticsearch\
**Created:** [February 7, 2022, 5:48am UTC](https://discuss.elastic.co/t/can-it-replace-prometheus/296417 "2022-02-07T05:48:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![xodn0812](https://avatars.discourse-cdn.com/v4/letter/x/c5a1d2/32.png) [@xodn0812](https://discuss.elastic.co/u/xodn0812)\
**Post date:** [February 7, 2022, 5:48am UTC](https://discuss.elastic.co/t/can-it-replace-prometheus/296417/1 "2022-02-07T05:48:02Z")

</div>

I use Prometheus to gather k8s' resources. The resource data pipeline is as follows. k8s -\> Prometheus -\> Java app -\> Elasticsearch -\> (search) Java app

Here I have a question. Why use Prometheus? Wouldn't Prometheus not be necessary if it was stored in DB like me?

**What is the most reasonable way to send k8s' resources directly to Elasticsearch?**

---

<div class="post-metadata">

**Author:** ![BenB196](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/benb196/32/83401_2.png) [@BenB196](https://discuss.elastic.co/u/BenB196)\
**Post date:** [February 7, 2022, 12:40pm UTC](https://discuss.elastic.co/t/can-it-replace-prometheus/296417/2 "2022-02-07T12:40:53Z")

</div>

Metricbeat has a [Kubernetes module](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-kubernetes.html). Which can replace ingesting Kubernetes metrics from Prometheus and go directly into Elasticsearch.

Note: If you have custom apps already instrumented for Prometheus, then you can also leverage the [Prometheus module](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-prometheus.html) or [Openmetrics module](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-openmetrics.html).

One thing I will say is, currently the way Elasticsearch stores data compared to Prometheus, you'll see more data usage in Elasticsearch than you will in Prometheus. I believe Elastic is working on a TSDB [implementation](https://github.com/elastic/elasticsearch/issues/74660), which in theory should help close this gap though.

---

<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:** [March 7, 2022, 12:40pm UTC](https://discuss.elastic.co/t/can-it-replace-prometheus/296417/3 "2022-03-07T12:40:57Z")

</div>

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