# Archived - Sending ThousandEyes Alerts to AppDynamics

{% hint style="info" %}
This article describes an older method of integrating AppDynamics and ThousandEyes. For a more complete integration method, see [AppDynamics Bi-Directional Integration](https://docs.thousandeyes.com/product-documentation/integration-guides/appdynamics).
{% endhint %}

Another powerful way to integrate ThousandEyes and AppDynamics is to send ThousandEyes alerts to AppDynamics.

## Native Alerts Integration

First, set up ThousandEyes to send its alerts to AppDynamics. See the native [alerts integration](https://docs.thousandeyes.com/product-documentation/integration-guides/appdynamics).

## Viewing ThousandEyes Alerts in the Application Dashboard

ThousandEyes alerts are displayed in AppDynamics as *custom events*. Any alerts that ThousandEyes generates about an application that AppDynamics is monitoring appear under the application in the top right corner:

![](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-cef14086267299315bd958bb99f5914918609591%2Fmonitoring-guides_appdynamics_integration-alerts-1.png?alt=media\&token=3f3c9818-21ab-49a3-bd05-884794f38bd8)

To view the custom events, do the following within AppDynamics:

1. Click **Custom**.

   The **Events** view appears, filtered by custom event.
2. Scan the **Events** view for any ThousandEyes alerts generated for that application.

   ![](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-54e0018e69a46227fa1bb83d2985280442059edd%2Fmonitoring-guides_appdynamics_integration-alerts-2.png?alt=media\&token=659e3f76-109b-43c2-998e-a87db58ad1e6)
3. Double-click one of the events.

   Details of the alert display, including a link back to the alert in ThousandEyes platform.

   ![](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-40c08681fa3957dd50c501d2456007582533416c%2Fmonitoring-guides_appdynamics_integration-alerts-3.png?alt=media\&token=3475238b-aef8-494b-9859-e07aeb9b6b39)

## Filtering on ThousandEyes Alerts

If you are ingesting alerts into AppDynamics from various sources, you may want to filter on ThousandEyes alerts only.

1. Navigate to the **Add Custom Event Filter** dialog.

There are several places in AppDynamics where you can add custom event filters. For example, **Application > Events > Add Criteria > Custom Events**.

2. In the **Custom Event Type** field, enter **ThousandEyesAlert**.

   ![](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-6ae7fee6424a97265e60369d826477ec325bc54e%2Fmonitoring-guides_appdynamics_integration-alerts-4.png?alt=media\&token=d46ca523-dc43-41c2-8b7d-0751da6c3995)
3. To further refine your filtering, you can click **Add Property** and filter on any of the following properties:

   | Property Name  | Definition                                                                                                                                                                                                                                                      |
   | -------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
   | **alertType**  | Possible values include **BrowserBot**, **Http**, **Network**, **OneWayNetwork**, **Voice**, **DnspDomain**, **DnspNameServer**, **DnsServer**, **DnsTrace**, **Dnssec**, **Transaction**, **WebTransaction**, **Bgp**, **PathTrace**, **Ftp**, and **Sip**\*\* |
   | **testName**   | The name of the ThousandEyes test that is generating the alert.                                                                                                                                                                                                 |
   | **alertState** | **TRIGGER** or **CLEAR**                                                                                                                                                                                                                                        |
   | **scope**      | The number of agents affected.                                                                                                                                                                                                                                  |
   | **ruleName**   | The name of the ThousandEyes alert rule that has been triggered.                                                                                                                                                                                                |
   | **alertId**    | The unique ID of the alert.                                                                                                                                                                                                                                     |
   | **target**     | The URL that the test is set to.                                                                                                                                                                                                                                |

## Viewing ThousandEyes Alerts in AppDynamics Dashboards

### Metrics Widgets

To have ThousandEyes alerts appear in AppDynamics dashboards as overlays on metrics widgets, do the following:

1. Navigate to the dashboard widget and click to edit it.
2. In the **Edit Widget** dialog, find the **Events** section and select the **Show Events** option.
3. Ensure that the **Data Source** field shows the name of the application you want to show alerts about.
4. Select **Event Types: Custom**.

   ![](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-f8d2148c905a2edd759ee757a07a610b7c5bf9b5%2Fmonitoring-guides_appdynamics_integration-alerts-6.png?alt=media\&token=2959a871-bec3-468b-83cf-996b4af5cec0)

### Health Rules & Events Widgets

ThousandEyes alerts can also be displayed in the **Health Rules & Events** widgets, in both list and timeline view.

1. Click to add a widget.
2. In the **Add Widget** dialog, select **Health Rules & Events > Event List**.

   ![](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-6861392034584c86632a237e5f1d3c29f797bd29%2Fmonitoring-guides_appdynamics_integration-alerts-7.png?alt=media\&token=5ebf8026-30b2-4f89-9130-65b57fe65620)
3. Select the data source (typically, the application you are monitoring).
4. Select **Add Criteria > Custom Events**.

## Using ThousandEyes Alerts in AppDynamics Policies

You can use ThousandEyes alerts to create policies that combine AppDynamics and ThousandEyes alerts. For example, you might create a policy that triggers when both a ThousandEyes network alert occurs as well as an AppDynamics slow application response time alert.

1. In the **Alert & Respond** section, select **Policies > Create**.
2. In the **Edit Policy** dialog, select **Custom Events**.
3. In the **Add Custom Event Filter** dialog, in the **Custom Event Type** field, enter **ThousandEyesAlert**.
4. Set property filters for **type** as **Network** and **alertState** as **TRIGGER**.

   ![](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-efed11b4ce949e51103661d9cf1979b50db66534%2Fmonitoring-guides_appdynamics_integration-alerts-8.png?alt=media\&token=72936b2f-466d-4931-bc8e-ee44a73aaea5)
5. Now select other conditions, such as **Slow Transactions**.

   ![](https://1112912342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-M4QARF6s57qxMrOHDTZ%2Fuploads%2Fgit-blob-26259b41628c4aca1a7fb337ef6f4467a9b47229%2Fmonitoring-guides_appdynamics_integration-alerts-9.png?alt=media\&token=74bb931a-9f8d-4c9b-adc9-fedfc9bce39a)
