AWS and AppDynamics APM

[Monitoring Cloud Applications]

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To deploy applications with Elastic Beanstalk, you need to know the variable settings for every AppDynamics Agent your application needs. This tutorial uses the Java Agent only, which keeps the list of required settings smallshort.

In a text editor, create a string that begins with ./test.sh

...

Script optionEnvironment variableNotes
-c <APPDYNAMICS_CONTROLLER_HOST_NAME>
  • Fully-qualified domain name for the AppDynamics Controller with which you intend to monitor your application
-p <APPDYNAMICS_CONTROLLER_PORT>
  • Primary port used by the monitoring AppDynamics Controller
  • Default is 8090
-K<APPDYNAMICS_AGENT_ACCOUNT_ACCESS_KEY>
  • the Controller under Settings > License > Account
-E

<APPDYNAMICS_ANALYTICS_EVENT_ENDPOINT>

  • Include only if your Controller has Analytics
  • Tells the Analytics plugin the target URL for the Events Service
  • The Analytics plugin sends data to the Events Service, not the Controller
-g

<APPDYNAMICS_AGENT_GLOBAL_ACCOUNT_NAME>

  • Include only if your Controller has Analytics
  • In the Controller under Settings > License > Account
-s

<APPDYNAMICS_SIM_ENABLED>

-r <REGION>
  • Must be the code for the region shown in your AWS console.
  • For example, if the console shows Ohio, the code is us-east-2
-a

<APP_NAME>

  • Name of your choice for the example application
-e <ENV_NAME>
  • Name of your choice, for the new environment that the script creates
-b

<BASE_DIR>

  • Specifies where on the local filesystem the script should copy the Sample App, after cloning it from GitHub
-k

<KEY>

  • Include only if you want to use eb ssh 
  • eb ssh allows you to log into the EC2 instance on which the script deploys the app
  • For the value, use the name of your chosen Key Pair
-i <INSTANCE>
  • Optional—if not specified, AWS uses a default
  • Must be t2.small or larger for this demo to run properly

The simplest possible ./ test.sh command (no Analytics, no Server Visibility, no SSH) might look something like this:

...