Obtain the Database Agent Container Image

You can obtain the container image in one of two ways.
  1. Obtain the container image:
    OptionDescription
    Download the Database Agent zip file from the Download portal.
    1. Unzip the Database Agent zip file.
    2. 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
    1. Pull the latest Database Agent container image from the Docker hub:
      docker pull appdynamics/db-agent:latest
    2. (Optional) Tag the image:
      docker tag appdynamics/db-agent:latest <image-name>
  2. 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.
  3. 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"