Skip to content
telemetry.dev
Esc
↑↓navigate↵open⌘Jpreview
On this page

Alerts

Get an alert by email, Slack, Discord, or webhook when model cost, traces, model or tool failures, eval scores, ingestion errors, or quota usage need attention.

Alerts check your telemetry every 5 minutes and tell you when something needs attention: model cost heading over budget, a trace that might be an agent loop, a burst of failed model or tool calls, a drop in the pass rate of an evaluator, or ingestion that is failing or running out of quota.

There are two places to set them up:

  • Project alerts cover cost, traces, model and tool calls, eval scores, and ingestion errors for one project. They go to email, Slack, Discord, and webhooks. Select Alerts in the project sidebar. The page has three tabs: Rules, History, and Destinations.
  • Workspace alerts cover quota and the mix of data the whole workspace sends. They go to email. Open Workspace settings, select Usage in the settings sidebar, and go to the Alerts section.

Workspace owners and admins can create and change alerts. Other members can see the alerts but cannot change them. Alerts are available on every plan.

Turn on an alert

The Rules tab lists every kind of project alert, and the workspace’s Alerts section lists the workspace alerts. Each row says in one sentence when the alert opens.

To turn an alert on, select its switch. It starts with the defaults listed below and checks within 5 minutes. Monthly budget has no default budget, so its switch opens the settings instead; enter a budget and select Turn on. Eval score drop has no default evaluator, so its switch also opens the settings. A project with no alerts also shows Turn on 6 alerts, which turns on six recommended alerts with their default limits. A project that already has other alerts and a destination, but no Tool errors alert, shows owners and admins New: Tool errors; select Turn on Tool errors to add it with its defaults and the project’s email recipients. Adding it does not change the other alerts. Turning Tool errors off removes the prompt.

To change an alert’s settings, select its row on the Rules tab, or its name in the workspace’s Alerts section. Edit the fields under Alert when and select Save changes. Current data runs the alert against your current telemetry and says whether it would alert now (Would alert now, All clear now, or Needs more data), with the measurement an email would report. It sends no email.

Turning the switch off stops checks and email but keeps the settings and history. To delete a project alert and its history, select Remove at the bottom of its panel, then Remove alert.

On the Rules tab, the Status column shows each alert’s status:

  • Off: the alert is not checking.
  • Checking: the alert is on and has not been checked yet.
  • All clear: nothing is wrong right now.
  • Needs more data: the alert does not have enough history to decide yet. See Needs more data.
  • Alerting: something is wrong right now. Ongoing alerts also appear at the top of the project’s Alerts page, each with a View alert button.

The Last 7 days column shows how many times the alert went off in the last 7 days.

Email recipients

Every alert on a page emails the same list of addresses. For a project, the list is on the Destinations tab. For the workspace, owners and admins select Destinations in the Alerts section. Select Add destination and enter an Email address to add one, or select Remove in an address’s row menu. A change updates every alert on the page. When the page has no alerts yet, the list starts with your own address. Leave it empty to record alerts on the page without sending email.

Workspace members with a verified email get alerts right away. Any other address has to confirm first. When you add it, or when you turn on the page’s first alert if none is on yet, it gets an email titled “Confirm alert emails from telemetry.dev”. The recipient selects Review and confirm, then Confirm alert emails. The link expires after 7 days.

Until an address confirms, it gets no alert email, and its row shows Not confirmed. To ask again, for example after the link expired, select Resend email. It sends the email again to every address that has not confirmed. Addresses outside the workspace can unsubscribe from a link at the bottom of each alert email. To stop alerts for a member, remove their address from the list.

When telemetry.dev sends an email, it checks each address again. An address stops getting alerts when its owner leaves the workspace or unsubscribes.

Slack, Discord, and webhooks

A project’s alerts can also post to a Slack channel, a Discord channel, or an HTTPS endpoint of your own. Every alert of the project goes to each of these destinations as well as to its email recipients.

To add one, owners and admins open the Destinations tab of the project’s Alerts page, select Add destination, and choose a type:

  • Slack: create an incoming webhook for the channel in Slack. Paste its Webhook URL, which starts with https://hooks.slack.com/services/, and enter the Channel name to show in the list.
  • Discord: in the channel settings, open Integrations, then Webhooks, and create a webhook. Paste its Webhook URL, which starts with https://discord.com/api/webhooks/, and enter the Channel name.
  • Webhook: enter the URL of your endpoint. It must use HTTPS and resolve to a public address. telemetry.dev then shows a signing secret that starts with whsec_. Copy it, because it is shown only once. See Check a webhook signature.

