Skip to content

Rules

A rule watches one measurement and matches when a reading, or a window of readings, breaks a condition you set. A disk past 90%, a backup that copied nothing, checkout getting slower after a release, fewer sales this hour than last. What a match does is up to the rule’s Actions: open an incident, send a notice, or only record it.

Manage rules in a monitor’s Rules tab. A measurement appears there once the monitor’s Signal has received it.

The charts on this page use made-up readings to show how each rule behaves. Each expected value, range and match is worked out with the same calculation the rule uses.

  1. Open the monitor, go to Rules and press Add rule to open its editor page.
  2. Under Measurement, choose a measurement or enter its key.
  3. Under Alert when it, choose a condition. More rule types includes ratios, recent-history comparisons and Window aggregation; see Fixed windows.
  4. Fill in the rule’s settings.
  5. Read the preview, then press Save rule. Cancel discards the unsaved edit.

Full-page rule editor with condition and preview

Each editor saves one rule. The input settings link opens a page for value behavior, missing-value handling and the unit label. The alert destination applies to all rules on the Monitor. You can create a destination without leaving the editor; a new webhook signing secret is shown once. Existing rules can also use a custom alert message, previewed with the latest stored reading.

To find out when… Use
a reading goes over a safe level Maximum
a reading drops under a safe level Minimum
something appears that should be zero Must stay at zero
something is zero that never should be Must never be zero
a reading jumps from the one before Absolute change, Percentage change
one measurement is too large or small next to another Ratio maximum and minimum
a metric moves away from its recent normal Change from recent average
a rising or falling metric leaves its usual path Change from recent trend
a reading is unusual for how much the metric has been varying Unusual variation
a total, average, count, low or high over a period crosses a limit or changes Window aggregation

These rules check each reading when it arrives.

A new Monitor starts counting at the first window on its schedule that starts after you create it. A Monitor evaluated every minute starts at the next whole minute. One evaluated every 5 minutes starts at the next 5-minute mark, such as 10:05. Data sent before then stays on the Signal, but this Monitor’s rules don’t check them. This applies to every rule on this page, including the change, ratio and recent-history rules. See When a new Monitor starts counting.

Use it when you know the highest safe value. Any reading above it matches. A reading equal to it doesn’t.

For example, a database server’s disk. Past 90% full, it needs attention before writes start failing.

Disk usage on a database server climbs from 72% to 94% over six hours. The dashed limit is at 90%. The 90% reading doesn’t match; the 91%, 93% and 94% readings match.

Set Highest allowed value in the measurement’s own unit.

Use it when you know the lowest safe value. Any reading below it matches. A reading equal to it doesn’t.

For example, a web pool that needs at least three healthy servers to handle its traffic.

Healthy web servers, read every 5 minutes, usually number 4. The dashed limit is at 3. Readings of 3 don’t match; readings of 2 and 1 match.

Set Lowest allowed value in the measurement’s own unit.

For a count that should always be zero. Any other reading matches.

For example, a critical error counter, where a number above 0 means a system is down.

Critical errors reported every 10 minutes are zero except 2 at 09:00 and 5 at 09:10. Those two readings match.

For a reading that should always have something in it. A zero matches.

For example, a nightly backup that reports how many files it copied. Zero means it ran and saved nothing.

A nightly backup copies about 1,200 files every night except Friday, when it reports 0. Friday’s reading matches.

Compares each reading with the one before it and matches when they differ by more than Largest allowed change, up or down. The amount is in the measurement’s own unit. Use it to catch sudden jumps at any level.

For example, a freezer that holds −18 °C. A jump of more than 4 °C between two readings means the door was left open or the sensor failed.

Freezer temperature sits near −18 °C, jumps to −12 °C (a change of 6.1, which matches), stays near −12 °C without matching, then falls back to −17.5 °C (a change of 5.6, which matches).

Each reading is compared only with the reading before it. Once the freezer settled at −12 °C, the next readings didn’t match. Add a Maximum rule to catch a freezer that stays warm. The first reading has nothing to compare with, so it isn’t checked.

