Skip to content

Slack

  1. In Slack, create an incoming webhook for the channel that should receive alerts.
  2. In CronBeat open Channels, choose Slack, give it a name and paste the webhook URL.
  3. Use Send test message, then attach the channel to your monitors.

The URL must start with https://hooks.slack.com/, otherwise it is rejected. The rules for all URL channels (private networks, no redirects, timeouts) are on Channels and delivery.

A colored card (Slack Block Kit) instead of plain text:

  • A header with the state: Monitor down, Still down (reminder), Monitor recovered, Slower than usual, Agent lost or Agent recovered. The bar on the left is red, green or amber to match.
  • The monitor name as a link to its page, with the reason in words (for example The expected check-in did not arrive in time).
  • Fields for the detail (such as the container failure reason from the Kubernetes agent), the last success and the expected time. Fields without a value are left out.
  • An Open in CronBeat button and the time of the event.

Names and details are escaped, so a monitor called <!channel> or one that contains a link cannot ping your workspace or show a link of its own. Notifications on your phone show a plain one line text, for example [CronBeat] DOWN: Nightly backup.

Slow run alerts use the same card with the reason slow_run. Slack is a plan feature: Pro and Enterprise.