# PostgreSQL OneAgent extension - Can I monitor several bases?

**URL:** <https://community.dynatrace.com/t/postgresql-oneagent-extension-can-i-monitor-several-bases/21470>\
**Category:** Extensions\
**Tags:** databases, sql, postgresql, extensions\
**Created:** [February 11, 2021, 10:05am UTC](https://community.dynatrace.com/t/postgresql-oneagent-extension-can-i-monitor-several-bases/21470 "2021-02-11T10:05:24Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Romanenkov\_Alex](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/romanenkov_alex/32/27497_2.png) [@Romanenkov\_Alex](https://community.dynatrace.com/u/Romanenkov_Alex)\
**Post date:** [February 11, 2021, 10:05am UTC](https://community.dynatrace.com/t/postgresql-oneagent-extension-can-i-monitor-several-bases/21470/1 "2021-02-11T10:05:24Z")

</div>

Hello.

Customer have several bases.

In configuration only one name expected.

 ![28188-1613037914154.png](https://global.discourse-cdn.com/dynatrace/original/3X/f/6/f68993a3dee47a967cabfb1f37905ebc0cafa69a.png)

**Can I monitor several databases?**

Thanks.

Regards,

Alexander

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [February 11, 2021, 10:15am UTC](https://community.dynatrace.com/t/postgresql-oneagent-extension-can-i-monitor-several-bases/21470/2 "2021-02-11T10:15:56Z")

</div>

Hello [@Alexander R.](https://answers.dynatrace.com/users/19284/view.html)

Apologize that I could not understand the word bases (if it was not referred to as databases). Even though I would like to share the following information with you.

The global configuration is automatically applied to every PostgreSQL host in your environment. If necessary, you can override the global configuration at a single host level.

 ![28224-1613038542949.png](https://global.discourse-cdn.com/dynatrace/original/3X/1/c/1ca5abe0942b12f18b4c5a8fc2f02e914cc2e144.png)

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![Romanenkov\_Alex](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/romanenkov_alex/32/27497_2.png) [@Romanenkov\_Alex](https://community.dynatrace.com/u/Romanenkov_Alex)\
**Post date:** [February 11, 2021, 10:53am UTC](https://community.dynatrace.com/t/postgresql-oneagent-extension-can-i-monitor-several-bases/21470/3 "2021-02-11T10:53:08Z")

</div>

I have tried different separators, like ‘comma’

database1, database2, database3

database1;database2;database3

Also I have tried empy field

output:

Configuration error (“Database name” field cannot be empty)

Regards,

Alexander

---

<div class="post-metadata">

**Author:** ![Babar\_Qayyum](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/babar_qayyum/32/13620_2.png) [@Babar\_Qayyum](https://community.dynatrace.com/u/Babar_Qayyum)\
**Post date:** [February 11, 2021, 11:14am UTC](https://community.dynatrace.com/t/postgresql-oneagent-extension-can-i-monitor-several-bases/21470/4 "2021-02-11T11:14:38Z")

</div>

Hello [@Alexander R.](https://answers.dynatrace.com/users/19284/view.html)

Did you do the configuration on the global level?

_With PostgreSQL monitoring enabled globally, when a new host running PostgreSQL is detected in your environment, Dynatrace automatically collects PostgreSQL metrics, assuming that the same credentials are used by the PostgreSQL server or a new DB._

> **[PostgreSQL extension](https://docs.dynatrace.com/docs/observe/infrastructure-observability/databases/extensions/postgresdb-remote-monitoring)**
>
> Collect PostgreSQL database performance metrics and query logs via remote ActiveGate monitoring to detect anomalies, blocking queries, and performance issues.

Regards,

Babar

---

<div class="post-metadata">

**Author:** ![Romanenkov\_Alex](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/romanenkov_alex/32/27497_2.png) [@Romanenkov\_Alex](https://community.dynatrace.com/u/Romanenkov_Alex)\
**Post date:** [February 11, 2021, 11:43am UTC](https://community.dynatrace.com/t/postgresql-oneagent-extension-can-i-monitor-several-bases/21470/5 "2021-02-11T11:43:29Z")

</div>

It is enabled.

btw, in global configuration also I can see “Database name”

Regards,

Alexander

---

<div class="post-metadata">

**Author:** ![dglugla](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/dglugla/32/14492_2.png) [@dglugla](https://community.dynatrace.com/u/dglugla)\
**Post date:** [February 12, 2021, 7:57am UTC](https://community.dynatrace.com/t/postgresql-oneagent-extension-can-i-monitor-several-bases/21470/6 "2021-02-12T07:57:47Z")

</div>

Hi [@Alexander R.](https://answers.dynatrace.com/users/19284/view.html)

the database name is required to connect to the PostgreSQL server, but the extension monitors all the DBs running on that server and accessible for this user, so you can actually pick any database.

BR, Darek

---

<div class="post-metadata">

**Author:** ![Romanenkov\_Alex](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/romanenkov_alex/32/27497_2.png) [@Romanenkov\_Alex](https://community.dynatrace.com/u/Romanenkov_Alex)\
**Post date:** [February 12, 2021, 8:01am UTC](https://community.dynatrace.com/t/postgresql-oneagent-extension-can-i-monitor-several-bases/21470/7 "2021-02-12T08:01:14Z")

</div>

Thanks! It is great!

Regards,

Alexander

---

<div class="post-metadata">

**Author:** ![TorstenHellwig](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/torstenhellwig/32/33996_2.png) [@TorstenHellwig](https://community.dynatrace.com/u/TorstenHellwig)\
**Post date:** [September 20, 2021, 8:46am UTC](https://community.dynatrace.com/t/postgresql-oneagent-extension-can-i-monitor-several-bases/21470/8 "2021-09-20T08:46:57Z")

</div>

Interesting: since you have to supply a port - how is this supposed to work then? Shall I leave out the port and it will try to monitor every instance running on that host? To my experience this doesn’t work. We would need a plugin for an ActiveGate to monitor several Postgres DBs on one box. Or maybe the OneAgent extension has been extended…

regards,

Torsten

---

<div class="post-metadata">

**Author:** ![marina\_pollehn](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/marina_pollehn/32/39120_2.png) [@marina\_pollehn](https://community.dynatrace.com/u/marina_pollehn)\
**Post date:** [August 2, 2024, 12:21pm UTC](https://community.dynatrace.com/t/postgresql-oneagent-extension-can-i-monitor-several-bases/21470/9 "2024-08-02T12:21:11Z")

</div>

Is this a thing for extension 2.0?
