Knowledge Base

Showing results for 
Search instead for 
Did you mean: 

Instrumenting Java application using Gradle Script

Gradle scripts are useful to build and deploy applications. If we would like to monitor applications, we need to configure the javaagent on Gradle scripts.



1. Edit build.gradle

2. Need to include javaagent and configuration using "applicationDefaultJvmArgs".

3. To add javaagent.....



applicationDefaultJvmArgs = ["-javaagent:/Users/narendranath/Documents/AppServerAgent-"]


3. To add javaagent configurations dynamically , then ...




applicationDefaultJvmArgs = ["-javaagent:/Users/narendranath/Documents/AppServerAgent-", "-Dappdynamics.agent.applicationName=NewRibbonApp", "-Dappdynamics.agent.tierName=AppTier", "-Dappdynamics.agent.nodeName=AppNode"]


 _______________________________________Thumbs Up Icon Kudos Screen Shot 2017-12-11 at 12.22.35 PM.pngWas this helpful? Give it kudos [click on the thumbs up icon at the end of the article, bottom left corner] to let others know too!



Do you have a question or need clarification? [Post Your Comment] Below. 

Version history
Revision #:
5 of 5
Last update:
‎12-11-2017 12:50 PM
Updated by:
Labels (1)

Found this article helpful? Click the Thumbs Up button.
Have an additional comment? Post it below.
0 Kudos