/iot-java-sdk-sample-apps

Sample apps using the AppDynamics IoT Java SDK

Primary LanguageJavaApache License 2.0Apache-2.0

Sample application using the Lightweight AppDynamics IoT Java SDK

Goal: Instrument a sample IoT application using the AppDynamics IoT Java SDK to report Device Information, Custom Business Events, Network Request Events(HTTPS), and Error Events to the AppDynamics Controller UI.

Step 1: Get AppDynamics Account

If you don't have an AppDynamics Account, create a free account here

Step 2: An IoT Application

Create a Connected Devices App

  • Click User Experience from the top navigation bar.
  • Select the Connected Devices tab.
  • Click Get Started.
  • From the Create Application dialog, select Create an Application using the Getting Started Wizard.
  • Click OK.
  • For step one of the Getting Started Wizard - Connected Devices page, enter a name for your IoT app.
  • Click Continue.
  • From step two, select Java SDK to report IoT data
  • Copy the values for the App Key and the Collector URL. You'll be using both to report IoT data.

See for more details

Step 3: Get the SDK

Download the AppDynamics IoT SDK jar appd-iot-sdk-4.4.x.jar file from download.appdynamics.com

Step 4: Get the Sample App

  • Clone this repository

  • Import the project as a Gradle Project in your favorite IDE

  • Edit the source file SampleIoTJavaTest.java with your APP-KEY and Collector URL.

  • Add the jar file downloaded in Step 2 (appd-iot-sdk-4.4.x.jar) as a third party library.

Compile and run the sample app.

Step 5: View Instrumentation Data

Instrumentation Data should show up on the AppDynamics Dashboard under the app created in Step 2 under User Experience->Connected Devices Panel

Step 6: Docs 'n' stuff

For more details check out the official documentation. Javadocs can be viewed here

Finally -

Are you looking to instrument a C++ IoT app? Checkout the sample app here.