Skip to content

Latest commit

 

History

History
59 lines (49 loc) · 4.25 KB

PostgreSQL README.md

File metadata and controls

59 lines (49 loc) · 4.25 KB

PostgreSQL (by popecruzdt)

Screenshot

Summary:

This is a dashboard that presents the PostgreSQL (postgres) metrics collected by Dynatrace across the various hosting platforms. Metrics are obtained via OneAgent, Telegraf, and the appropriate cloud provider integration.

https://www.dynatrace.com/hub/?query=postgresql

Developed and tested on Dynatrace v1.231.

Prerequisites:

Local (OneAgent) Deployment:

In this scenario, you are hosting the postgres database engine and have access to deploy the Dynatrace OneAgent on the postgres server/host.

Deploy the Dynatrace OneAgent on the postgres server/host

Configure the Dynatrace OneAgent PostgreSQL extension for the postgres server/host

Deploy Telegraf on the postgres server/host

Deploy the Dynatrace OneAgent on the upstream application calling the database

AWS RDS (CloudWatch) Deployment:

In this scenario, the postgres database is hosted in AWS, via the Relational Database Server (RDS) cloud native service.

Set up AWS monitoring (CloudWatch integration) with ActiveGate (not metric streams)

Deploy the Dynatrace OneAgent on the upstream application calling the database

Deploy Telegraf on one (or more) of the upstream application hosts calling the database (if not applicable, install on any host supported by Telegraf)

AzureDB (Azure Monitor) Deployment:

In this scenario, the postgres database is hosted in Azure, via the Azure Database for PostgreSQL server cloud native service.

Set up Azure monitoring (Azure Monitor integration) with ActiveGate

Deploy the Dynatrace OneAgent on the upstream application calling the database

Deploy Telegraf on one (or more) of the upstream application hosts calling the database (if not applicable, install on any host supported by Telegraf)

Tips:

Telegraf prefix

The Dynatrace output plugin for Telegraf has a configuration setting "prefix" that is added to the beginning of the metric identifier. The prefix itself should not contain a trailing .. This workflow requires a trailing . when deploying the dashboard. If you set the prefix to "telegraf.postgres" in your Telegraf configuration, you would enter "telegraf.postgres." into this workflow when deploying the dashboard.

Telegraf postgresql input plugin address

Here are some example configurations for the Telegraf postgresql input plugin address field. The Telegraf agent can monitor local or remote postgres databases (with the necessary firewall rules in place).

  • Local: address = "postgres://<database-user>:<password>@<db-hostname>:<port>/<database-name>"
  • AWS RDS: address = "postgres://<database-user>:<password>@<aws-rds-hostname>:<port>/<database-name>"
  • Azure DB: address = "postgres://<database-user>@<azure-db-hostname>:<password>@<azure-db-hostname>:<port>/<database-name>"

Issues & Enhancement:

For any issues or requests for enhancement, please open an Issue on the GitHub repo: https://github.com/popecruzdt/BizOpsConfiguratorPacks/issues