Dataloop.io Integration

Dataloop.io Integration

Dataloop.io provides native as well as easily extensible custom monitoring for Cloud, SaaS, Microservices and IoT deployments. OpsGenie is an alert and notification management solution that is highly complementary to Dataloop.io.

What does OpsGenie offers to Dataloop.io users?

The Dataloop.io platform allows customers to configure highly customizable Alerts and take actions based on the chosen criteria in order to highlight or be notified of events of interest. With Dataloop.io Integration, OpsGenie acts as a dispatcher for these alerts, determining the right people to notify based on on-call schedules, notifying them using email, text messages (SMS), phone calls and iPhone & Android push notifications, and escalating alerts until the alert is acknowledged or closed.


Functionality of the integration

  • An alert is triggered when a defined "criteria met" , an alert is also created in OpsGenie automatically through the integration.
  • When the alert "criteria is not met" in Dataloop.io, the alert is also closed in OpsGenie.

Add Dataloop.io Integration in OpsGenie

  1. Please create an OpsGenie account if you haven't done already
  2. Go to OpsGenie Dataloop.io Integration page,
  3. Specify who should be notified for Dataloop.io alerts using the "Teams" and "Recipients" fields. Auto-complete suggestions will be provided as you type. 
  4. Copy the Api URL by clicking on the copy button or selecting.
  5. Click on "Save Integration".

Configuration in Dataloop.io

  1. In Dataloop.io, open Alerts Screen from the side menu
  2. Create a new alert or Edit an existing alert
  3. Select Actions Tab of the upper menu
  4. Click Add New Action and select Call a Webhook
  5. Paste API URL into Webhook URL field
  6. Click Test Webhook
  7. Click Create New Action

Sample payload sent from Dataloop.io

Create Alert payload:

{
  "event": "ALERT",
  "rule": "Wordpress",
  "account": "default",
  "event_type": "trigger",
  "entity_id": "572eb7099b36dd8ef71f3f61",
  "triggers": [
    {
      "sources": [
        {
          "name": "ip-172-31-18-138",
          "tags": [
            "all",
            "wordpress"
          ],
          "timestamp": "2016-06-13T15:18:22.284Z"
        }
      ],
      "criteria": "\u2018wordpress.comments\u2019 is greater than threshold of 5"
    }
  ],
  "text": "ALERT: Wordpress\n\n- \u2018wordpress.comments\u2019 is greater than threshold of 5 for ip-172-31-18-138 (all, wordpress) since Mon Jun 13 2016 15:18:22 GMT+0000 (UTC)\n\n Please login (https:\/\/app.dataloop.io) to your account (default) to investigate.",
  "description": "ALERT: Wordpress\n\n- \u2018wordpress.comments\u2019 is greater than threshold of 5 for ip-172-31-18-138 (all, wordpress) since Mon Jun 13 2016 15:18:22 GMT+0000 (UTC)\n\n Please login (https:\/\/app.dataloop.io) to your account (default) to investigate.",
  "message": "ALERT: Wordpress\n\n- \u2018wordpress.comments\u2019 is greater than threshold of 5 for ip-172-31-18-138 (all, wordpress) since Mon Jun 13 2016 15:18:22 GMT+0000 (UTC)\n\n Please login (https:\/\/app.dataloop.io) to your account (default) to investigate.",
  "host": "ip-172-31-18-138"
}

This payload is parsed by OpsGenie as:

[
"event" : "ALERT",
"event_type" : "trigger",
"host" : "ip-172-31-18-138",
"rule" : "Wordpress",
"text" : "Alert Text",
"entity_id" : "572eb7099b36dd8ef71f3f61",
"triggers" : "Triggers:

Sources:
Name: ip-172-31-18-138
Tags: all,wordpress
Timestamp: 2016-06-13T15:18:22.284Z

Criteria: ‘wordpress.comments’ is greater than threshold of 5

",
"account" : "default",
]

Close Alert payload:

{
  "event": "RECOVERED",
  "rule": "Wordpress",
  "account": "default",
  "event_type": "resolve",
  "entity_id": "572eb7099b36dd8ef71f3f61",
  "text": "RECOVERED: Wordpress\n",
  "description": "RECOVERED: Wordpress\n",
  "message": "RECOVERED: Wordpress\n",
  "host": ""
}

Sample alert