Alerts

Create an alert

Start an alert from a template, from Lucid, from scratch or from a failure, then walk the form: scope, measure, filters, condition, message and destination.

New alert on Assess → Alerts opens a picker with three ways in.

New alert: Create with Lucid and Start from scratch at the top, three templates to start with, and the full list grouped as Failures, Latency and Cost.
WayHow
A templateThe form opens filled in; change anything before you create it. Start here suggests Hard failures, Error rate and Slow runs.
Create with LucidOpens Lucid with Create an alert that drafted. Finish the sentence; Lucid proposes the alert as a card that is the form itself. Change any field, pick where it sends, and approve.
Start from scratchAn empty form.

The templates, with the limits they start from:

TemplateWatchesStarts at
Hard failuresFailed spansabove 5 in 1 hour
Tool failuresFailed spans of one toolabove 3 in 1 hour
Failed runsRuns that end in an errorabove 5 in 1 hour
Failures of one kindFailed spans of one error category (Timeout by default)above 3 in 1 hour
Failed runs of one kindFailed runs of one error categoryabove 3 in 1 hour
Error rateThe share of runs that failabove 10% in 1 hour, with at least 20 runs
Slow runsp95 run durationabove 30 s in 1 hour, with at least 10 runs
Slow toolp95 duration of tool spansabove 5 s in 1 hour, with at least 10 spans
Cost spikeTotal run costabove $10 in 1 hour

Two more places start the form for you:

  • Create alert (the bell) in a failure's drawer on Failures opens it filled in for that failure: failed spans on that agent, tool and error type, or failed runs for a run-level failure.
  • Alert on an eval's page opens it scoped to that eval, watching its Failures.

Nothing is saved until you click Create. An alert starts being evaluated as soon as it exists.

The form

The alert form from the Hard failures template: name and scope, the Spans measure with count and a Status is error filter, the condition above 5 over the last 1 hours, and Right now: 27, would trigger.

Alert

FieldWhat it is
NameWhat lands in Slack at two in the morning. Checkout p95 latency beats Alert 3.
ScopeRun, Span or Eval. It decides which measures and filter fields you get, and switching it clears the filters.
EvalWith Eval scope: the one eval to watch.

When you're unsure between run and span: if you'd investigate it by opening a run, scope to runs; if by looking at one step inside it, scope to spans.

Watch

FieldWhat it is
MeasureThe number.
AggregationHow the window's rows become one value. Only the ones that fit the measure are offered.
FiltersWhich rows count. Rules on fields such as agent, tool, status or your own metadata; every rule must match.

Every measure, aggregation and filter field is in Measures & filters. For latency, prefer p95 to the average: an average hides the slow tail your users complain about.

Condition

When: an operator (above, at or above, below, at or below), the limit in the measure's own unit (ms, $, %), and over the last a number of minutes, hours or days, from 1 minute to 30 days.

A Minimum line shows when the measure needs more than one row to mean anything: 5 for a rate or an eval's Score, because one failing run out of one is a 100% error rate.

Right now reads the alert as it stands against your real data: the current value and whether it would trigger, would not trigger, or has not enough to decide. Nothing is saved to show it.

Choosing a window is a trade between noticing fast and not jumping at noise:

WindowGood forWatch out for
5 to 15 minOutages, latency spikes, error bursts.On light traffic the window is often empty, so the alert sits in no data.
1 to 6 hoursDegradation: costs creeping, quality sliding.Slow to notice a hard outage.
24 hours or moreBudgets and daily volumes.One bad hour barely moves it.

Pick the shortest window that still holds a decent number of rows on a normal day.

Notify

The Notify part of the form: the message with its variables as tags, the variables to add below it, and Send to with Slack or Webhook and a channel picker.
FieldWhat it is
MessageFilled with a default. Click or drag a variable into it. See the message.
Send toSlack: pick a channel from your connected workspace. Webhook: an https:// URL that receives a JSON POST. An alert needs one of the two.

A worked example

Checkout charge step is failing

FieldValue
ScopeSpan
Measure, aggregationError rate, rate
FilterTool is charge_card
Conditionabove 10% over the last 15 minutes
Send to#eng-oncall

Every minute Trodo counts the charge_card spans in the last 15 minutes and works out what share of them errored. If that is over 10% with at least 5 spans to judge from, it posts to #eng-oncall once, and stays quiet until it has recovered and crosses again.

Editing, pausing and deleting

On an alert's page: Edit, Delete, and Pause or Start. In the list, tick alerts to Enable, Disable or Delete several at once.

Editing only the limit, operator, name, message or destination keeps the alert's last reading and judges it against the new limit; if that now crosses, the alert fires on the next minute. Changing what is measured (scope, measure, aggregation, filter, window or eval) drops the old reading and, if the alert is on, reads the new number straight away.

A paused alert isn't evaluated: no readings, no firings, no agents started. Deleting an alert deletes its history too; pause it if you might want it back.

On this page