# Help with setting up postgresql module on metricbeat with elastic cloud

**URL:** <https://discuss.elastic.co/t/help-with-setting-up-postgresql-module-on-metricbeat-with-elastic-cloud/285361>\
**Category:** Beats\
**Tags:** beats-module, metricbeat\
**Created:** [September 28, 2021, 1:22pm UTC](https://discuss.elastic.co/t/help-with-setting-up-postgresql-module-on-metricbeat-with-elastic-cloud/285361 "2021-09-28T13:22:32Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![idelix](https://avatars.discourse-cdn.com/v4/letter/i/ecd19e/32.png) [@idelix](https://discuss.elastic.co/u/idelix)\
**Post date:** [September 28, 2021, 1:22pm UTC](https://discuss.elastic.co/t/help-with-setting-up-postgresql-module-on-metricbeat-with-elastic-cloud/285361/1 "2021-09-28T13:22:32Z")

</div>

Hello,

I did setup postgresql module using metricbeat on linux machine using following guide:

> **[PostgreSQL module | Metricbeat Reference \[7.15\] | Elastic](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-postgresql.html)**

and command sudo metricbeat setup -e

everything works fine but I'm sending a huge amount of data to elastic cloud which is unmanageable, I tried to use some documents describing how to push my own fields and I done it leaving fields.yaml only with postgresql fields but it didn't help.

I stuck trying to setup metricbeat to only send postgresql related metrics every 10 seconds not all others including system, all I need is this one postgresql dashboard to have data.

---

<div class="post-metadata">

**Author:** ![stephenb](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/stephenb/32/40856_2.png) [@stephenb](https://discuss.elastic.co/u/stephenb)\
**Post date:** [September 28, 2021, 4:16pm UTC](https://discuss.elastic.co/t/help-with-setting-up-postgresql-module-on-metricbeat-with-elastic-cloud/285361/2 "2021-09-28T16:16:54Z")

</div>

Hi @idelix

Just To be be clear / precise

`sudo metricbeat setup -e`

Only sets up assets, dashboards, visualizations templates etc... into Kibana and Elasticsearch it does not actually ship the metrics that only happens when metricbeat is running.

The metricbeat [system module](https://www.elastic.co/guide/en/beats/metricbeat/current/metricbeat-module-system.html) is enabled by default. This module ships all the infrastructure metrics like RAM, CPU, Processes, I/O disk etc.

If you do not want that you should [disable the system module](https://www.elastic.co/guide/en/beats/metricbeat/current/command-line-options.html#modules-command).

`sudo metricbeat modules disable system`

you can run this command to see which modules are enabled.

`sudo metricbeat modules list`

Then restart metricbeat and it should only run the postgresql module.

---

<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:** [October 26, 2021, 4:17pm UTC](https://discuss.elastic.co/t/help-with-setting-up-postgresql-module-on-metricbeat-with-elastic-cloud/285361/3 "2021-10-26T16:17:08Z")

</div>

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