The same comparison as a percentage of the reading before, up or down. Enter 50 for 50%. Use it when the size of a jump matters more than its unit, or when the level grows over time.

For example, an hourly catalog sync that reports about 12,500 products. A swing of more than 50% between syncs means a broken import, not real change.

An hourly catalog sync reports about 12,500 products, then 5,830 (−53%, matches), then 12,520 (+115%, matches).

Both directions match, so the recovery matched too. A reading that follows a zero can’t be expressed as a percentage, so it isn’t checked.

These divide this measurement by another one, chosen in Compare with measurement, and compare the result with a limit. Use a ratio when a raw number means little on its own: 40 errors is fine out of 2,000 requests and bad out of 400.

Send both values in the same reading, for example {"errors": 40, "requests": 400}. A reading without the second measurement, or with it at zero, isn’t checked. Ratio maximum matches above its limit and Ratio minimum below it.

For a Ratio maximum, take an API’s error rate. Errors stay between 30 and 40 a minute all evening, so a limit on errors alone never fires. But traffic falls overnight, and the same errors become a much larger share of requests.

Errors per minute stay between 30 and 40 while requests fall from 2,000 to 400. Errors divided by requests rises from 0.015 to 0.1. The limit is 0.05; the readings at 00:00 (0.07) and 01:00 (0.1) match.

For a Ratio minimum, take email delivery. Each batch reports how many messages it sent and how many arrived. Batches vary in size, so watch the share delivered.

Delivered divided by sent is about 0.99 for most hourly batches. At 12:00, 1,001 of 1,100 were delivered (0.91) and at 13:00, 1,170 of 1,300 (0.90). Both are below the 0.95 limit and match.

A fixed limit needs you to know the right number in advance. These three rules work out the expected value from the metric’s own earlier readings, using fixed calculations. They’re marked Advanced in the rule list.

They share these settings and behaviors:

  • History weighting time (seconds) sets how quickly older readings lose influence. The starting value, 3600, halves their influence every hour. Lower values follow changes faster. Higher values keep the comparison steadier. Enter 60 to 604800 seconds (1 minute to 7 days). The API field is halfLifeSeconds.
  • Waiting for history. A rule needs at least three earlier readings spanning the weighting time before it can match. With 3600, that’s an hour, shown shaded in the charts below. A gap longer than four times the weighting time restarts the wait, and so does changing it. Pause or maintenance clears the history.
  • Each reading joins the history after it’s checked, including readings that match. A lasting change stops matching once it becomes the new normal.
  • Alert direction chooses which side matches: above, below, or either direction.
  • A reading matches only when it differs by more than the allowed amount. Exactly the allowed amount doesn’t match.

Only readings with a usable numeric value join the history. Missing values follow Input settings. Treating a missing value as zero adds a zero reading.

Use it to catch a metric moving away from where it has been, when no fixed limit is close enough to notice.

For example, checkout usually responds in about 180 ms. After a release it settles around 245 ms. That’s far below any sensible Maximum, such as 500 ms, and it’s still a slowdown worth knowing about.

Checkout response time, read every 5 minutes, hovers around 180 ms. The rule waits for the first hour. A release at 14:00 lifts readings to about 245 ms, above the dashed line at the recent average plus 40 ms, and they match. The recent average rises as slower readings join the history, and matches stop once 245 ms is normal.

  1. Choose checkout_ms under Input and Change from recent average under Rule type.
  2. Set Allowed change from average to 40. The metric is in milliseconds, so this allows 40 ms. Choose the smallest change you’d act on. There is no universal default.
  3. Set Alert direction to Above the recent average to catch slowdowns.
  4. Start with History weighting time (seconds) at 3600.
  5. Choose the rule’s Actions, read the preview and press Save rule.

In the chart, the solid line is the recent average of earlier readings and the dashed line is 40 ms above it. The release pushed readings over the dashed line. Each slower reading also joined the history, so the average climbed. The rule matched 8 readings between 14:00 and 14:45, then stopped. With a weighting time of 900, the average catches up faster and the same slowdown matches 3 readings, between 14:00 and 14:10.

