ThousandEyes is a network infrastructure monitoring provider. ThousandEyes provides effective troubleshooting of application delivery and maps Internet performance from a SaaS-based platform.

OpsRamp integration supports Webhooks to manage alerts from ThousandEyes monitoring events.

The current ThousandEyes version supported for integration is the March 23, 2020 release.

OpsRamp configuration

Step 1: Install the integration

  1. From All Clients, select a client.
  2. Go to Setup > Account.
  3. Select the Integrations and Apps tab.
  4. The Installed Integrations page, where all the installed applications are displayed. Note: If there are no installed applications, it will navigate to the Available Integrations and Apps page.
  5. Click + ADD on the Installed Integrations page. The Available Integrations and Apps page displays all the available applications along with the newly created application with the version.
    Note: You can even search for the application using the search option available. Also yu can use the All Categories option to search.
  6. Click ADD in the ThousandEyes application and click Install.
  7. Select authentication type as WEBHOOK and click Save.
  8. Make a note of Tenant ID, Token and Webhook URL.
    These details are used while creating an HTTP Request template during ThousandEyes configuration.
  9. Click Save.

After the installation, an API panel is displayed.

Step 2: Configure integration

Inbound configurations capture all the required details to call OpsRamp APIs in ThousandEyes.

Authentication

  1. Configure the Authentication type to call OpsRamp APIs.
  2. Select Webhooks as the authentication mechanism to generate the Token and WebHook URL. Both are required to define alert endpoints.

Configuring map attributes

  1. From the options in the OpsRamp Entity menu, click Alert.
  2. From the OpsRamp Property menu, click Status.
  3. Click + to define the mappings. Create Alert Mappings on Status is displayed.

The following table describes mapping attributes.

Third-Party EntityOpsRamp EntityThird-Party PropertyOpsRamp Property (non-editable)
ProblemAlerteventType
Third-Party Property ValueOpsRamp Property Value
ALERT_NOTIFICATION_CLEARCritical
ALERT_NOTIFICATION_TRIGGERCritical
WEBHOOK_TESTOk
alert.currentState
ProblemAlertalert.typealert.serviceName
ProblemAlertalert.testName
ruleName : $alert.ruleName
violationCount : $alert.violationCount
permalink : $alert.permalink
testId : $alert.testId
ruleId : $alert.ruleId
alert.description
ProblemAlertalert.testNamealert.deviceName
ProblemAlertalert.ruleNamealert.subject
  • Attributes can be modified.
  • Mappings are user-selectable and depend on the environment.

ThousandEyes configuration

Step 1: Create test

  1. Log into ThousandEyes Admin UI.
  2. From the left pane, navigate to Cloud and Enterprise Agents > Test Settings and click Add New Test. A new test dialog is displayed.
  3. Perform the following steps for the new test block:
    1. Select Layer.
      For example: Web
    2. Select a Test Type.
      For example: HTTP Server
    3. Enter a unique Test Name. The Basic Configuration displays fields according to the selections of the layer and test type.
    4. Enter the basic configuration details. For example, if the layer is Web, the URL field is displayed. The fields, such as Interval, Agents, and Alerts are common. Select the values accordingly from the drop-down menu and make sure that the Alerts checkbox is selected.
    5. Without modifying advanced settings, click Create New Test.

The new test is added.

Step 2: Create alert rule

  1. From the ThousandEyes panel, go to Alerts > Alert Rules and click Add New Alert Rule. The Add New Alert Rule dialog box is displayed. Alert Type displays the Layer (Web) and Test Type (HTTP Server) that was selected in step 1.
  2. Enter a unique Rule Name.
  3. For Settings, do the following steps:
    1. From the Tests drop-down, select the name of the newly added test.
    2. Select the Agents for the new rule.
      For example, leave the default selection of None for Auth Type.
    3. In Alert Conditions, specify the conditions (if any) that the alert must meet in the drop-down. To add (or remove) an alert condition, click the + (or -) button.
  4. Perform the following steps on the Notifications tab to configure Webhook URL and add:
    1. For Webhooks, do the following steps to Edit webhooks for send notifications:
      1. Enter a unique name.
      2. Enter the Webhook URL copied during OpsRamp.
        For example, [https://example.opsramp.com/integrations/alertsWebhook/{tenant Id}/alerts?vtoken=Vdslfndnx93Y2cK7FsxG8qp2StKb](https://{yourdomain}:/integrations/alertsWebhook/client_1/alerts?vtoken={token}).
      3. Click Test to verify the Webhook URL.
      4. Click Add New Webhook.
    2. Select the Webhook URL created from the drop-down menu.
  5. Click Save Changes.

The new alert rule is created.

Example payload

{
  "eventType": "ALERT_NOTIFICATION_TRIGGER",
  "eventId": "105777903-38417150",
  "alert": {
    "agents": [
      {
        "active": 1,
        "metricsAtStart": "Error: "404 Not Found"",
        "metricsAtEnd": "",
        "agentId": 48608,
        "agentName": "Atlanta, GA (Trial) - IPv6",
        "dateStart": "2020-04-03 06:18:03",
        "permalink": "https://app.thousandeyes.com/alerts/list/?__a=180546&alertId=38417150&agentId=48608"
      },
      {
        "active": 1,
        "metricsAtStart": "Error: "404 Not Found"",
        "metricsAtEnd": "",
        "agentId": 4512,
        "agentName": "Atlanta, GA (Trial)",
        "dateStart": "2020-04-03 06:18:03",
        "permalink": "https://app.thousandeyes.com/alerts/list/?__a=180546&alertId=38417150&agentId=4512"
      },
      {
        "active": 1,
        "metricsAtStart": "Error: "404 Not Found"",
        "metricsAtEnd": "",
        "agentId": 4516,
        "agentName": "New York, NY (Trial)",
        "dateStart": "2020-04-03 06:18:03",
        "permalink": "https://app.thousandeyes.com/alerts/list/?__a=180546&alertId=38417150&agentId=4516"
      }
    ],
    "alertId": 38417150,
    "dateStart": "2020-04-03 06:18:03",
    "apiLinks": [
      {
        "rel": "related",
        "href": "https://api.thousandeyes.com/v4/tests/1294019"
      },
      {
        "rel": "data",
        "href": "https://api.thousandeyes.com/v4/web/http-server/1294019"
      }
    ],
    "permalink": "https://app.thousandeyes.com/alerts/list/?__a=180546&alertId=38417150",
    "ruleExpression": "Error is present",
    "ruleId": 1140394,
    "ruleName": "Test_Integration",
    "testId": 1294019,
    "testName": "New_Test",
    "violationCount": 3,
    "type": "HTTP Server"
  }
}

Viewing alerts

  1. Select the Workspace drop-down option and go to Alerts.
  2. Search for ThousandEyes as the source name to view alerts.
  3. Click an alert ID.
Viewing Alerts