Anyone who has a Slack or Discord webhook URL can post to its channel, so telemetry.dev stores the URLs and signing secrets encrypted and never shows them again. The list shows the channel name you entered. For a webhook it shows the host name with only the last 4 characters of its first part, the port, and the last 4 characters of the path, such as https://…ooks.example.com/…a9f2 or https://…k3x9.m.pipedream.net, because some services put a token in the first part of the host name. An IP address, localhost, a host such as example.com that has no part before its domain, or a first part of 4 or fewer characters is shown whole, and a token in a later part of the host name still shows. To change a URL, remove the destination and add it again. To remove a destination, select Remove in its row menu. A project can have up to 10 Slack, Discord, and webhook destinations.

A Slack or Discord message has the alert title and the same sections as an alert email, with an Open in telemetry.dev link to the page to investigate and a View alert link to the alert’s page. Messages mention nobody, even when telemetry quotes text such as @everyone.

Webhook requests

Each notification is a POST request with a JSON body and the content-type: application/json and user-agent: telemetry.dev-alerts/1 headers:

{
  "type": "alert.opened",
  "reminder": false,
  "alert": {
    "id": "8f2c1a4e-3b7d-4c9a-9e61-0d5b2f7a8c31",
    "url": "https://telemetry.dev/o/org_4b1e/p/6a0c2d91-7f3e-4b8a-a5c2-1e9d4f6b8a20/alerts/8f2c1a4e-3b7d-4c9a-9e61-0d5b2f7a8c31",
    "title": "Possible agent loop in support-agent",
    "whatChanged": "One trace cost $3.82.",
    "comparedWith": "The limit is $2.00.",
    "whyItMatters": "It used 18 times the usual spend of a trace.",
    "likelyCause": "The search_orders tool ran 41 times in one turn.",
    "investigateUrl": "https://telemetry.dev/o/org_4b1e/p/6a0c2d91-7f3e-4b8a-a5c2-1e9d4f6b8a20/traces/4bf92f3577b34da6a3ce929d0e0e4736"
  }
}
Field Value
type alert.opened when the alert opens and for each reminder, alert.resolved when it resolves.
reminder true on the alert.opened that telemetry.dev sends again, at most every 6 hours, while the alert stays open. false otherwise. A destination added since, or one whose earlier request failed, can get a reminder as its first request for an alert. To open one incident per alert, open one for each new alert.id, and use reminder only to avoid paging again.
alert.id The ID of the alert. Its reminders and its resolved notification have the same ID.
alert.url The alert’s page in telemetry.dev.
alert.title The alert title. A reminder’s title starts with Reminder: .
alert.whatChanged, alert.comparedWith, alert.whyItMatters, alert.likelyCause The sections of the alert email.
alert.investigateUrl The page to start from, the same as the Investigate button of the email.

New fields can be added to the body, so ignore fields you do not know. Each request also has these headers:

Header Value
webhook-id The ID of the delivery. It stays the same when telemetry.dev sends the delivery again, so you can use it to drop duplicates.
webhook-timestamp When this request was sent, in Unix seconds.
webhook-signature v1, followed by the base64 signature of the request.

Answer with any 2xx status within 10 seconds. telemetry.dev does not follow redirects.

Check a webhook signature

The signature follows the Standard Webhooks specification, so its libraries can check it. For example, with the standardwebhooks package for Node.js:

import { Webhook } from "standardwebhooks";

const webhook = new Webhook(process.env.ALERTS_SIGNING_SECRET); // whsec_...

// rawBody is the request body exactly as received, before JSON parsing. verify throws when the
// signature does not match or the timestamp is more than 5 minutes off.
const event = webhook.verify(rawBody, {
  "webhook-id": request.headers["webhook-id"],
  "webhook-timestamp": request.headers["webhook-timestamp"],
  "webhook-signature": request.headers["webhook-signature"],
});

To check the signature without a library:

  1. Take the part of the signing secret after whsec_ and decode it from base64. This is the key.
  2. Compute the HMAC-SHA256 of <webhook-id>.<webhook-timestamp>.<body> with the key, where <body> is the raw request body.
  3. Compare the result with the base64 value after v1, in webhook-signature, using a constant-time comparison. The header can hold several signatures separated by spaces; accept the request if one of them matches.
  4. Reject the request if webhook-timestamp is more than 5 minutes away from your clock, so that a recorded request cannot be sent again later.
