Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: CORE-51475

...

As an alternative to using system properties or controller-info.xml to configure the application name, tier name, and so on, you can configure the agent based on environment variables. Environment variables give you another mechanism for configuring the agent based on dynamically set values.   

About Environment Variables

...

When the agent subsequently starts up, it takes node23 as its node name. 

Priority of Configuration Sources

 Since an agent setting can be specified in several places, the agent applies the following order of priority in taking a value for the setting:  

Environment

...

For each setting, the agent checks each of these sources. For the value, the agent uses the value from the first source that contains a non-empty value (based on the order shown).

Environment Variables Used by the Agent

...

Environment VariableEquivalent property
APPDYNAMICS_CONTROLLER_HOST_NAME<controller-host>
APPDYNAMICS_CONTROLLER_PORT<controller-port>
APPDYNAMICS_CONTROLLER_SSL_ENABLED<controller-ssl-enabled>
APPDYNAMICS_AGENT_APPLICATION_NAME<application-name>
APPDYNAMICS_AGENT_TIER_NAME<tier-name>
APPDYNAMICS_AGENT_NODE_NAME<node-name>
APPDYNAMICS_AGENT_ACCOUNT_NAME_ENV_VAR<account-name>
APPDYNAMICS_AGENT_ACCOUNT_ACCESS_KEY_ENV_VAR<account-access-key>
APPDYNAMICS_AGENT_UNIQUE_HOST_ID_ENV_VARUnique host name
APPDYNAMICS_AGENT_BASE_DIR<agent-runtime-dir>

Note that there are additional agent properties that are not Notice that not all configurable agent settings are configurable through environment variables. The list above comprises the complete set of environment variables used by the Java AgentFor those settings, you need to use system properties or controller-info.xml, as described on Java Agent Configuration Properties