Uptime Integration

Uptime is an uptime and performance monitoring tool.

OpsGenie is an alert and notification management solution that is highly complementary to Uptime.

What does OpsGenie offer Uptime users?

By using OpsGenie Uptime Integration, you can forward Uptime alerts to OpsGenie. OpsGenie can determine the right people to notify based on on-call schedules, using email, text messages (SMS), phone calls and iOS & Android push notifications, and escalating alerts until the alert is acknowledged or closed.


Functionality of the integration

  • When an alert is created in Uptime, an alert is created in OpsGenie automatically through the integration.
  • When the alert is cleared on Uptime, the related alert will be closed in OpsGenie.

Add Uptime Integration to OpsGenie

  1. Please create an OpsGenie account if you haven't done already
  2. Go to OpsGenie Uptime Integration page,
  3. Specify who should be notified for Uptime alerts using the "Teams" field. Auto-complete suggestions will be provided as you type.
  4. Copy the URL.
  5. Click on "Save Integration".

Configuration in Uptime

  1. In Uptime, select Alerting from the panel on the left.
  2. Select Push Notifications and select New Profile.
  3. Select Custom Postback URL (Webhook).
  4. Paste the URL that you copied into URL field and click Save.
  5. Select Contacts, choose the settings icon right next to the contact that you want to send the notifications to and click Edit.
  6. Add the created profile to the Push Notifications section and click Save.
  7. For more information please refer to the support document.

Sample Webhook Message from OpsGenie Uptime

{
  "data": {
    "account": {
      "id": 26465,
      "name": "Test"
    },
    "service": {
      "msp_script": "",
      "msp_dns_server": "",
      "msp_password": "",
      "monitoring_service_type": "HTTP",
      "msp_url_path": "/404",
      "id": 119395,
      "display_name": "Testing low",
      "msp_headers": "",
      "msp_address": "https://www.fool.com/404",
      "msp_threshold": null,
      "msp_url_scheme": "https",
      "msp_port": null,
      "msp_expect_string": "",
      "msp_notes": "",
      "monitoring_service_type_display": "HTTP(S)",
      "msp_send_string": "",
      "msp_encryption": "",
      "device_id": 85474,
      "is_paused": false,
      "msp_dns_record_type": "",
      "msp_username": "",
      "name": "Testing low",
      "msp_sensitivity": 2,
      "msp_interval": 1
    },
    "SITE_URL": "https://uptime.com",
    "integration": {
      "is_enabled": true,
      "module_verbose_name": "Custom Postback URL (Webhook)",
      "name": "opsgenie test",
      "use_legacy_payload": false,
      "id": 172,
      "module": "webhook",
      "postback_url": "http://api.opsgenie.com/v1/json/uptime"
    },
    "locations": [
      "US-East",
      "US-West"
    ],
    "device": {
      "is_paused": false,
      "address": "www.fool.com",
      "display_name": "www.fool.com",
      "id": 85474,
      "name": ""
    },
    "global_alert_state": {
      "ignored": false,
      "state_has_changed": true,
      "created_at": "2017-04-08T22:07:34.334Z",
      "state_is_up": false,
      "num_locations_down": 2,
      "id": 19972168
    },
    "date": "2017-04-08T22:07:34.334Z",
    "alert": {
      "created_at": "2017-04-08T22:07:34.334Z",
      "state": "WARNING",
      "short_output": "HTTP WARNING: HTTP/1.1 404 Not Found - 2759 bytes in 0.046 second response time",
      "is_up": false,
      "output": "HTTP WARNING: HTTP/1.1 404 Not Found - 2759 bytes in 0.046 second response time\n\ntime=0.045705s;;;0.000000 size=2759B;;;0",
      "id": 19883486
    }
  },
  "event": "alert_raised"
}

Sample alert