Datadog helps you capture application traces and metrics that can help you improve the performance for your app.
You can set up a single Datadog agent to capture data for any number of services in your Render account.
This example deploys Datadog's Docker agent as a private service on Render. Once deployed, you can start sending APM/Distributed Tracing and DogStatsD metrics to your private service URL.
The URL will look like datadog-agent-lkyz
with APM available on TCP port 8126
and DogStatsD on UDP port 8125
.
You will need to configure your Datadog API key by setting the
DD_API_KEY
environment variable to your private service.
You can create a secret file in render with the following name pattern conf.d_<integration_name>_<file_name.yaml?
and this will be copied to its respective location in the container /etc/datadog-agent/conf.d/<integration_name>/<file_name>
.
Example: conf.d_postgres.d_conf.yaml
will be copied to /etc/datadog-agent/conf.d/postgres.d/conf.yaml
Create a secret file in Render named conf.d_postgres.d_conf.yaml
and content:
init_config:
instances:
- dbm: true
host: <DB_HOST>
port: <DB_PORT>
username: datadog
password: <DB_PASSWORD>
dbname: <DB_NAME>
ssl: prefer
dbstrict: true