Integrate Spike with Uptrends
Send Uptrends alerts to Spike so a failing website, API or transaction monitor alerts on-call, and resolves when Uptrends reports the monitor OK.
Uptrends monitors websites, APIs, servers and multi-step transactions from checkpoints around the world. When a monitor fails, an alert definition decides who gets told. Add a webhook integration to that alert definition and Uptrends posts every alert to Spike, so a failing monitor pages your on-call rotation by phone, SMS, Slack or Teams.
Service and integration
Make sure to add the Uptrends integration and copy the webhook.
Create integration and service on our dashboardUsing the Webhook with Uptrends
Step 1
Log in to your Uptrends account and open Alerting in the left menu.
Step 2
Open Integrations and click +. Select the Uptrends integration type, click Choose..., and give it a name such as Spike.
Step 3
Set the API URL to the Spike webhook URL you copied (choose Specify value here). Keep the predefined request body on the Customizations tab as it is, then click Save.
Spike reads these fields of the predefined body. If you edit the body, keep them:
alert.typealert.descriptionincident.keymonitor.guidmonitor.namemonitor.urlalertDefinition.name
This is what Spike receives when a monitor fails (abridged):
And when it recovers, with the same incident.key:
Step 4
Open Alerting > Alert definitions, edit the alert definition that covers the monitors you want in Spike (or create one), and open the escalation level you want to page from. Under Integrations, tick the Spike integration. Leave the Error, Reminder and OK message types enabled, so Uptrends also sends the OK alert when the monitor recovers.
Step 5
Save the alert definition and make sure your monitors are assigned to it (Monitors > edit the monitor > Alert definitions).
Fields Spike reads
alert.type
Yes
Alert opens an incident, Reminder adds to the open one, Ok resolves it.
incident.key
Recommended
Identity of one Uptrends incident. The error alert, its reminders and its OK alert share it.
monitor.guid
Recommended
Fallback identity when incident.key is missing, empty or not filled in by Uptrends.
alert.description
Recommended
Uptrends' own sentence about the error. It becomes the incident title.
monitor.name
Recommended
The monitor named in the title. When empty, the host of monitor.url is used.
monitor.url
Optional
Only used for the title when monitor.name is empty.
alertDefinition.name
Optional
Used in the title when alert.description is empty or the body carries no id.
All other fields are kept on the incident for reference.
What Spike does with each alert
alert.type
Result
Alert
A new error was detected. Opens an incident and pages.
Reminder
The original error is still ongoing. Joins the open incident with the same incident.key and never resolves it. If no incident is open, it opens one (or reopens the resolved one), so an error whose first alert was missed still pages.
Ok
The error was resolved. Resolves the open incident with the same incident.key (or monitor.guid). It never opens an incident.
Example incident titles:
HTTP error 503 (Service Unavailable) on Shop checkout healthShop checkout health recovered
Last updated

