Skip to content

Instantly share code, notes, and snippets.

@boxysean
Created December 28, 2018 16:20
Show Gist options
  • Save boxysean/4b97f73986044a8e8a5d0aa7f7696419 to your computer and use it in GitHub Desktop.
Save boxysean/4b97f73986044a8e8a5d0aa7f7696419 to your computer and use it in GitHub Desktop.
datadog-postgres-example.yaml
init_config: null
instances:
- collect_activity_metrics: true
collect_default_database: true
collect_function_metrics: true
dbname: mydb
host: main-database.example.com
password: mypassword
port: 5432
relations: null
tags:
- datadog:monitored
- dbinstanceidentifier:main-database
- app:postgres
username: datadog
- collect_activity_metrics: true
collect_default_database: true
collect_function_metrics: true
dbname: mydb
host: replica-1.example.com
password: mypassword
port: 5432
relations: null
tags:
- datadog:monitored
- dbinstanceidentifier:replica-1
- app:postgres
username: datadog
- collect_activity_metrics: true
collect_default_database: true
collect_function_metrics: true
dbname: mydb
host: replica-2.example.com
password: mypassword
port: 5432
relations: null
tags:
- datadog:monitored
- dbinstanceidentifier:replica-2
- app:postgres
username: datadog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment