AppDynamics delivers application performance management solutions to help teams analyze and optimize digital business performance in real time. This workflow lets you send actionable alerts to on-call resources when xMatters gets a signal from AppDynamics. Responders can initiate an incident with the press of a button, or you can build on the flow to perform automated resolution tasks.
How it works
When an alert is generated in AppDynamics, it sends a JSON-formatted webhook to xMatters, based on user-defined alert rules. An AppDynamics trigger in xMatters parses the webhook and initiates a flow. The webook includes essential alert data that is included in notifications sent to users, and details about the origin of the alert that you can use to enrich the notifications or use when building automated tasks.
The following instructions describe how to install the workflow through the xMatters one-click installation process. If you're looking for instructions on the previous version of the integration, you can find them here.
- Go to the Workflows Templates page and click the AppDynamics tile.
- On the Install Workflow dialog box, give the workflow a name (this must be unique in your instance) and add an optional description.
- You can edit these later, if needed.
- Click Install.
- After the workflow installs, the screen shows next steps as well the installation logs. The installation logs give you additional information about the installation, such as if you have languages in your instance that aren't configured for the messages in the workflow.
- Select the authentication method you want to use.
- Copy the trigger URL — you’ll use this to configure a webhook in AppDynamics.
- The trigger URL includes the recipients parameter, which specifies who should be notified. By default, this parameter is set to notify you (the logged in user), but you can set it to target any user or group you want.
- Click Done.
Configure AppDynamics to send requests to the trigger URL
To have AppDynamics send alerts to the flow trigger, you need to configure a webhook and set it to use the trigger URL.
- Log in to your AppDynamics controller and navigate to Alert & Respond > HTTP Request Templates.
- Click New to create a new template, then name the new template xMatters.
- In the Request URL section, set the Method to POST.
- Paste the URL from the trigger into the Raw URL field.
- Add the target names of any recipients you want xMatters to notify when the alert fires.
- For example, if you want to notify Emma Pearson, Mary McBride, and the on-call members in the Monitor Team responsible for the service, you'd add ?recipients=epearson,mmcbride,monitor%20team to the URL. You must URL-encode any special characters or spaces in the target names.
- In the Payload section, set the MIME Type to application/json.
- Paste the following payload into the Payload field. Copy
#foreach( $event in $fullEventList )
}#if( $foreach.hasNext ),#end
- If you want to receive an alert for each new event detected, enable the One Request Per Event check box.
- Save the template.
If your implementation requires Tier / Node information, set it in AppDynamics:
- Go to the Alert & Respond menu and select Health Rules.
- Click Affected Entities and select one of the three available Tier / Node options.
- Click Save to apply the Tier / Node changes.
You're ready to use the webhook to trigger automated flows, including steps such as sending alerts and initiating incidents, though we always recommend testing before putting things into use.
The trigger expects the recipients in the trigger URL. When you copy the URL from xMatters, it includes the recipients parameter: recipients=<yourname>. Of course, you don’t want to receive all the alerts.
To change the recipients for alerts from this webhook, swap out your name for the people or groups you want to target. For example, to target the 'DatabaseTeam', 'Antares Service Team', and 'HR & Marketing' groups, add recipients=databaseteam,antares%20service%20team,HR%20%26%20Marketing to the trigger URL. Remember to URL-encode any special characters, including spaces, in your group names.
When a condition you've set fires, it sends a signal to xMatters, which creates an event and notifies the individual or the on-call members of the people or groups you set as recipients in the webhook URL. When the trigger receives a signal saying the issue is resolved, it automatically terminates related events in xMatters.
The person responding to the notification has the following response options:
- Acknowledge: Acknowledges the notifications and stops escalations.
- Escalate: Immediately escalates the event to the next on-call resolver in a targeted group.
- Close: Ends the xMatters event and stops notifying all targeted recipients.
- Initiate Incident: Initiates an incident in xMatters.
Now that you've installed the workflow, you can use it as-is, or customize it to suit your needs better. Here are some examples of things you can add to the workflow to customize it:
- Use Slack, Zoom, and Microsoft Teams steps to add collaboration channels to the flow.
- Change the severity of incidents created when a recipient selects the Initiate Incident response.
- Update the message sent to resolvers to include the information most relevant to your team.
- Use the AppDynamics Events trigger to build your own custom flows.
Instructions for the previous built-in version of this integration are available below.
AppDynamics delivers application performance management solutions to help teams analyze and optimize digital business performance in real time. When events meet predetermined criteria, this integration with xMatters relays critical AppDynamics insight data to the correct people and systems to help coordinate and resolve incidents faster.
Do more with this integration
Incorporate this integration into your orchestrated incident resolution workflows with Flow Designer. After you create a configuration, the Flow Designer tab appears. From there, you can build your flows — add new response options, connect to other apps, or even create new xMatters events based on activities in the flow — enriching the information injected by this integration along the way.
Get all your questions on integrating with AppDynamics answered — take a live, online workshop led by one of our xPerts.
Get started with AppDynamics
To install this integration in xMatters, simply go to Workflow Templates on the Workflows tab and start typing the name of the integration you're looking for to filter the list. Once you find it, click its tile then click Next to get to the configuration screen.
How to set up an AppDynamics integration
After you give your integration a name and description, type a name to use when sending alerts (so you can easily tell which integration the alerts are from), and add all of the users and groups you want to be notified (see the help for information on setting up users and groups).
Once you save your configuration, xMatters displays the URL and payload you need to configure AppDynamics.
Create a new HTTP Response Template in your AppDynamics instance that targets this URL with a POST request and includes the payload in json format.
- Log in to your AppDynamics controller, navigate to Alert & Respond > HTTP Request Templates, and then click New to create a new template.
- Name the new template "xMatters", and then, in the Request URL section, in the Method drop-down list, select POST.
- Paste the URL copied from your new configuration into the Raw URL field.
- In the Payload section, in the MIME Type drop-down list, select application/json.
- Paste the payload copied from the configuration into the payload field.
- Save your HTTP Request Template.
Your integration is now complete!
Use your integration
The integration uses the HTTP request template you created to inject events into xMatters when they match the criteria you set in your AppDynamics alerting policies.
- Create a new action in AppDynamics, and select Make an HTTP Request as the action type:
- Set the action to use the xMatters HTTP request template, and then assign the action to one of your alerting policies.
Whenever the policy is triggered, the action will call the xMatters integration and notify the recipients specified in your configuration. Check out the screenshots at the top of this page to see what the notifications would look like in the xMatters mobile app.
Extending your integration
Looking to do more with xMatters and AppDynamics? If you want to tailor the settings and notifications for the integration, you can convert it to a custom workflow.