Integrate with Uptime.com
What does the integration offer?
Use Compass's Uptime.com integration to forward Uptime.com alerts to Compass. Compass acts as a dispatcher for these alerts and determines the right people to notify based on on-call schedules, notifies via email, text messages (SMS), phone calls, and iOS and Android push notifications, and escalates alerts until the alert is acknowledged or closed.
How does the integration work?
When an alert is created in Uptime.com, an alert is created in Compass automatically through the integration.
When the alert is cleared on Uptime.com, the related alert is closed in Compass.
Set up the integration
Uptime.com is an API integration. Setting it up involves the following steps:
Add a Uptime.com integration in Compass
Configure the integration in Uptime.com
Add a Uptime.com integration
In this release, only incoming integrations are fully supported in the Standard plan, at a team level. To use outgoing integrations or the outgoing part of bidirectional integrations, upgrade to a higher subscription plan. There may be restrictions on how you can create and apply integration rules as well.
You can add this integration only from your team’s operations page. Adding an integration from your team’s operations page makes your team the owner of the integration. This means Compass only assigns the alerts received through this integration to your team.
To add a Uptime.com integration in Compass, complete the following steps:
Go to your team’s operations page.
On the left navigation panel, select Integrations and then Add integration.
Run a search and select “Uptime.com”.
On the next screen, enter a name for the integration.
Optional: Select a team in Assignee team if you want a specific team to receive alerts from the integration.
Select Continue.
The integration is saved at this point.Expand the Steps to configure the integration section and copy the endpoint URL and API key.
You will use them while configuring the integration in Uptime.com later.Select Turn on integration.
The rules you create for the integration will work only if you turn on the integration.
Configure the integration in Uptime.com
To configure the integration of Uptime.com with Compass, complete the following steps:
In Uptime.com, select Alerting from the panel.
Select Push Notifications > New Profile.
Select Opsgenie.
Paste the API key previously copied from Compass into API Key.
Select Save.
Select Contacts and then the settings icon right next to the desired contact to send the notifications to and select Edit.
Add the created profile to Push Notifications and select Save.
Sample webhook message from Uptime.com
JSON
{
"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"
}