Raise the allowed change if ordinary ups and downs match too often. Lower it to catch smaller changes. Use Maximum instead if every response above 500 ms must match, even after slow responses have become common.

Use it for a metric that’s supposed to keep rising or falling. A fixed limit would need moving every week, and an average always trails behind. This rule predicts where the line should be at each new reading and matches when the reading strays too far from it.

For example, a database grows about 3 GB an hour as customers use the product. That growth is expected. A runaway import that adds 12 GB in ten minutes isn’t.

Database size, read every 10 minutes, grows steadily from 400 GB. Readings follow the solid predicted line. At 08:40 the size jumps 12 GB above the prediction and matches. Two more readings match while the prediction catches up, then readings stay under the dashed line at the prediction plus 5 GB.

  1. Choose database_gb under Input and Change from recent trend under Rule type.
  2. Set Allowed change from trend to 5. The metric is in gigabytes, so this allows a difference of 5 GB from the prediction. Choose an amount in your metric’s units. There is no universal default.
  3. Set Alert direction to Above the predicted trend. Choose Below the predicted trend for unexpected drops, or Either direction for both.
  4. Start with History weighting time (seconds) at 3600.
  5. Choose the rule’s Actions, read the preview and press Save rule.

Steady growth stays near the prediction. At 08:40 the reading is 12 GB above it and matches. The jump then joins the history and steepens the line, and the next two readings still match while it catches up. The prediction is a line fitted to earlier readings, newer ones weighted more, extended to the time of each new reading.

Raise the allowed change to accept larger departures. Lower it to catch smaller ones. Use Maximum instead if a size above some limit must always match, even when the trend predicted it.

Use it when the amount a metric wobbles changes over time, so no single allowed change fits. The allowed range is the recent average plus or minus a multiple of the recent spread. It widens when readings are noisy and narrows when they’re steady.

For example, a payment provider answers in about 150 ms. During the evening rush, readings swing 30 ms either way. Later they barely move, and a 180 ms response that would be ordinary in the rush means something is wrong.

Payment provider response time, read every 5 minutes. During the rush the pale allowed range around the recent average is wide, and a 186 ms reading stays inside it. After the rush ends at 18:30 the range narrows. At 20:45 a 180 ms reading falls outside it and matches.

  1. Choose payment_ms under Input and Unusual variation under Rule type.
  2. Start with Variation tolerance at 3. This allows up to three times the recent spread either side of the recent average. It has no unit.
  3. Keep Alert direction at Either direction to catch increases and decreases. Choose Above the recent average to catch only slowdowns.
  4. Start with History weighting time (seconds) at 3600.
  5. Choose the rule’s Actions, read the preview and press Save rule.

During the rush the range is wide, and 186 ms at 17:30 stays inside it. Once the rush ends, quiet readings replace noisy ones and the range narrows. At 20:45, 180 ms is outside it and matches, though it’s lower than the rush reading that didn’t. A fixed Maximum can’t tell those two apart.

The spread is the standard deviation of earlier readings, newer ones weighted more. 3 is a starting point, with no guarantee of how often a rule matches. Raise it for fewer matches. Lower it to catch smaller departures.

If earlier readings are all identical, the spread is zero. Then any change in the chosen direction can match once the rule has enough history. Use Change from recent average to allow a fixed amount of change from a steady value.

Each rule has its own Actions settings. Choose whether it opens incidents, sends notices, does both, or only records its results.

New rules start with Create incidents turned on. An incident is always bad news. Set:

  • First occurrence: the severity when the rule first matches.
  • Sustained occurrences: the severity once matching continues.
  • Consider it sustained after: a number of consecutive matching evaluations or a length of time.

A latest-value rule evaluates each reading as it arrives. A window rule evaluates each completed window once. A window that can’t be scored, or that you skip, doesn’t close an incident. One incident covers all of a monitor’s rules, so a clear reading from one rule can’t close an incident that a window rule still holds open.

Severity Effect
None Records the violation. No incident at this severity.
Information Opens an incident at information severity.
Warning, Critical Opens an incident at that severity.

