Integrate Spike with IBM NS1 Connect
Send IBM NS1 Connect monitoring alerts to Spike so a failing ping, TCP, HTTP or DNS monitor alerts on-call, and resolves when the monitor recovers.
IBM NS1 Connect is a managed DNS and traffic management platform. Its monitoring jobs check an endpoint on a schedule from several regions, using a ping, TCP, HTTP or DNS check, and drive DNS failover from the result.
A monitoring job can also notify you when its status changes. Add a webhook notifier that points at a Spike integration URL, put it in a notifier list, and a failing job pages your on-call rotation. When the job comes back up, the incident resolves itself.
What Spike does with each notification
Every notification carries a state, and that field decides what Spike does with it.
state
What Spike does
down
Opens an incident, or adds to the one already open for this job
up
Resolves the open incident for the same job and the same region
up is only sent when the job has Automatic recovery switched on (notify_failback in the notification). Without it, NS1 never tells Spike the endpoint came back, and the incident stays open until someone resolves it.
Incident identity
Spike identifies the incident by job_document.id, the id of the monitoring job. NS1 repeats it on the down, on every repeat and on the up, so one failure of one job is one Spike incident.
When the notification has a region, it is part of the identity too. With Notify regional switched on, a failure seen from one monitoring region is a separate incident from the job's overall (global) failure.
Incident title
NS1 sends no sentence about the fault, so the title is built from the job:
edge-lb-ping is down: PING check of 203.0.113.10 failing (global)A recovery reads:
The pieces come from the job's name, its job_type in upper case, the target and the region:
Target is the URL for an HTTP job,
domain via nameserverfor a DNS job, otherwise the host, with:portwhen the job has a port (for exampledb.example.com:5432). A URL is shown without anyuser:password@, query string or#fragment, so credentials or tokens in a monitored URL never reach a phone call, SMS or Slack message.Where is
global, orregion <code>for a regional notification, such asregion lga. It is left out when the notification carries no region.A job without a name is titled
NS1 PING monitor(using its type), and a notification with nothing readable is titledNS1 Connect alert with no details.A
stateother thanupordownis titlededge-lb-ping reported <state>: PING check of 203.0.113.10 (global).
The job's notes are never used in the title, since they are instructions for your team and not a description of the fault. Titles are capped at 200 characters and carry no ids or timestamps; a very long target or job name is shortened, never the region.
Prerequisites
An IBM NS1 Connect account that can edit monitoring jobs and notifier lists
An NS1 integration in Spike and its webhook URL
Nothing to open on your own network. NS1 calls out to Spike
Step 1 — Create the integration in Spike
In Spike, go to Integrations → Add integration → IBM NS1 Connect, attach it to a service and an escalation policy, and copy the webhook URL. It looks like https://hooks.spike.sh/<your-token>/push-events.
Step 2 — Add a webhook notifier in NS1 Connect
Sign in to the NS1 Connect portal and go to Alerts → Notifier lists.
Select Create notifier list and give it a name such as
Spike.Select Create notifier and set Notifier type to Webhook.
Paste the Spike webhook URL from Step 1 into the Webhook URL field, then select Create notifier.
Select Create notifier list to save the list.
Step 3 — Attach the list to your monitoring jobs
Open the monitoring job you want to page on (or create one) and go to its notification settings.
Turn Notifications on. Without it NS1 sends nothing, whatever list is selected.
Select the notifier list you created in Step 2.
Tick Automatic recovery. Without it NS1 sends no
upnotification and Spike cannot resolve the incident.Optional: set Notify delay to wait before notifying, Notify repeat to resend while the job is down, and Notify about regional failure to also notify on per-region changes. With regional notifications on, each region that fails opens its own incident, apart from the job's
globalone, and only that region'supresolves it.Save the job.
Repeat for every job that should page.
Step 4 — Confirm it end to end
Use the notification list's test option if your portal offers one, but expect it to be titled NS1 Connect alert with no details: NS1 does not document what a test sends, and it may carry no job. Acknowledge and resolve that incident in Spike.
For a real check, point a job at an endpoint that is down and watch for:
An incident opens in Spike titled
<job name> is down: <TYPE> check of <target> failing (global).Later
downnotifications from Notify repeat land on the same incident without paging again.Bring the endpoint back and the incident resolves itself.
Payload reference
NS1 sends its own payload and there is no template to edit. This is a reference for what lands on the incident page, and what alert rules and the Title Remapper can read as data.body.<field>.
A down notification, which opens the incident:
The up notification that resolves it has the same shape:
The fields Spike reads:
state
down opens or joins the incident, up resolves it (compared case-insensitively)
region
global or a monitoring region code; part of the identity and of the title. An up resolves only the incident for the same region
job_document.id
Identity of the incident
job_document.name
The first part of the title
job_document.job_type
ping, tcp, http or dns, shown upper-case in the title
job_document.config.host
Target of a ping or TCP job; the nameserver of a DNS job
job_document.config.port
Appended to the host as host:port
job_document.config.url
Target of an HTTP job, shown without credentials, query string or fragment
job_document.config.domain
The queried domain of a DNS job
Spike does not read job_document.status. In NS1's own samples it can still show the state from before the change, so the notification's top-level state is what counts.
Last updated

