Measures
Alerts measure spans. Each measure has a unit, and the threshold you enter is in that unit.Aggregations
Each measure accepts these aggregations:
The form offers only valid pairs; the API rejects the rest.
uniq counts distinct values, so its result is a count rather than a value in the measure’s unit.
Operator and threshold
The aggregated value is compared to the threshold with one of six operators. The form shows the symbol, and Slack messages spell it out.
A rule has a single threshold, between
-1e34 and 1e34. For two levels, such as a warning and a critical level, create two alerts.
Window
The window is how far back each evaluation looks: 1m, 5m, 10m, 30m, 1h or 2h. The default is 10m. The window sets how much recent data each check reads, not how often you are notified. A rule with a1m window is checked every minute; every other rule is checked every 5 minutes. Each window ends 30 seconds ago, so spans that arrive late still count.
Filters
Filters limit which spans are measured. A span must match every filter on the rule. The form ignores half-filled rows.
Unique user ids and Unique session ids work only on rules without filters.
When a window has no data
count and uniq read 0 on an empty window, so this setting does not apply to them. To be notified when traffic stops, alert on count < 1.
Every other aggregation, sum included, is empty when the window has no spans that record the measure, such as a cost sum over spans without a cost. When a window has no data decides what happens:
Under
NOTIFY, the message goes out once the gap has lasted as long as the rule’s window, or 10 minutes for longer windows.
Renotify
Renotify controls whether a rule that stays in breach repeats its message.- Off (alert only on transitions), the default: the rule notifies only when it enters Alert and when it recovers.
- Re-alert at a regular interval: the breach message repeats every N minutes while the rule stays in Alert. The interval defaults to 60 minutes.
Severities
The severity is the result of the latest evaluation. The list badge shows it, or the status when the rule is not active.
A rule whose last run failed shows Failing in the list, with the error. It retries on its normal schedule: next minute for a
1m window, within 5 minutes for wider ones.
Statuses
The status says whether the rule is being evaluated at all.
Only traceroot sets
PARKED, and the badge states the reason. To start a parked rule again, change the setting named in the reason and save, or resume it. A save that changes nothing, or only the name, leaves it parked. A parked rule cannot be paused.
Starting fresh
Some actions start a rule fresh: its severity returns to No Data until the next evaluation, and an open alert closes. If the metric still breaches, the next evaluation announces a new alert. Closing an open alert queues an[OK] message for Slack, normally within about a minute. It is not a recovery: it carries no measured value, and names who edited or resumed the rule. When the metric still breaches, the new [ALERT] follows the [OK]. A rule edited while paused still sends it, because the alert it closes was already announced. If Slack keeps refusing the message for about 30 minutes it is queued again, up to three more times; if no channel is set, the Slack connection is incomplete, or Slack rejected it, it is not sent again.
Deleting a rule with an alert open posts the same [OK] right away, naming who deleted the rule when their account has a display name. It is sent once: if no channel is set or Slack does not accept it, it is not sent again, and the delete still goes through.
Limits
- 100 alerts per project, on every plan. Paused and parked alerts count toward the limit. The list shows how many are used once fewer than 10 are left, and New Alert is disabled at the limit.
- Names are required, up to 200 characters, and not unique: creating the same rule twice makes two rules.
- 50 filters per rule.
- Renotify interval from 1 to 10,080 minutes.
Next steps
Introduction
Create your first alert and connect Slack.
traceroot Agent
The in-app agent that can draft alerts for you.