In the same Actions section, set:

  • Matching notices: choose Each matching event for a notice at every matching evaluation, When the condition starts for one notice until a ready, nonmatching evaluation resets it, or No separate notice.
  • Outcome: with Create incidents turned off, mark the notice as Good news or Bad news. With incidents turned on, notices are Bad news and this selector is hidden.
  • Notice urgency: choose Information, Warning or Critical.

A completed window counts as one evaluation. These notice settings work with Create incidents turned off. For example, a signup-total rule can send good-news notices without opening incidents, while a response-time rule opens incidents when its window average is too high.

Choose where notices go and write their message in the monitor’s Settings.

Use a window rule when one reading means little and what matters is the total, average, count, low or high over a period. Choose Window aggregation under Rule type. The rule collects readings into fixed windows, works out one value when each window closes, and compares it with a limit or with the window before.

For example, a shop publishes {"items_sold": 2} for each purchase, with the number of items in it. Hourly sales go up and down, but if this hour sells less than half of last hour, checkout may be broken.

Each purchase publishes its item count, mostly 1 or 2. The rule adds them per hour: 37, 53, 43 and 13. Each total is compared with the hour before. Checkout breaks at 12:15, so the 12:00 hour is 70% below the 11:00 hour and matches.

The rule adds each hour’s values and compares the total with the hour before: +43%, −19%, then −70%, which is a drop of more than 50% and matches. Readings don’t need to arrive on a schedule. A reading containing {"items_sold": 3} adds three. You don’t need a separate event metric or a periodic empty check-in. See Sending data to a Signal.

Aggregation Value compared For example
Sum Total of the values. Items sold per hour.
Average Sample-weighted average of the values. Checkout time per 5 minutes above 800 ms.
Count (samples) Number of readings. Values are ignored. Sync job runs per day below 40.
Minimum Lowest value in the window. A best seller’s lowest stock level each day below 20.
Maximum Highest value in the window. Longest job queue each hour above 5,000.

For readings 1 and 3, Sum is 4 and Count is 2. The aggregation is a setting on the same measurement rule.

Average smooths out single readings. One slow checkout is noise. Five slow minutes is a problem.

Each checkout publishes its response time. One 2,600 ms checkout lifts its 5-minute window to an average of 689 ms, which doesn’t match. From 10:15 every checkout is slow and the window averages 1,083 ms, above 800, and matches.

Count (samples) counts readings and ignores their values. A sync job runs every 30 minutes and publishes how many rows it copied. Counting its runs per calendar day shows when it stops.

A sync job runs 48 times on Monday and Tuesday and 47 on Wednesday. On Thursday it stalls from 13:00 to 21:00 and runs 32 times, below 40, and the day matches.

Sum keeps an exact total of the accepted decimal values and rounds the completed result to a number once. If the completed total exceeds the supported finite numeric range, SignalSitter can’t score that window. We call it unready. It takes no incident or notice action, and it isn’t treated as an empty window.

  1. Name the alert and choose its Aggregation.
  2. Choose Window type. Exact duration uses Window (minutes), from 1 minute to 30 days. Calendar day runs from midnight to midnight in the monitor’s saved timezone, including 23- or 25-hour daylight-saving days. Choose an exact duration of 1,440 minutes when you mean exactly 24 hours.
  3. Under Compare, choose a threshold, absolute change or percentage change. Thresholds offer above, below, at least, at most, equal to and not equal to. Change compares the aggregate with the complete window of the same type before it. Daily totals compare neighboring local days without adjusting for daylight-saving length. Choose increase, decrease or both. A change must be strictly greater than the limit.
  4. For change, set Minimum previous-window samples:
    • It starts at 1. Raise it to skip sparse baselines.
    • If the previous window is unready, or has fewer samples, the window takes no incident or notice action.
    • A reading reporting three purchases is one sample for this floor.
    • Percentage change from zero is unready. Absolute change can compare with zero.
    • For signed values, percentage change divides the signed difference by the previous value’s absolute size.
  5. Choose When a window has no samples explicitly. See When a window is empty.
  6. Set Actions for incidents and matching notices, then press Save rule.

