Ratel Docs
FeaturesMonitor

Alerts

A Slack message when a metric crosses a threshold, and one when it recovers.

Alerts answers: will I know when my agent gets worse, without watching a chart?

An alert watches one metric. Ratel checks it every minute. It sends a message when the value crosses your threshold, and another when it recovers. Open them from Monitor › Alerts.

The Alerts list of Site Copilot: Slow traces, Latency p95 is above 30 s over 1 day, state OK, on

The list shows each alert with its rule, State, Last change and its On switch.

Create an alert

Click Create alert. You can also start one from a dashboard widget or an Explore panel: its … menu has Create alert.

New alert: 1. Metric with the Error rate metric and its RQL query, 2. Condition with Above, the threshold, the window and the last 7 days chart
  1. Metric. Pick a Metric and an Aggregation, such as Latency and p95. They write the RQL query, which you can edit. The query must give one row with one number. Filter narrows the traces.
  2. Condition. Alert when the value is Above or Below a Threshold, Over the last 5 minutes, 15 minutes, 1 hour or 1 day. The chart shows the last 7 days against your threshold, so you see how often it would have fired.
  3. Notify. Tick the Slack channels to send to. Name is the title of the message. With no channel ticked, the alert still keeps its state and history.

Click Create alert.

Read an alert

The Slow traces alert: state OK, the Latency p95 metric, the condition above 30 s over 1 day, and the last 7 days chart crossing the threshold

The state is one of:

  • OK: the value is on the good side of the threshold.
  • Alerting: it crossed the threshold. A message went out.
  • No data: nothing in the window to measure.

History lists each change of state, newest first, with its Value and Message (Alert sent or Recovery sent). The switch pauses the alert. Delete… removes it.

Send alerts to Slack

Channels are set once per project, in Settings › Notifications.

Settings, Notifications: the Slack section and the Destinations table with #site-ops-alerts, Send test message and Remove
  • Add to Slack connects your Slack workspace, for every project of the organization. Then Add a channel.
  • Other ways to connect › Webhook URL adds a channel by its Slack incoming webhook instead.
  • Destinations lists the channels. Send test message checks one. Remove… deletes it.

A self-hosted Ratel connects Slack through its own Slack app: Configure your Slack App shows how.

Over MCP

On this page