Heartbeat Monitor
Used to monitor periodically executing processes such as cron jobs and batch processes. Determines liveness based on whether periodic pings arrive at a Manako-issued endpoint.
How It Works
Section titled “How It Works”- Manako issues an endpoint URL for the Heartbeat monitor
- The monitored job sends an HTTP request (ping) to that URL upon completion
- If no ping arrives within the configured grace period, a failure is detected
Configuration
Section titled “Configuration”| Field | Description | Required | Default |
|---|---|---|---|
| Grace Period | Time to wait before marking as down when no ping is received | No | 300 seconds (5 minutes) |
The grace period can be set between 60 seconds and 86,400 seconds (24 hours). We recommend setting it slightly longer than the monitoring interval.
Setup Examples
Section titled “Setup Examples”# Send a ping at the end of the jobcurl -s https://hb.manako.dev/ping/{token}# Hourly batch + Heartbeat ping0 * * * * /path/to/job.sh && curl -s https://hb.manako.dev/ping/{token}# Heartbeat ping via Dockerfile HEALTHCHECKHEALTHCHECK --interval=5m CMD curl -sf https://hb.manako.dev/ping/{token} || exit 1Incident Detection
Section titled “Incident Detection”A failure is detected when no ping is received within the configured grace period. Receiving a ping automatically triggers recovery.