An alert rule says what to measure and when that counts as a problem. A rule can measure more than one query and combine them with a formula, and it can watch many groups at once, each with its own state. You create and edit rules under Alerting > Alert Rules.

Alert types

The first thing you choose is how the rule decides something is wrong: Most rules are Threshold rules. The other four compare a metric against its own history or its peers, so you do not have to pick a number that stays right as traffic changes.

Create an alert rule

Click Add Alert Rule on the Alert Rules page. The New Alert Rule page lets you start from a detection method, a data source or a template, and the form opens with that choice already made. You can change anything in the form afterwards. The same page has Import from JSON, for a rule you exported earlier (see Export and import rules), and Browse Templates (see Templates). The form walks through five steps. A finished step shows a Configured badge.
1

Choose Alert Type

Pick one of the five types above. The rest of the form changes to match, so a Forecast rule asks for a forecast horizon where a Threshold rule asks for a value.
2

Define Queries

Each query is one thing to measure, reduced to a single value per group:
  • Data source: the product the metric comes from, which you chose on the New Alert Rule page or which came with the template. The sources are Infrastructure, Processes, Kubernetes, APM, Trace Spans, Logs, Browser (RUM), Mobile RUM, Synthetics, Databases, Network Devices, Network, API Insights, SIEM and Custom Metrics.
  • Metric: what to read from that source. Most sources offer a list to pick from, and Metrics lists every one. Custom Metrics and Network take a metric name you type.
  • Aggregation: how the raw points become one number, such as avg, sum, count, min, max, unique count, or a percentile from p50 to p99. The choices depend on the metric.
  • Filter: narrows which series the query reads, for example env:production AND statusCode:500.
  • Group by: evaluates each value of these tags separately, up to three tags. See Watch each group separately.
A Threshold rule can have up to five queries. To alert on a ratio, click Add Query for the second one, then Add Formula and refer to both query names, such as (a / b) * 100 for an error rate. Every query in a rule must group by the same tags.
3

Set Condition & Evaluation

This step decides when a group moves to Alert or Warn, and over what window. See Conditions and evaluation for each setting.The preview chart beside the form replays the condition over recent data, so you can see whether the rule would have been noisy before you save it. See Preview the rule.
4

Configure Notifications & Automations

Choose who hears about state changes, how often, what happens automatically, and the rule’s Priority. See Notifications and incidents.
5

Name & Save

Give the rule a Name that reads well in a notification, such as Checkout p95 latency above 2s. Then set:
  • Description: what this rule watches and why it matters.
  • Tags: free-form labels. Tags are worth adding early, because a maintenance window scoped by tag covers every rule carrying it.
  • Runbook URL: a link shown on the rule and its alerts, so whoever responds knows what to do.
  • Lifecycle: Published, Draft or Archived. The lifecycle is a label for filtering the rules list. It does not stop a rule from being evaluated; disable the rule for that.
Click Validate to check the rule against the same checks the server runs when you save. It reads Valid once it passes. Then save a new rule with Create & enable, or with Create disabled to keep it from evaluating until you enable it. When you edit a rule, the button is Save changes.

Conditions and evaluation

Threshold condition

A Threshold rule reads “Alert when the reducer over the window is operator the threshold”, then asks for the values: When the metric is a duration, a size, a rate or a CPU amount, a unit picker sits beside the Alert threshold, so you can type 2 and pick seconds instead of typing 2000 in milliseconds. Sizes step by 1024 (1 GB = 1024 MB) and bit rates by 1000 (1 Gbit/s = 1000 Mbit/s). Recovery thresholds are under Advanced options.

Anomaly, Forecast, Rate Change and Outlier conditions

The other four types replace the thresholds with a condition of their own, which the form shows as a sentence you fill in: Anomaly, Rate Change and Outlier rules also ask how to raise it, as Critical (Alert) or Warning (Warn), because they produce one level rather than a warn and an alert level. A Forecast rule uses its Alert and Warn thresholds instead. The anomaly algorithms differ in how they learn the baseline: The forecast algorithms are Auto and Linear (a straight-line trend), Seasonal (a trend plus the typical value at each point of a cycle) and Fourier (a trend plus smooth repeating waves). A forecast learns from the last 30 days. Seasonality is the cycle the baseline or forecast follows: Auto, Hourly, Daily or Weekly. Agile, Auto and Linear only offer Auto. Robust, Adaptive, Seasonal and Fourier need a cycle, so they offer Hourly, Daily and Weekly. The history must cover at least four cycles, so a Weekly seasonality needs four weeks of history.
An Outlier rule compares the groups of one rule against each other, so its queries need a Group by. Without one there are no peers to compare, and saving is refused.

Evaluation window

The Evaluation window decides how much data each evaluation reads: Atatus picks how often to evaluate a rule from its window: A hold set in minutes, hours or days is rounded up to whole evaluations, which the form notes when a rule is checked less often than every minute. Each evaluation leaves out about the newest two minutes of data, so a minute that is still arriving is not scored. That is why an alert fires a couple of minutes after the data that caused it.

Custom schedule

