Obtain the Database Agent Container Image
-
Obtain the container image:
Option Description Download the Database Agent zip file from the Download portal. - Unzip the Database Agent zip file.
- Navigate to the directory where you unzipped the file and run
this
command:
docker build -t <image-name>
Pull the Database Agent Container Image from Docker Hub - Pull the latest Database Agent container image from the Docker
hub:
docker pull appdynamics/db-agent:latest
- (Optional) Tag the
image:
docker tag appdynamics/db-agent:latest <image-name>
- Optional:
If you want to run the image on Docker, set certain environment variables:
For example:
docker run -e APPDYNAMICS_CONTROLLER_HOST_NAME="" -e APPDYNAMICS_CONTROLLER_PORT="" -e APPDYNAMICS_AGENT_ACCOUNT_ACCESS_KEY='' -e APPDYNAMICS_AGENT_ACCOUNT_NAME="" -e APPDYNAMICS_CONTROLLER_SSL_ENABLED="" -e APPDYNAMICS_DB_AGENT_NAME="DatabaseAgent" -e APPDYNAMICS_DB_PROPERTIES="-Ddbagent.telemetry.enabled=true" -d <image-name>
Note: The environment variables specified in the preceding command are examples. You can set more environment variables as per your need. See Database Agent Configuration Properties for more details. - Optional:
To add more properties to the APPDYNAMICS_DB_PROPERTIES parameter, add the property
separated by a space.
For example:
APPDYNAMICS_DB_PROPERTIES: "-Ddbagent.telemetry.enabled=true -Dretry.on.auth.failure=false"