CloudWeaver Infrastructure Performance Snapshot - Remediation Extension

CloudWeaver Infrastructure Performance Snapshot - Remediation Extension


CloudWeaver can create infrastructure performance Snapshots in response to Health Alerts in AppDynamics.


AppDynamics instruments your application and helps you find the inefficiencies within your code.


CloudWeaver instruments your infrastructure and helps you find the inefficiencies within your infrastructure.


Using CloudWeaver and AppDynamics together enables you to cover your entire stack (application code + infrastructure). If you are experiencing a performance issue, you can quickly isolate the cause to the application or to the infrastructure.


For example, if AppDynamics generates a health alert notifying you that a particular transaction is slow, you can quickly consult the CloudWeaver Snapshot to determine whether the latency is in the infrastructure. If in the infrastructure, then you can continue your investigation in CloudWeaver. If in the application, then you can continue your investigation in AppDynamics. Performance problems have nowhere to hide!





Sign up for a CloudWeaver Account



Getting Started


To setup the integration:

  1. You simply copy the custom script from CloudWeaver and place it on your instances that are running the AppDynamics Machine Agents

    • This is a one-line script that simply calls out to the CloudWeaver API to create a Snapshot

  2. You then configure a Policy in AppDynamics to execute this script whenever the relevant Health Alerts are triggered


Step by Step Instructions


1. Get your Automatically Created AppDynamics Snapshot Creation Script from CloudWeaver


 CloudWeaver Script for Snapshots


Copy the script to a file named, e.g., “”. You will copy this file to every Instance that is running the AppDynamics Machine Agent. Place the file in the directory “<MACHINE_AGENT_DIRECTORY>/local-scripts”.


A copy of the script file "" is also available at the bottom of this post. You can refer to that as an example.


You will replace the arguments "<YOUR_CLOUDWEAVER_TENANT_ID>" and "<YOUR_CLOUDWEAVER_API_ACCESS_TOKEN>" with your Tenant ID and API Access Token that can be retrieved from the Settings page in CloudWeaver.



2. Configure your Health Rule in AppDynamics


Create AppDynamics Health Rule


3. Configure your Remediation Action in AppDynamics


Create AppDynamics Remediation Action


4. Configure your Policy in AppDynamics


Create AppDynamics Policy Step1


Create AppDynamics Policy Step 2


The Policy is triggered when the Health Rule is violated and it executes the Remediation Action which creates the Infrastructure Snapshot in CloudWeaver.


Thats it!



Snapshots in Action


1. AppDynamics Reports a Slow Transaction


AppDyamics Slow Transaction


2. The CloudWeaver Infrastructure Snapshot instantly identifies Network Latency as the Root Cause


Flow Map Snapshot


Chart Snapshot




Support and Suggestions


Please email your questions, suggestions, and comments, to us, at






AppDynamics 3.7 and CloudWeaver

Last Update

October 17, 2013



Additional Information


What is a CloudWeaver Infrastructure Performance Snapshot?


An Infrastructure Snapshot is a view of your cloud infrastructure as of a moment in time. A snapshot includes the resources in your infrastructure, their interactions, and their configuration and performance information.


Using an Infrastructure Snapshot you can immediately answer key questions of the state of your infrastructure as of the particular moment in time.


Simply select the Infrastructure Snapshot of interest, and the CloudWeaver UI resets itself to the time of the alarm. For example, the Flow Map shows you every resource and every alarm that was raised at that time. You can drill down to the metric charts which all display the metrics as of that time.



  • Preserve a snapshot of your infrastructure for later analysis
  • Go back in time to analyze a problem
  • Great way to track scenarios like load testing - have a picture of how your application performed under varying loads


What is an AppDynamics Browser Snapshot?


Browser snapshots capture metrics from an instance of an actual user experience. They also give you the ability to drill into errors and server-side transaction snapshots associated with the experience when the app servers are instrumented with AppDynamics app agents.


A browser snapshot presents diagnostic data, taken at a certain point in time, for an individual base page, Iframe or Ajax request.


What is an AppDynamics Transaction Snapshot?


AppDynamics generates a transaction snapshot to capture the code paths executed on instrumented application servers involved in a distributed transaction.


Transaction snapshots contain considerable amounts of data and are processed and sent from the app server on which the application is running.




(Last Updated: November 9, 2013)