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.
Setting Up Database Monitoring for self hosted Postgres
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" : []}]'
, multiple selections available,
Related content
Using Existing Datadog Agent Install on Kubernetes
Using Existing Datadog Agent Install on Kubernetes
More like this
Datadog Agent setup for Kubernetes
Datadog Agent setup for Kubernetes
More like this
Datadog Agent setup on EC2 instance
Datadog Agent setup on EC2 instance
More like this
Datadog Agent Installation using Docker-Compose
Datadog Agent Installation using Docker-Compose
More like this
Traces Integrations for Datadog, OpenTelemetry, and Elastic APM Agent
Traces Integrations for Datadog, OpenTelemetry, and Elastic APM Agent
More like this
Victoria Metrics Agent Configuration
Victoria Metrics Agent Configuration
Read with this