import { createHmac, timingSafeEqual } from "node:crypto";

function isFromTelemetryDev(secret: string, headers: Record<string, string>, rawBody: string) {
  const id = headers["webhook-id"];
  const timestamp = headers["webhook-timestamp"];

  if (Math.abs(Date.now() / 1000 - Number(timestamp)) > 5 * 60) return false;

  const key = Buffer.from(secret.slice("whsec_".length), "base64");
  const expected = createHmac("sha256", key).update(`${id}.${timestamp}.${rawBody}`).digest();

  return headers["webhook-signature"].split(" ").some((part) => {
    const [version, signature] = part.split(",");
    const received = Buffer.from(signature ?? "", "base64");

    return version === "v1" && received.length === expected.length && timingSafeEqual(received, expected);
  });
}

Failed deliveries

When a request to Slack, Discord, or a webhook times out, cannot connect, or gets a 408, 429, or 5xx answer, telemetry.dev sends it again after 1 minute, and then waits twice as long each time, up to 1 hour, for at most 8 tries. A Retry-After header can ask for a longer wait, up to 1 hour. Any other answer, such as 401, 404, or a redirect, fails the delivery at once.

Each Slack, Discord, and webhook destination gets its notifications one at a time, oldest first, so an alert’s opening, reminders, and resolution arrive in order. While a delivery waits to be sent again, later notifications to the same destination wait behind it. A notification that is still not sent 24 hours after it was queued fails without another try, and the alert’s Timeline shows it as failed with “Not sent within 24 hours of being queued”, followed by the last error if an earlier try failed. Email is not limited this way, and one alert’s email does not wait behind another’s.

After 3 failed deliveries in a row, a Slack, Discord, or webhook destination shows Failing on the Destinations tab, with the last error, such as “Slack answered 404: no_service” or “The webhook did not answer within 10 seconds”. A delivery that is retried counts once, when it fails for good. The next delivery that succeeds sets the destination back to Active. A notification that waited more than 24 hours, was too large to send, or that telemetry.dev could not process does not count.

The Timeline of an alert’s page shows each delivery, for example “Slack message sent to #oncall”, “Webhook to https://…ooks.example.com/…a9f2 is waiting to send”, or “Discord message to #alerts failed”. Rarely, a notification arrives twice; a webhook then gets the same webhook-id both times.

Project alerts

Monthly budget

Settings: Monthly budget in USD, and the Environment to watch (default production).

Opens when the environment is on track to spend more than the budget this month. The projection adds the cost so far this month to the last 24 hours’ spending rate carried to the end of the month, so a busy day moves it sooner than an average over the whole month would. Nothing is projected during the first 24 hours of a month. Months follow UTC.

For example, take a $500 budget in a 31-day month. By the end of the 10th, $200 is spent, $24 of it in the last 24 hours. The projection is $200 plus $1 an hour for the remaining 21 days, which is $704, so the alert opens.

When spending passes the budget, you get one more email saying so. It has no reminders. The projection also stops once the budget is passed, so an overspent month does not keep emailing you.

Cost per trace jump

Settings: Environment (default production).

Opens when model cost per successful trace in the last hour is at least 1.5 times its usual level for the last 30 days, is outside its usual variation, and the increase adds at least $5 a day. When the hour has fewer than 100 successful traces, the rule uses the last 6 hours.

Agent loop

Settings: Cost limit per turn in USD (default $2), and Raise the limits when turns in this project are usually large (on by default).

A runaway trace is often an agent stuck in a loop, so the rule checks both cost and span count. It opens when a trace that finished in the last hour costs more than the cost limit or has more spans than the span limit. Traces are grouped by agent.

Limit Raising the limits off Raising the limits on
Cost Cost limit per turn The higher of Cost limit per turn and 3 times the project’s 99th percentile trace cost
Spans 30 The higher of 30 and 2 times the project’s 99th percentile span count

The baseline that raises the limits comes from the 6 hours before the last hour, or the 24 hours before it when the project had fewer than 100 traces. The baseline only raises the limits, for projects whose traces are usually large. It never adds alerts.

Model errors

Settings: Environments, separated by commas (default production), and Minimum calls (default 50).

Opens when calls to one provider and model fail with the same error type often enough: at least 10 failures, a failure rate above 5%, and at least 3 times the usual rate. When the last hour has fewer calls than Minimum calls, the rule uses the last 6 hours.