SignalSitter groups published readings by when it received them. The Monitor checks completed windows on its evaluation schedule. For example, a purchase sent at 10:58 and received at 11:02 belongs to the 11:00 window of an hourly rule. The publisher timestamp is available in reading history.

A new, edited or resumed rule starts with complete windows. Changes to one rule leave the other rules’ windows intact.

Set Monitor timezone in the monitor’s Settings. A monitor created in the dashboard starts with its creator’s browser timezone. Other clients can send timeZone at creation. Without it, the monitor uses UTC. Everyone shares the monitor’s rule boundaries, but chart labels and timestamps show in each viewer’s local timezone. Changing the monitor timezone starts affected window rules again. It doesn’t recalculate completed windows. Exact-duration windows keep their elapsed length across daylight-saving changes, so their local clock boundaries can shift. Window notices use the saved monitor timezone. Their structured API timestamp fields stay RFC 3339 instants.

To deduplicate retries across request IDs, publish the measurement in an event envelope with a stable event.id. Retrying that ID does not contribute again while its 24-hour dedupe record exists. Keep a sent-event journal for retries beyond that period and keep supplied timestamps unchanged on retries. Window rules use the same normalized values as other rules, including configured missing-value handling and counter deltas. Counter increases use the preceding window’s last retained value as a baseline.

Each finalized window uses the rule’s incident and notice actions. Choose notice destinations and messages in Settings. Several rules can watch the same input with independent windows, comparisons and actions. A window rule starts checking forward from activation. Use the preview to inspect retained windows before saving.

A window with no readings needs a decision, and there is no default. Treat as zero compares the value zero. Skip the window takes no incident or notice action.

For example, a busy shop wants to know about any hour with no purchases.

A rule matches hours with fewer than 1 purchase. The 13:00 and 15:00 hours have 14 and 11. The 14:00 hour receives nothing. With Treat as zero, 14:00 is compared as 0 and matches. With Skip the window, 14:00 is skipped and nothing matches.

Silence alone can’t tell zero activity from a broken publisher. Choosing zero accepts that ambiguity and can match, for example a decrease rule, during an outage. For Average, Minimum and Maximum, zero is a chosen substitute for missing samples, not an observed statistic. No periodic publishes are required. Existing publisher-activity policies can instead suppress windows with gaps longer than a configured timeout. Ordinary events and empty check-ins show the publisher is alive, not that the window is complete.

A change comparison also needs a usable window before it. A skipped window isn’t ready. With Minimum previous-window samples at its starting value of 1, a zero window has no samples to qualify for the next comparison.

For window rules, Preview on your data shows how the proposed condition evaluates over recent completed windows using the Signal’s retained receive-time data. The chart and table show each window’s aggregate and whether it matched. Local calendar days use the Monitor’s time zone. A live metric source can preview the completed windows it serves. You can save a valid rule before there is data to preview.

For latest-value rules, Preview on your data uses stored readings from the Monitor’s Signal. The chart shows the threshold and breach periods. The period selector filters the chart and breach list. The incident badges summarize the full replay snapshot. Previewing sends no notifications and does not predict the number of notices.

The preview updates as you edit. It keeps the history available when you opened the editor; Refresh with newer readings replaces that snapshot while preserving your proposed condition. Cancel discards the unsaved edit. You can save a valid rule before data arrives; it starts checking future readings. Changes do not rewrite past incidents.

When editing an existing rule, the alert-message preview uses its latest stored reading and explicitly shows missing fields. It does not invent a sample payload. If the rule saves but its destination or message update fails, the page keeps the successful rule and lets you finish the remaining save.

Press Edit on a rule’s row, change its condition and press Save rule. Cancel discards unsaved edits. Use Disable or Enable to pause or resume that rule, or Delete to remove it. These actions also show the proposed change before you apply it. Other rules keep their settings and counting windows. Resuming a disabled window rule waits for complete new windows.

A monitor can configure up to 16 measurements and up to 32 rules in total, on any plan. Your plan limits how many values one reading sent to the signal can carry, not how many a monitor uses. See Plans and limits.

A preview uses up to 400 recent readings. The time they cover depends on how often the monitor’s Signal receives them.