# What is the storage layer for the metricsbeat agent?

**URL:** <https://discuss.elastic.co/t/what-is-the-storage-layer-for-the-metricsbeat-agent/175048>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [April 2, 2019, 6:56pm UTC](https://discuss.elastic.co/t/what-is-the-storage-layer-for-the-metricsbeat-agent/175048 "2019-04-02T18:56:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![whiletruelearn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/whiletruelearn/32/43331_2.png) [@whiletruelearn](https://discuss.elastic.co/u/whiletruelearn)\
**Post date:** [April 2, 2019, 6:56pm UTC](https://discuss.elastic.co/t/what-is-the-storage-layer-for-the-metricsbeat-agent/175048/1 "2019-04-02T18:56:46Z")

</div>

Hey all,

Trying to understand the working of metrics beat for measuring System metrics. I could infer from the code that `gopsutil` is being used for measuring it, i wanted to know more about the storage layer used for pushing these metrics.

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [April 19, 2019, 8:43pm UTC](https://discuss.elastic.co/t/what-is-the-storage-layer-for-the-metricsbeat-agent/175048/2 "2019-04-19T20:43:46Z")

</div>

Hi @whiletruelearn and welcome 🙂

Not sure if this answers your question, but Metricbeat doesn't store metrics, it supports several outputs to push the metrics eventually to Elasticsearch. You can find more about them here: [https://www.elastic.co/guide/en/beats/metricbeat/7.0/configuring-output.html](https://www.elastic.co/guide/en/beats/metricbeat/7.0/configuring-output.html)

---

<div class="post-metadata">

**Author:** ![whiletruelearn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/whiletruelearn/32/43331_2.png) [@whiletruelearn](https://discuss.elastic.co/u/whiletruelearn)\
**Post date:** [May 7, 2019, 4:14pm UTC](https://discuss.elastic.co/t/what-is-the-storage-layer-for-the-metricsbeat-agent/175048/3 "2019-05-07T16:14:39Z")

</div>

@jsoriano Thanks.

I was mostly trying to understand the underlying datastructure which i presume holds the data for a short period of time before pushing to kafka/elastic etc.

---

<div class="post-metadata">

**Author:** ![jsoriano](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jsoriano/32/27920_2.png) [@jsoriano](https://discuss.elastic.co/u/jsoriano)\
**Post date:** [May 7, 2019, 8:02pm UTC](https://discuss.elastic.co/t/what-is-the-storage-layer-for-the-metricsbeat-agent/175048/4 "2019-05-07T20:02:05Z")

</div>

@whiletruelearn all beats keep an internal queue with the reported events before they are sent to the outputs, you can read a bit about it and how it is configured in [https://www.elastic.co/guide/en/beats/metricbeat/7.0/configuring-internal-queue.html](https://www.elastic.co/guide/en/beats/metricbeat/7.0/configuring-internal-queue.html)

---

<div class="post-metadata">

**Author:** ![whiletruelearn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/whiletruelearn/32/43331_2.png) [@whiletruelearn](https://discuss.elastic.co/u/whiletruelearn)\
**Post date:** [May 9, 2019, 4:18pm UTC](https://discuss.elastic.co/t/what-is-the-storage-layer-for-the-metricsbeat-agent/175048/5 "2019-05-09T16:18:51Z")

</div>

@jsoriano Thanks for sharing this information. This is exactly what i was looking for 🙂

---

<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:** [June 6, 2019, 4:18pm UTC](https://discuss.elastic.co/t/what-is-the-storage-layer-for-the-metricsbeat-agent/175048/6 "2019-06-06T16:18:52Z")

</div>

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