Guide · Heartbeats
Opsgenie heartbeats: where to move them.
A heartbeat is a job that checks in on a schedule — a backup, a cron, a batch. If it goes quiet, someone gets paged. In TeamPager each heartbeat is one URL: your job calls it when it finishes. No API key header, no heartbeat name in the path.
Part of Migrate from Opsgenie. Free includes 20 heartbeats, Standard 100. Last tested November 26, 2026.
The change
What changes in your scripts.
The Opsgenie-compatible address that takes your Alertmanager and Grafana alerts does not take heartbeat pings. You change each job's ping line once.
Before — Opsgenie
curl -X GET \ "https://api.opsgenie.com/v2/heartbeats/nightly-backup/ping" \ -H "Authorization: GenieKey <Opsgenie API key>"
EU accounts use api.eu.opsgenie.com.
After — TeamPager
your-job && curl -fsS -m 10 --retry 3 \ "https://hooks.teampager.io/heartbeat?k=tphb_…" > /dev/null
PowerShell:
if ($?) { Invoke-RestMethod -TimeoutSec 10 "https://hooks.teampager.io/heartbeat?k=tphb_…" | Out-Null }
- GET, POST or HEAD all count as a ping. The answer is
200 {"ok":true}. - The secret is the URL. It's shown once, when you create the heartbeat. Lost it, or it leaked? Rotate URL gives a new one and the old one stops working.
-
Wrong or missing token:
401. Unlike Opsgenie, we check the ping before answering: a200means this heartbeat got it.
Settings
Opsgenie heartbeat settings, mapped.
| Opsgenie | TeamPager | Note |
|---|---|---|
| Name | Name | Shown in the page title: Heartbeat missed: nightly backup. |
| Interval + unit (minutes, hours, days) | Every | 1 minute to 7 days. |
| — | Grace | Extra time before we page, 1 minute to 24 hours. A job that runs a little late doesn't wake anyone. |
| Owner team | Board | The board whose on-call person is paged. |
| Enabled / disabled | Pause / Resume | A paused heartbeat never pages. Resuming waits for the next ping. |
| Alert message, tags, priority | — | The title is fixed: Heartbeat missed: and the name. |
Setup
Move one heartbeat.
- In TeamPager, open Organization → Integrations → Heartbeats and choose Add a heartbeat (owners only). Give it the same name as in Opsgenie, the same interval, a grace, and the board to page.
- Copy the URL — or the ready-made bash or PowerShell line. It's shown once.
- Replace the Opsgenie ping line in your job. Run the job once: the heartbeat goes from Waiting for first ping to Up.
- Keep the Opsgenie heartbeat until you've seen TeamPager page once — skip a run, or create a short test heartbeat (every 1 minute, grace 1 minute) and don't ping it.
When it goes quiet
What happens on a missed heartbeat.
- Deadline = last ping + every + grace. Past it, the heartbeat turns Down — paged and the board's escalation chain starts, like any other page. In our test the page opened 8 seconds after the deadline.
- One page per silence. A job that stays down doesn't open a new page every interval.
- The page doesn't close itself. When the job pings again the heartbeat is back Up, but the page stays open until someone acks or resolves it — so nobody misses that it happened.
Questions.
Can I keep pinging api.opsgenie.com paths on TeamPager's Opsgenie address?
No. The Opsgenie-compatible address takes alerts (create and close). The heartbeat ping API isn't part of it: each job gets its own TeamPager URL.
How many heartbeats do I get?
20 per organization on Free, 100 on Standard.
Do I need an API key in a header?
No. The token is in the URL, so tools that can only call a URL — cron, a NAS, an uptime checker — can ping it. Treat the URL like a password.
Is there an email heartbeat?
No. If a tool can only send email, forward its alert emails to your organization's inbound address instead: every email becomes a page.
Move your first heartbeat.
Free covers five people on call and 20 heartbeats. Next: Alertmanager · Grafana · the full migration guide.