Integrate Spike with Healthchecks

Healthchecks.io monitors the heartbeat messages sent by your cron jobs, services and APIs. Spike integrates easily so get immediate alerts when they don't arrive on schedule.

Service and Integration

Make sure you have the service and integration already setup for Healthchecks. Follow the link below on instructions of how to create integration and service

Use the webhook on Healthchecks

We will use Healthchecks.io's webhook integration. In simple steps we will copy and paste the webhook and configure the body of webhook payload.

Log into your Healthchecks.io account, select syour project and click on Integrations from the header.

The simplest and the easiest integration with Spike is the webhook integration. Click on Webhook from the list of integrations.

To integrate with Spike, you will need to -

  1. Webhook methods should be POST

  2. Copy and paste any of the below sample request body. The MESSAGE key is needed for Spike to parse the message easily.

  3. Request headers should be Content-Type: application/json

  4. Save integration

Spike is working to add support when the status of a check goes UP. You can leave the UP webhook empty for now.

/**
*
* Request Body
* You can get creative with the variables Healthchecks
* support but make sure to keep the MESSAGE key in the object.
*/
// Sample 1
{
"message": "$NAME went $STATUS",
"status": "$STATUS"
}
/**
*
* Headers for Spike compatibility
* Do not change the headers to anything but JSON
*/
"Content-Type": "application/json"

You can save your integration to check the incident on Spike immediately as it's saved.

This integration supports auto resolution.

- Have multiple checks? Here's what we recommend

If you have more than one check then it could get confusing.

At any given point in time, you can book a free consultation with us by blocking our calendar or contacting us at support@spike.sh

Here is what we suggest -

  1. For every service, you might have a cron job in it. For ex: Cron for billing service, cron for notification service, cron for syncing data on cloud etc. In a case like this, you should ideally create multiple services on Spike and add a Healthchecks integration to each one of them.

  2. For one service on Spike, you have multiple multiple Healthchecks integration. Use a different integration webhook for each check.

  3. This is helpful if you want to monitor incidents and resolutions for all cron jobs under one service. Each integration can have different escalation policies so different members of your teams can be participated and help resolve incidents for different checks.