A provider and model without enough history to have a usual rate, such as a model you just started using, opens when it has at least Minimum calls calls, at least 10 failures, and half or more of its calls fail.

Investigate opens the failed spans of the last 7 days for that provider, model, and operation in the project’s traces page. A provider or model that was not recorded is left out of the filter.

Tool errors

Settings: Environments, separated by commas (default production), and Minimum calls (default 50).

Watches execute_tool spans, grouped by tool name and error type. It counts failed tool calls even when the model calls or the overall trace succeed. If a span has no tool name, the rule uses its span name.

The rule needs at least Minimum calls calls to the tool. It opens when at least 10 fail with the same error type, the failure rate is above 5%, and that rate is at least 3 times its usual level. It uses the last completed hour, or the last 6 completed hours when the hour has too few calls. The comparison uses hourly samples from the preceding 30 days, excluding the hours being evaluated.

Without at least 7 comparable hours of history, the rule opens only when at least half of the tool’s calls fail with the same error type, still subject to the call and failure minimums. A single failed tool call does not trigger it.

The email names the tool and error type and reports failed calls and affected traces. Its likely cause compares with the tool’s earlier calls in the watched environments over the last 30 days:

  • When the tool has no earlier calls, the tool may be new, so the email suggests checking its first failed calls for input or configuration errors.
  • When the tool has earlier calls but none failed with this error type, the error is new for the tool, which usually points to a recent deploy or a change in the tool’s input, permissions, or a service it calls.
  • When the tool failed this way before, the email says how often and suggests checking whether a service the tool calls is degraded or rate limited.

Reminders repeat the likely cause of the opening email. Investigate opens that tool’s failed spans of the last 7 days in the project’s traces page.

Ingestion errors

Settings: Minimum occurrences (default 3, at most 100).

Opens when telemetry.dev records at least that many diagnostics with the same diagnostic code within 5 minutes, from API keys for the same environment or from unscoped keys. It counts recorded diagnostics, not requests. Quota rejections are covered by the workspace’s Quota running out alert instead.

Missing prices

Settings: Minimum calls (default 100), and Minimum priced share in percent (default 90).

Opens when fewer than the minimum share of model calls with token usage have a cost. When the last hour has fewer calls than Minimum calls, the rule uses the last 6 hours. A call usually has no cost because telemetry.dev has no price for its model; see Cost.

Eval score drop

Settings: the Evaluator, the Environment (default production), the lowest pass rate in percent (default 85), and Minimum scored traces (default 50).

Watches the scores of one pass or fail evaluator on traces. Read Evaluators. The rule counts the traces that started in the last 6 hours and got a score with a value from the evaluator. A trace fails when one of its scores from the evaluator is a fail. The scores of experiment items do not count.

The rule opens when the pass rate of these traces is less than the limit. With fewer scored traces than Minimum scored traces, the rule shows Needs more data. If someone deletes the evaluator, or changes it so that it no longer gives pass or fail scores of traces, the rule also shows Needs more data and tells you to select a different evaluator.

Investigate opens the traces of the last 7 days in the environment that have a fail score from the evaluator.

Workspace alerts

Quota running out

Settings: Warning: hours until the allowance is used (default 72), and Critical: hours until ingestion can stop (default 24).

The rule uses the workspace’s average ingestion rate over the last 6 hours. It opens when:

  • The workspace is likely to use its monthly allowance within the warning number of hours.
  • On the Free plan, ingestion is likely to reach the hard stop within the critical number of hours.
  • On a paid plan, projected usage for the month is over 125% of the allowance.

It also emails once a month when usage passes 80% and 100% of the allowance, and right away when the ingest API rejects a batch because of the monthly cap or a gift budget. Rejection emails go out at most once every 5 minutes. For plan allowances and the hard stop, see Plans and billing.

Data mix shift

Settings: none. The rule compares with the workspace’s history.

Opens when spans, log records, or metric points suddenly make up most of the workspace’s ingestion. In the last hour, one of them has to be more than half of all records, at least 500 records, more than 3 times its usual count for that hour of the day, and a larger share than usual.

When an alert opens and resolves

Each check reports every rule as breached, healthy, or still needing more data.

