Table of Contents
- How Healthchecks.io decides to alert
- What you need
- Step 1 — Create a calling channel in Echobell
- Step 2 — Add a webhook integration in Healthchecks.io
- Step 3 — Test it
- Decide which checks deserve a call
- Things that go wrong
- What this does not give you
- Frequently asked questions
- Does Healthchecks.io support phone calls natively?
- Can I use the email integration instead?
- Will the call fire for every ping that fails?
- Related
Healthchecks.io watches for something that did not happen: a backup that never pinged, a nightly import that stopped. That is the dangerous kind of failure, because nothing crashes and nothing is logged. By default the alert is an email, and an email about a silent job is easy to read tomorrow morning instead of tonight. A webhook integration pointed at an Echobell calling channel turns the same alert into a phone call that gets through Focus Mode.
This guide sets up the webhook, shows the request body to use, and covers the details that decide whether the call arrives and is useful.
How Healthchecks.io decides to alert
Each check has a schedule (a period or a cron expression) and a grace time. Your job pings a unique URL when it finishes. If no ping arrives by the end of the schedule plus the grace time, the check goes down and Healthchecks fires its integrations. When a ping arrives again, the check goes up and the integrations fire a second time.
You can also report a failure explicitly by pinging the /fail suffix of the ping URL, which marks the check down immediately instead of waiting for the grace time to run out. The webhook is the same in both cases.
What you need
- A Healthchecks.io account (the hosted service or your own instance) with at least one check
- Echobell installed (App Store / Google Play)
- Five minutes
Step 1 — Create a calling channel in Echobell
Create a channel and set its notification type to Calling. A calling channel behaves like an incoming call, so it rings through Focus Mode and Do Not Disturb.
Copy the channel's webhook URL from the channel detail view:
https://hook.echobell.one/t/<channel-token>
Healthchecks sends its own field names, not title and body, so the channel needs a template to build the notification. Open the channel's settings, turn on Custom Template under Advanced Settings, then enter:
Title: {{check}} is {{status}}
Body: Tags: {{tags}}
Step 2 — Add a webhook integration in Healthchecks.io
Open Integrations → Add Integration → Webhook and fill in the two events separately.
When a check goes down
- URL: your Echobell channel URL
- Method:
POST - Request body:
{"check": "$NAME", "status": "$STATUS", "tags": "$TAGS", "code": "$CODE", "time": "$NOW"}
- Request headers:
Content-Type: application/json
When a check goes up
Leave it empty if you only want to be called when something breaks. If you want a quieter recovery notice, use a second Echobell channel of type Time Sensitive or normal with the same body, so the recovery arrives as an ordinary push while the failure rings.
Healthchecks fills in $NAME, $STATUS, $TAGS, $CODE and $NOW before sending; $STATUS is down or up. Spelling and case matter: a misspelled placeholder is sent as literal text.
Save the integration, then make sure it is enabled for each check that should ring. Integrations belong to a project, and each check has its own switch for every integration.
Step 3 — Test it
Healthchecks has a Send test notification action on the integration. For the real path, force a failure on a throwaway check:
curl -fsS -m 10 --retry 3 https://hc-ping.com/<your-check-uuid>/fail
The check goes down immediately and your phone rings. Ping the normal URL afterwards to bring it back up:
curl -fsS -m 10 --retry 3 https://hc-ping.com/<your-check-uuid>
To test only the Echobell side, post the body yourself:
curl -X POST https://hook.echobell.one/t/<channel-token> \
-H 'Content-Type: application/json' \
-d '{"check":"nightly-backup","status":"down","tags":"prod backup","code":"test","time":"now"}'
If this rings and the Healthchecks test does not, look at the integration, not the channel.
Decide which checks deserve a call
A phone that rings for everything stops being answered. Healthchecks already gives you the tools:
| Goal | How |
|---|---|
| Only production jobs ring | Attach the calling integration only to production checks |
| Group by importance | Put critical checks in their own project with its own calling integration |
| Fewer false alarms on slow jobs | Raise the grace time instead of shortening the period |
| Detect a job that starts but never ends | Ping the /start suffix when it begins and the plain URL when it ends |
Echobell can filter again with a channel condition. This one rings only for down events, so a stray up body never calls:
status == "down"
The conditions reference lists the operators and the variables available from a JSON body.
Things that go wrong
- Quotes in check names. The name is inserted into your JSON as-is. A double quote or backslash in a check name produces invalid JSON, and Echobell cannot read the fields. Keep names to letters, digits, spaces and hyphens.
- Private or self-hosted networks. The hosted Healthchecks.io blocks requests to private IP addresses. Echobell is a public HTTPS URL, so this only matters if you point the webhook at something internal. On a self-hosted instance, an outbound firewall can block
hook.echobell.one. - Slow responses. Healthchecks waits up to 30 seconds per request and retries a failed request (a timeout or a non-2xx answer) up to two times. A single delivery can take longer than you expect when the endpoint is down.
- Flapping. A job that fails, recovers and fails again rings each time it goes down. Raise the grace time, or fix the job.
- One integration, many checks. If every check shares one integration, every check rings. Use a separate calling integration for the few jobs that must wake you up.
What this does not give you
- No acknowledgement. Answering the call does not tell Healthchecks anything.
- No escalation. Everyone subscribed to the channel is called; nobody is called next if you do not pick up.
- No two-way sync. Fixing the job does not clear anything on your phone; the up event does not either unless you wired a recovery channel.
If you need rotations and acknowledgement, use an on-call platform. If you need "ring me when the backup did not run", this is one integration.
Frequently asked questions
Does Healthchecks.io support phone calls natively?
Phone-call and SMS notifications exist as integrations on the hosted service, with monthly quotas set by the plan. A webhook to a calling channel does not use that quota on the Healthchecks side and works the same on a self-hosted instance.
Can I use the email integration instead?
Yes. Every Echobell channel has an email trigger address, and Healthchecks can email it. The webhook is better because you control the body and the fields arrive structured.
Will the call fire for every ping that fails?
It fires when the check changes state, from up to down. A check that stays down does not call again for each missed period.
Related
- Cron job failure alerts for the same idea without a monitoring service
- Backup failure alerts for jobs that must not fail silently
- Webhook reference for the trigger format