/
Datadog Agent PostgreSQL Integration

Datadog Agent PostgreSQL Integration

Kloudfuse can ingest metrics and logs from a self-managed PostgreSQL deployments through the Datadog agent.

For the collector to scrape data from postgres, it requires a few things. Please follow the instructions here and come back to this page.

https://docs.datadoghq.com/database_monitoring/setup_postgres/selfhosted/?tab=postgres10#before-you-begin

 

The postgres instance needs to be annotated as following. Restart postgres after you make these changes.

postgresql: primary: podAnnotations: ad.datadoghq.com/postgresql.check_names: '["postgres"]' ad.datadoghq.com/postgresql.init_configs: '[{}]' ad.datadoghq.com/postgresql.instances: '[{"host": "%%host%%", "port":5432, "username": "<user-you-created>", "password" : "<password-you-chose>", "tags" : []}]' readReplicas: podAnnotations: ad.datadoghq.com/postgresql.check_names: '["postgres"]' ad.datadoghq.com/postgresql.init_configs: '[{}]' ad.datadoghq.com/postgresql.instances: '[{"host": "%%host%%", "port":5432, "username": "<user-you-created>", "password" : "<password-you-chose>", "tags" : []}]'

 

Related content

Datadog Agent setup for Kubernetes
Datadog Agent setup for Kubernetes
More like this
Traces Integrations for Datadog, OpenTelemetry, and Elastic APM Agent
Traces Integrations for Datadog, OpenTelemetry, and Elastic APM Agent
More like this
[DEPRECATED] Configure Advance Monitoring & Analytics (RRCF)
[DEPRECATED] Configure Advance Monitoring & Analytics (RRCF)
Read with this
Enable postgres data collection
Enable postgres data collection
More like this
GCP Metrics collection
GCP Metrics collection
Read with this
Datadog Agent Installation using Docker-Compose
Datadog Agent Installation using Docker-Compose
More like this