AppDynamics Integration

Contents

Introduction

Prerequisites

Configure xMatters

Configure AppDynamics

Test the integration

Download resources

The information in this article is the intellectual property of xMatters and is intended only for use with xMatters products by xMatters customers and their employees. Further, this intellectual property is proprietary and must not be reused or resold.

Introduction

This article provides installation and configuration instructions when implementing the integration between xMatters On-Demand and AppDynamics.

How it works

AppDynamics is an application monitoring tool built for the enterprise. This integration allows you to send targeted push notifications, SMS, voice and email alerts when critical events are detected by your AppDynamics system.

The integration uses the HTTP Request Template feature in AppDynamics to inject events into xMatters based on criteria set within AppDynamics alerting policies.

Features and updates

This updated version of the integration takes advantage of the new HTTP Request Templates feature in AppDynamics, and the Integration Builder capabilities in xMatters On-Demand. 

Check out our built-in integration

You can install a "built-in" version of this integration using the Integration Directory (Developer tab > Integrations). Built-in integrations are pre-configured for your xMatters: you don't need to download and import the communication plan, or follow the directions to configure xMatters as described below.

To configure this integration using the Integration Directory, see our online integration guide.

To continue setting up this packaged integration, use the following steps.

Prerequisites

There are some tasks you can do ahead of time to make the configuration process a little smoother.

Download the communication plan

To begin, download the communication plan attached to this article; it contains everything needed for this integration. 

Note: You do not need to extract the contents of the .zip file; you'll import the file directly into xMatters.

Configure xMatters

To begin setting up your integration, configure the xMatters components.

Create an integration user

This integration requires a user who can authenticate REST web service calls when injecting events.

This user needs to be able to work with events, but does not need to update administrative settings. While you can use the default Company Supervisor role to authenticate REST web service calls, the best method is to create a user specifically for this integration with a dedicated "REST Web Service User" role that includes the permissions and capabilities.

Note: If you are installing this integration into an xMatters trial instance, you don't need to create a new user. Instead, locate the "Integration User" sample user that was automatically configured with the REST Web Service User role when your instance was created and assign them a new password. You can then skip ahead to the next section.

To create an integration user:

  1. Log in to the target xMatters system.
  2. On the Users tab, click Add.
  3. Enter the appropriate information for your new user. Because this user affects how messages appear for recipients and how events are displayed in the reports and Communication Center, you may want to identify the user as specific to this integration; for example:
    • First Name: AppDynamics
    • Last Name: Integration
    • User ID: appdynamics
  4. Assign the user to the REST Web Service User role.
    • Depending on your deployment, you might need to add one of the following roles so you can log in as the integration user and access the Developer tab: Full Access User, Developer or Limited Developer.
  5. Make a note of the user credentials and details – you need them when configuring other parts of this integration.
  6. Click Add.

Create users and groups that will receive notifications

The integration will notify groups and users when AppDynamics sends events to xMatters. Users and groups must exist in xMatters before they can be listed as recipients:

Import the communication plan

The next step is to import the communication plan into xMatters.

To import the communication plan:

  1. In the target xMatters system, click Import Plan from the Developer tab.
  2. Click Choose File, and then locate the downloaded communication plan (.zip file).
  3. Click Import Plan.
    • Importing the plan automatically enables it, and enable its forms for web services.
  4. Click the Edit drop-down list for the plan, and select Access Permissions.
  5. Add the integration user you created above, and then click Save Changes.
  6. In the Edit drop-down list, select Forms.
  7. For the AppDynamics Event form, click Web Service and select Sender Permissions.
  8. Enter the integration user you created above, and then click Save Changes.

Set notification recipients

The form uses the default recipients specified on the Layout tab to determine who to notify about an incoming alert.

  1. On the Forms tab, beside the form, click Edit > Layout.
  2. In the Recipients section, add the default groups and users you want to receive notifications for AppDynamics events.
  3. Click Save Changes.

Configure inbound integrations

You need to retrieve the URL of the inbound integration to configure AppDynamics. (The following steps assume that you are using the URL Authentication option, which is the default setting for this communication plan. For more information about these options, see Inbound integration service authentication.)

To configure an inbound integration and retrieve its URL:

  1. Log out of xMatters, and then log back in as the integration user you configured above.
  2. Navigate to the Integration Builder tab for the AppDynamics communication plan, and expand the list of inbound integrations.
  3. Click the name of an integration.
  4. Scroll down to the bottom of the page, and click Copy URL beside the field:

CopyURL.jpg

Once you have retrieved the URLs, you can log the integration user out of xMatters.

Configure AppDynamics

Now that xMatters is ready to receive events, you can configure AppDynamics to send alerts into xMatters.

To configure AppDynamics:

  1. Log in to your AppDynamics controller, navigate to Alert & Respond > HTTP Request Templates, and then create a new template: 

AppDynamicsHTTPRequestTemplate.png

  1. Name the new channel "xMatters", and under Request URL, in the POST drop-down list, select POST.
  2. In the Raw URL field, paste the inbound integration URL:

AppDynamicsRawURL.png

  1. Under Payload, in the MIME Type drop-down list, select application/json.
  2. Copy the following code and paste it into the Payload text field:
{
"account_name": "${account.name}",
"policy_name": "${policy.name}",
"events": [
#foreach( $event in $fullEventList )
{
"event_name": "$event.displayName",
"event_message": "$event.eventMessage",
"event_node_name": "$event.node.name",
"event_tier_name": "$event.tier.name",
"event_time": "$event.eventTime",
"event_link": "$event.deepLink",
"event_severity_image": "$event.severityImage.deepLink"
}#if( $foreach.hasNext ),#end
#end
],
"severity": "${topSeverity}",
"controller_url": "${controllerUrl}",
"action_name": "${action.name}",
"action_trigger_time": "${action.triggerTime}"
}

AppDynamicsPayload.png

  1. Save the HTTP Request Template.

Test the integration

You can run a quick test of the integration using Test > Run Test; and you should see a new event created in xMatters. To test the workflow and notifications, you can create a new action.

To test the integration:

  1. Create a new action in AppDynamics, and select Make An HTTP Request, using your xMatters HTTP Request Template:

AppDynamicsAction.png

  1. Assign this action to one of your policies to call the xMatters integration when that policy is triggered.

Download resources

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk