Skip to main content

Demo video: Integrate with AppDynamics ►

This video explains how to set up the AppDynamics integration in Moogsoft Cloud.

After watching this video, you will be able to configure AppDynamics to send events to the Moogsoft API. Specifically, you will know how to:

  • Set up a template in AppDynamics to send data to Moogsoft

  • Configure a JSON payload to map AppDynamics data to Moogsoft event fields

  • Define an AppDynamics policy to forward health rule violations and other issues to Moogsoft

1_AppD.png

Here’s our scenario. We want to collect application performance data from AppDynamics so we can deduplicate and correlate it in Moogsoft.

2_AppD.png

You need two pieces of information to set up this integration: the Moogsoft URL and the API key.

1_AppD.png

Let’s go to your AppDynamics instance. Let’s say from the application you instrumented, we want to collect health and performance anomalies.

4_AppD.png

We are going to start by defining a new HTTP request template. With this template, we can set up an outbound webhook from AppDynamics to Moogsoft. Name the template...

5_AppD.png

...and enter the POST method, and the URL from your Moogsoft AppDynamics integration.

6_AppD.png

We need some custom request headers to accompany our data payload. The content type is application/json. And here is where we enter the apiKey from Moogsoft.

7_AppD.png

Setting up the data payload is a pretty involved task, so let me park this for now and take care of the rest of the template first.

8_AppD.png

Here’s where you configure the response settings. Plug in the failure codes here. And the success codes here. A 200 means Moogsoft accepts the data payload.

9_AppD.png

We’ll leave the rest of the settings the same. So that’s the template. Now let’s drill down into the payload setup section we skipped. Here’s a sample script from the Moogsoft documentation.  You can use this to map the AppDynamics data fields to those in Moogsoft.

10_AppD.png

You do not need to map every single source data field.  If the field value is not useful for deduplication, correlation, or troubleshooting, you can leave that field unmapped and drop the data.

11_AppD.png

Here’s a common use case. Service is an important field, but the source data from AppDynamics doesn’t contain that information. You are planning to get that information from a CMDB. What you can do in such a case, is to provide a default placeholder text. Then set up an event enrichment workflow to replace the placeholder value with the real information.

13_AppD.png

Let’s take a look at the sample script. The first part cleans up the AppDynamics messages.

14_AppD.png

The next parts extract and define the fields we want.

15_AppD.png

Here, we’re defining the Moogsoft event object using the values extracted above.

16_AppD.png

Let’s copy this script into the payload section of the template. Set the type to application/json.

17_AppD.png

Our HTTP Request Template is ready. Here’s a tip. You need to save this first before you can test it. Now we can test it. What if the source event in Appdynamics said there’s a health rule violation...It says the event was successfully posted.

18_AppD.png

Let’s check on the Moogsoft side. Here it is, a health rule violation alert is received!

2_AppD.png

Lastly, we are going to set up trigger logic to invoke the webhook when AppDynamics detects an  issue. To do that, we need to create an AppDynamics Policy. We’ll name it Moogsoft.

20_AppD.png

Here’s the trigger logic we want.

21_AppD.png

When there are health rule violations, we want to trigger an action... which is to invoke our HTTP request template and send data to Moogsoft.

22_AppD.png
23_AppD.png
24_AppD.png

Now you know how to set up a webhook integration with AppDynamics. In this demo we have configured only one application, but if you have a large AppDynamics implementation you can copy your configuration across multiple applications and controllers. Contact your AppDynamics support team for information about the AppDynamics Configuration Exporter utility. Thanks for watching!

3_AppD.png