A Threshold rule can run on a schedule instead of continuously, for a check that only matters at set times, such as a daily total. Click Add custom schedule next to the window, then choose:
  • Every day, Every week on the days you pick, or Every month on the First day of the month, the Last day of the month or Specific day(s).
  • The time to run at, and its time zone.
The form shows the schedule as a sentence, with the next three runs. Each run notifies while the result is not OK, so a scheduled rule has no hold, no reminders and no Forget groups that stop reporting for setting.

Advanced options

Click Advanced options for the settings most rules leave alone. The section opens by itself when a rule already uses one of them. Recovery thresholds (Threshold rules): an Alert recovery threshold and a Warn recovery threshold. A group stays in Alert or Warn until the value crosses back past these, which stops a value hovering on the threshold from flapping. Leave them empty to recover as soon as the value stops breaching. Evaluation options:
  • Delay evaluation by N seconds to skip partial trailing data: shifts the window further back, on top of the two minutes every rule already leaves out. Use it for data that reaches Atatus late.
  • Require a full window: a window with any empty bucket counts as No Data instead of being scored on what arrived.
  • Wait N seconds before evaluating a newly seen group (grouped rules): a host that has just booted is not judged on its first few readings.
  • Forget groups that stop reporting for (grouped rules): removes a group once it has been silent this long, instead of leaving it on the Alerts page.

When data stops arriving

A query that returns nothing is not the same as a query that returns a healthy number, so When data stops arriving decides what silence means: The after setting is the grace period: how many minutes or hours the data has to be missing first, so one missed report does not change the state.

Preview the rule

The preview beside the form charts the rule’s query over the page’s time range, with the thresholds drawn as bands:
  • Evaluated shows the value the rule would compare, after the window and reducer. Raw data shows the query as it comes in.
  • For a Threshold rule, Rule behavior with these thresholds counts how many times the rule would have changed state over the range, and marks each change on the chart. Pick Alerts, Warns, Recovers or No Data to mark only those.
  • Drag across the chart to zoom in. The page’s time range follows, and so does the preview.
  • Up to 10 groups are drawn.

Watch each group separately

Add a Group by to the queries and the rule evaluates every combination of those tag values on its own, with its own state, its own history and its own notifications. A CPU rule grouped by host alerts about the one host that is hot, rather than about an average that hides it. Grouped rules collect groups that come and go, so Forget groups that stop reporting for removes a group once it has been silent for the duration you set.
Group by no more than you need. Every group is evaluated and can notify on its own, so grouping by something high cardinality such as a URL or a user id turns one rule into thousands of alerts.

Notifications and incidents

Who hears about it

The message editor has Edit and Preview tabs, plus Add Mention and Add Variable to insert a handle or a variable. Without a message of your own, the notification names the rule, the group and the value.

What happens automatically

Under Incidents:
  • Declare an incident automatically when the group moves to Alert, to Warn, or to No Data. Without it, you declare incidents by hand from a firing alert.
  • Notify the recipients above when an incident is declared, separately from the state notification.
  • Resolve the incident when the group recovers. This is on by default.
  • After an incident resolves, don’t declare another for the same group for N minutes (30 by default). This keeps a metric that recovers and breaches again from opening a second incident for the same episode.
See Incidents for what happens once one is open.

Manage rules

Each rule’s row menu on the Alert Rules page has:
  • Edit. Changes apply from the next evaluation. Changing the query, condition, window or grouping resolves each group’s open incident with the reason Rule updated, because the incident no longer describes the same check. Turning grouping on or off also clears the rule’s existing alerts.
  • Clone, which creates a disabled copy and opens it for editing.
  • Mute… for 30 minutes, 1 hour, 4 hours, 12 hours, 1 day, 1 week, or until a specific time. A muted rule keeps evaluating but stops changing state and notifying until the mute ends. Use it when you know a rule is going to be noisy and a full maintenance window is more than you need.
  • Disable or Enable. A disabled rule is not evaluated.
  • Export, to download the rule as JSON.
  • Delete. The rule’s group states and state change history are removed with it, and its open incidents are resolved. If an SLO or a maintenance window still refers to the rule, the dialog lists them first.
Select several rows to Mute…, Export, Disable or Enable, Clone or Delete them together. Click a rule to open its panel. Test Rule runs it once over the current window as a dry run: nothing is recorded and nobody is notified. The panel has three tabs:
  • Overview: a chart for each group, filterable by state, showing the value the rule compared or the source data.
  • Configuration: the query, condition, evaluation, notification and detail settings.
  • History: a chart of state changes over the time range, and the events as a table or a timeline. State changes are kept for 90 days.

Export and import rules

Export shows the rule as JSON, which you can Download JSON or Copy. Exporting several rules gives one file with all of them. The export leaves out what Atatus manages itself, such as the rule’s id, its current state and its history, so the file can be imported again as a new rule. To import, click Import from JSON on the New Alert Rule page, then paste the JSON or choose a file of up to 5 MB. A file can hold one rule or a list of rules. Imported rules start disabled, so nothing fires until you enable them. Importing the same rule twice creates two copies. To manage rules from a script, see the alert rules API.