-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathstart-appdynamics
19 lines (15 loc) · 990 Bytes
/
start-appdynamics
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!bin/bash
# Sample Docker start script for the AppDynamics Standalone Machine Agent
# This is provided for illustration purposes only, for full details
# please consult the product documentation: https://docs.appdynamics.com/
# See the AppDynamics Product Docs (Standalone Machine Agent Configuration Reference)
# In this example, APPD_* environment variables are passed to the container at runtime
MA_PROPERTIES="-Dappdynamics.controller.hostName=${APPD_HOST}"
MA_PROPERTIES+=" -Dappdynamics.controller.port=${APPD_PORT}"
MA_PROPERTIES+=" -Dappdynamics.agent.accountName=${APPD_ACCOUNT_NAME%%_*}"
MA_PROPERTIES+=" -Dappdynamics.agent.accountAccessKey=${APPD_ACCESS_KEY}"
MA_PROPERTIES+=" -Dappdynamics.controller.ssl.enabled=${APPD_SSL_ENABLED}"
# Enable SIM and Docker Monitoring
MA_PROPERTIES+=" -Dappdynamics.sim.enabled=true -Dappdynamics.docker.enabled=true"
# Start Machine Agent
${MACHINE_AGENT_HOME}/jre/bin/java ${MA_PROPERTIES} -jar ${MACHINE_AGENT_HOME}/machineagent.jar