Guide for setting up Datadog Application Performance Monitoring (APM) on your Aptible apps
Setting Up the Datadog Agent
DD_API_KEY
should be set to an API Key associated with your Datadog Organization.DD_HOSTNAME
is a hostname identifier. Because Aptible does not grant containers permission to runtime information, you’ll need explicitly set a hostname. While this can be anything, we recommend using this variable to help identify what the agent is monitoring.Setting Up Applications
DD_TRACE_AGENT_URL
configuration variable for each App.DD_TRACE_AGENT_URL
to be set to the hostname of the endpoint you created, with :443
appended to the end to specify the listening port 443.Setting Up Databases for Metrics Collection
$DATABASE_TYPE.d/conf.yaml
with one pointing at your database.For example, a Dockerfile pointing to a PostgreSQL database could look like this:postgres.yaml
is a file in your repository with information that points at the PostgreSQL database.You can find specifics on how to configure each database type in Datadog’s integration documentation under the Host
tab.