# How to define custom database in Metricbeat for pgsql

**URL:** <https://discuss.elastic.co/t/how-to-define-custom-database-in-metricbeat-for-pgsql/112513>\
**Category:** Beats\
**Tags:** metricbeat\
**Created:** [December 19, 2017, 10:01pm UTC](https://discuss.elastic.co/t/how-to-define-custom-database-in-metricbeat-for-pgsql/112513 "2017-12-19T22:01:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abdur\_Raqeeb1](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Abdur\_Raqeeb1](https://discuss.elastic.co/u/Abdur_Raqeeb1)\
**Post date:** [December 19, 2017, 10:01pm UTC](https://discuss.elastic.co/t/how-to-define-custom-database-in-metricbeat-for-pgsql/112513/1 "2017-12-19T22:01:27Z")

</div>

On my metricbeat the pgsql config takes default database.I need to define custom database on metricbeat.

---

<div class="post-metadata">

**Author:** ![exekias](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/exekias/32/28718_2.png) [@exekias](https://discuss.elastic.co/u/exekias)\
**Post date:** [December 20, 2017, 11:40am UTC](https://discuss.elastic.co/t/how-to-define-custom-database-in-metricbeat-for-pgsql/112513/2 "2017-12-20T11:40:28Z")

</div>

If I understand it correctly, `database` metricset reports info about all databases, what metrics are you interested on?

---

<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:** [January 17, 2018, 11:40am UTC](https://discuss.elastic.co/t/how-to-define-custom-database-in-metricbeat-for-pgsql/112513/3 "2018-01-17T11:40:44Z")

</div>

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