Skip to content

Badges

A badge is a small SVG image that shows the live status or the uptime of one monitor, for a README, an internal wiki or a dashboard. It needs no login.

Use badges when you want a quick, glanceable signal in a place that cannot show a full status page. A badge shows one monitor. To show the status of a whole status page on your site, use the status page widgets.

Anyone with the member role can enable the badge in the monitor settings. CronBeat creates a secret random key for the monitor. The images live on the ping host:

https://api.cronbeat.dev/badge/BADGE_KEY/status.svg
https://api.cronbeat.dev/badge/BADGE_KEY/uptime.svg
https://api.cronbeat.dev/badge/BADGE_KEY/uptime.svg?range=24h
https://api.cronbeat.dev/badge/BADGE_KEY/response.svg
https://api.cronbeat.dev/badge/BADGE_KEY/last-ping.svg
https://api.cronbeat.dev/badge/BADGE_KEY/status.svg?style=for-the-badge&label=backup
  • status.svg shows the current status (up, down, late, running, paused, new) or maintenance.
  • uptime.svg shows the uptime percentage, or no data. range is 24h, 7d (default) or 90d.
  • response.svg shows the average response time over range (same values).
  • last-ping.svg shows how long ago the last ping arrived.
  • style (all kinds) is flat (default), flat-square or for-the-badge.
  • label (all kinds) replaces the left text, up to 24 characters.
  • Images are cached for 60 seconds and limited to 300 requests per minute per IP address.

Markdown:

![backup status](https://api.cronbeat.dev/badge/BADGE_KEY/status.svg)
Situation Result
You disable the badge The address answers 404 (an image saying not found).
You enable it again A new key is created, so the old address stays dead. Use this to rotate a leaked address.
The monitor goes down The status badge turns red within about a minute (cache time).
The monitor is in maintenance The status badge says maintenance and the uptime is not reduced.

The badge key is different from the ping key and cannot be used to send pings. Anyone who has the badge address can see the status of this one monitor, nothing more.