How an alert opens and resolves

  1. A breached check. One is not enough to open the alert.
  2. Breached check 2 in a row: the alert opens and the opening email goes out.
  3. Time passes while the alert stays open. Every 6 hours a reminder email goes out.
  4. Still breached: reminder email.
  5. Healthy check 1 in a row. The alert stays open.
  6. Healthy check 2 in a row. The alert stays open.
  7. Healthy check 3 in a row: the alert resolves and the resolved email goes out. For the next 30 minutes, a new alert from this rule is recorded but its opening email is held.
Each dot is one check. The break skips ahead 6 hours, the time between reminders, so the strip is not to scale there. The alert opens on the second breached check in a row and resolves on the third healthy check in a row.
  • Opening. An alert opens after two breached checks in a row, about 10 minutes. Some opens are immediate: a runaway trace over the cost limit, a rejected batch, and ingestion errors whose HTTP status means a retry would fail too (anything other than 429, 502, 503, and 504).
  • Reminders. While an alert stays open, recipients get a reminder every 6 hours.
  • Resolving. An alert resolves after three healthy checks in a row, about 15 minutes. Recipients get a resolved email if they got the opening email.
  • Quiet period. For 30 minutes after an alert resolves, the same thing opening again still appears on the page, but its opening email is held. It goes out on the first check after the 30 minutes if the alert is still breached. An alert that resolves before then sends no email. The quiet period applies only to the thing that resolved: a different environment, model, or trace opening in that time is emailed as usual. Immediate opens are not held.

A rule can have several alerts open at once, one for each thing it watches: each environment for a budget, each provider and model for model failures, each tool and error type for tool failures, each diagnostic code and API key environment for ingestion errors. An Eval score drop rule watches one evaluator in one environment, so it has at most one open alert.

Needs more data

Rules that compare with your usual traffic need history before they can decide. Cost per trace jump, Model errors, and Tool errors need at least 7 comparable hours from the last 30 days, and Data mix shift needs 7 samples of the same hour of the day. Missing prices needs at least Minimum calls calls in the last 6 hours, Eval score drop needs at least Minimum scored traces scored traces in the last 6 hours, and Monthly budget needs the first 24 hours of the month. Until then the rule shows Needs more data, except that Model errors and Tool errors can open without history when half or more of the calls fail, subject to their count minimums. An existing model or tool failure alert can recover when fewer than 10 calls fail, including when traffic stops.

A rule with nothing to judge is All clear, not Needs more data. For example, Model errors is all clear when no calls are failing at all.

Checks leave out the last 3 minutes of data, so telemetry that arrives a little late is counted on the next check. The hourly rules use the last completed hour, so their results change about once an hour.

Alert emails

Alert emails come from telemetry.dev alerts <alerts@mail.telemetry.dev>. The subject is the alert title, such as “Monthly cost budget at risk for production” or “Ingestion errors: invalid_json from the production key in Checkout”. Reminders start with “Reminder:” and resolved alerts with “Resolved:”.

Each email has these sections:

  • What changed: the measurement that broke the rule.
  • Compared with: the limit or usual level it was compared with.
  • Why it matters: what the problem means for your application or bill.
  • Likely cause: the model, provider, agent, or error that contributed most, when telemetry.dev can tell.

The Investigate button opens the page to start from: the project overview, the trace itself for a runaway trace, the failed spans of the model or tool for model and tool errors, the project’s Setup page for ingestion errors, the traces with a fail score of the evaluator for an eval score drop, or the workspace’s Usage or Billing settings for quota. When the rule watches one environment, the spans are filtered to it. A name longer than 128 characters is left out of the filter.

Alert history

The History tab of a project’s Alerts page lists alerts newest first, 25 to a page. Select All, Open, or Resolved to filter them. Each row shows the alert, what happened, when it started, how long it lasted, and its status. Select View alert to open the alert’s page, which shows What happened, the Numbers behind it, and a Timeline. Use the arrows below the table to see older alerts.

Limits

Limit Value
Alert rules 100 per workspace, counting workspace and project rules
Recipients 50 per rule
Slack, Discord, and webhook destinations 10 per project
Alert emails 1,000 per workspace in a 24-hour window, including confirmation requests
Notifications per rule per check 5 alerts

Saving a rule over the first two limits fails with an error, and so does adding an eleventh Slack, Discord, or webhook destination. The notification limits hold notifications back instead, and the alerts still appear in the history. A notification that the email limit holds back waits for every destination, including Slack, Discord, and webhooks. A held opening email goes out on a later check if the alert is still breached; an alert that recovers first resolves without email. An alert whose opening email was sent stays open until its resolved email can be sent.

Last updated on November 2, 2026

Was this page helpful?