As an alternative to using system properties or controller-info.xml to configure the application, tier, and node name, or other agent settings, you can use environment variables. Environment variables give you an additional option for configuring the agent based on dynamically set values.
To configure the agent with environment variables, simply set the value of the environment variables listed below to the value you want to use in the agent.
For example, if you set the value of the APPDYNAMICS_AGENT_NODE_NAME variable, as below, the agent automatically takes the value of node23 as its node name.
When settings are configured in different. Environment variable, system property and then controller-info.xml. The agent checks each for settings, and for a particular settings, uses the setting for the first of these (given the order of priority) that is not empty.
The following environment properties can be used today to configure the agent.
The following example would be resolved to a tierName=tier1 and a nodeName=node32
export APPDYNAMICS_AGENT_NODE_NAME=node23 java -Dmytier.name=tier1 -Dappdynamics.agent.tierName=$mytier.name
For app and machine agent config properties
Machine Agent Configuration Properties
Java App Agent Configuration Properties
A: The order is followed and the first one that is non-empty is picked up.
A: These are all the environment variables that we support.