Skip to content
Alerts · Concept All levels

Alerting

How Sluicio alerting works end to end — the five health-check rule types, the firing/resolved lifecycle, notification channels and profiles, the routing ladder, webhook payloads, and maintenance windows.

SLSluicio team 10 min read Updated Jul 2026

Alert rules — shown as health checks in the app — watch your telemetry and notify you over email, Slack, webhook, and PagerDuty when something slips. Nearly everything alerting lives on the Alerts page, in four tabs (the exception is flow-completion rules, which are configured on the integration they watch):

  • Health checks - Firing now, one row per firing alert with its environment, the trace a stuck message is about, and ack/resolve; then every rule, firing ones on top, with the on/off toggle and search. A check firing in two environments, or a flow-completion rule with three stuck messages, shows as that many alerts.
  • Notification channels — the delivery targets and notification profiles.
  • Sent notifications — delivery history, filterable by service, integration, system, or check.
  • Maintenance — active and scheduled maintenance windows.

Every rule has a name, a severity (info, warning, or critical), and a condition over a trailing time window. There are five kinds:

Rule typeFires when
Metric checkAn aggregated metric value crosses a threshold
Log checkThe count of matching log lines is too high — or too low
Failed tracesToo many traces fail over the window
Response timep95 (or max) latency crosses a threshold
Traffic volumeFewer traces than expected arrive — a dead-man’s switch

Metric checks watch any metric you ingest. You pick the metric, an aggregation, a comparison (>, ≥, <, ≤, =, ≠), a threshold, and a window (1 minute to 24 hours). Optional attribute filters scope the check (say region=eu-north), and split by attribute turns one rule into an independent check per attribute value — the alert fires when any value breaches, and lists which. The aggregations:

AggregationMeaning
lastMost recent value — current queue depth
min / max / avg / sum / p95The usual reductions over the window
increaseCounter delta over the window — “exceptions per 5m”
rateincrease per second
ageNow minus the value, for timestamp metrics — “file untouched for over an hour”

On an integration, the metric picker lists the integration’s supporting telemetry first, then the metrics of its own services, then every other metric, under those headings; type to search all of them.

A metric check normally aggregates ingested telemetry, but can instead watch a pushed value that an external scraper POSTs in — useful for numbers that never pass through OpenTelemetry.

Log checks count log lines matching a severity floor, an optional case-insensitive body substring, and optional attribute filters, over a window of 1 minute to 30 days. The comparison runs both ways: at least N matches (an error flood) or fewer than N (an expected heartbeat line that stopped appearing).

Failed traces, response time, and traffic volume checks bind to a service or an integration. Failed-trace checks fire on the count of traces with error status (optionally narrowed by span attributes); response-time checks compare p95 — or max, for worst-case — latency against a millisecond threshold; traffic-volume checks fire when fewer traces than the threshold arrive, including none at all — the dead-man’s switch for a flow that should always have traffic.

You create rules in context: the alert icon in the Metrics explorer, the Logs page, or an integration’s Errors tab — and manage them all from Alerts → Health checks.

Before changing a threshold or adding a check, you can ask how often it would have fired: POST /api/v1/alert-rules/backtest (or sluicio_backtest_rule from an AI assistant) runs a check against the stored telemetry of the last 1 to 30 days and returns how many times it would have fired, when, and the lowest and highest values it read. Give an existing rule’s id, optionally with the threshold or window you are considering, or a rule that does not exist yet. It uses the same queries the evaluator does, at most 400 times per environment, so a breach shorter than the spacing between those looks can be missed; renotification and maintenance windows are not modelled. Pushed values and age checks have no history to replay.

Rules are evaluated continuously (every 30 seconds by default). An alert is either firing or resolved, and notifications follow the state:

  • Fires — the first breach opens the alert and sends the firing notification.
  • Re-notifies — while it stays firing and unacknowledged, the owning notification profile’s re-notify interval paces reminders; an interval of zero means notify once.
  • Acknowledge — clicking Ack on the Alerts page stops notifications for that alert. It stays firing until the condition actually clears — acking silences the paging, not the problem.
  • Resolves — how depends on the rule’s resolve mode:
    • Auto (the default for metric checks): the alert resolves itself as soon as the condition clears, and a resolved notification goes out.
    • Manual (the default for log and trace checks): the alert stays firing until someone acknowledges it, even if the condition clears — these signals are spiky, and a count that dips back under the threshold doesn’t mean anyone has looked at it. Once acked, it resolves when the condition is clear.

A resolved notification is only sent for alerts that notified when they fired — an alert suppressed by a maintenance window, or already acknowledged, stays quiet on resolve too.

No data. A metric check that finds nothing to read in its scope cannot fire, so it is not shown as healthy: the health-check lists mark it no data, and the API and MCP report its state as no_data, with when it was last evaluated. The usual causes are a metric, service or environment that matches nothing, for example a check scoped to production on telemetry that carries no environment, or a source that was renamed. A check that has just been created reads as healthy until its first evaluation. To be paged when a metric stops arriving, use the check’s fire on no data option instead.

One more rule kind lives outside the Alerts page: flow-completion rules, configured on an integration under its settings’ Trace completion section, or from Add health check → Trace completion on the integration. Where health checks watch aggregates, a flow-completion rule watches each message individually against the pipeline it is supposed to walk:

order-received ─(within 60s)─▶ order-validated ─(within 300s)─▶ order-shipped

A rule names a start span that gates it (only traces containing that span are evaluated) and an ordered list of stages. Each stage waits for one or more spans, with a timeout (1 second to 24 hours) for the trace to reach it. A span can name the service that must emit it; without one, the span name from any of the integration’s services will do. The rule carries its own severity, and routes its notifications like every other check (see Notification profiles and routing).

Try it on the last 24 hours, below the flow in the rule’s form, runs the rule as written against the stored traces without saving it: how many traces it would follow out of how many the integration’s services sent, how many completed, are in flight or are delayed, and where they get stuck. A start span no trace carries makes a rule follow nothing and never fire; the dry run shows that before the rule is saved.

When several services emit the same span name

Section titled “When several services emit the same span name”

Frameworks that standardise their span names make every component emit the same ones: a publisher and each of its subscribers all record Step.Send. A stage that waits for plain Step.Send is then satisfied by the publisher’s own span, before any subscriber has done anything. Name the service on each span, and when a message fans out to several receivers that must each deliver, set the stage to complete when all of them arrive:

process orders ─(30s)─▶ order-publisher: Step.Send ─(60s)─▶ erp-loader: Step.Send + wms-loader: Step.Send

With any one arrives (the default), the first of the stage’s spans completes it. With all of them arrive, the stage is reached when the last one does, and a trace that is stuck part-way names only the receivers that have not delivered: no ‘wms-loader: Step.Send’ span.

Stages are combined with AND and the spans of an any one arrives stage with OR, so a rule reads as this, then one of those. A trace is complete only when every stage has been reached: a later stage arriving does not excuse an earlier one that never did. When one service must deliver and another finishes on either of two paths, of which only one runs per message, use two stages:

uploader: create upload ─(5m)─▶ loader: create path-a | loader: create path-b (any one arrives)

When a trace stalls — the next stage’s span hasn’t arrived within its timeout — it becomes a stuck message. The rule fires through the same notification pipeline as every other alert (channels, routing, delivery), once per trace and stage, and the trace is marked delayed wherever it appears. Stuck messages are sticky:

  • If the missing span eventually arrives, the firing auto-resolves as delivered with delay, and a resolved notification goes to the channels that were paged, with the same dedup key, so an incident tool closes the incident. Before v0.11.217 this resolve sent nothing, and such incidents had to be closed by hand.
  • Otherwise it stays firing until someone marks it handled — it then stops counting against the integration and won’t re-fire for the same delay.

Completion in the message list. Add the completion column to an integration’s Messages view (its column settings) to see, for every message, where it stands against the integration’s rules: complete once every stage was reached, or waiting at or delayed at the stage it has not reached yet, inside or past that stage’s timeout. A message the rule does not follow (it never emitted the start span) shows a dash. It is the same verdict the rule alerts on, and sluicio_search_traces returns it too.

Stuck messages surface on the integration’s Errors tab (delayed traces), in its Messages tab behind the delayed filter, and as a delayed count on the integration page itself. On the Errors tab a stuck message stays listed and counted until it is handled or arrives, whatever the time window, as failing checks and unacknowledged errors do; before v0.11.208 a message flagged before the window dropped out of the count while its alert was still firing.

From v0.11.208 each firing names the environment of its own trace and is routed through the notification profile for that environment, as a check evaluated per environment is. The environment picker filters stuck messages by it, and the Alerts and Errors pages show it beside each one with a link to the trace. Notifications carry the rule’s severity and name, the environment, and in message the trace’s id and a link that opens it in the integration. The link opens only for someone who may see the trace: anyone else gets the page an unknown trace gets.

Channels are the delivery targets. They are org-wide, managed on Alerts → Notification channels (with a test-send button per channel):

ChannelYou provide
EmailRecipient list; optionally per-channel SMTP settings, otherwise the cell’s SMTP (Settings → System → Email) is used. Not offered when email is turned off for the instance.
SlackAn incoming webhook URL
WebhookAn HTTP(S) URL; optionally an Authorization header, a signing secret, and a payload format (CloudEvents, or a body you shape yourself)
PagerDutyAn Events API v2 routing key; optionally the EU events endpoint

A notification profile bundles a channel selection with delivery behaviour — the re-notify interval, and a grouping mode (with per-integration grouping, one representative alert carries an integration’s notifications instead of every check paging separately). Profiles exist per team and at the org level, managed on the same Notification channels tab.

When a rule fires, Sluicio resolves where to deliver most-specific-first:

  1. The rule’s own channels, if it has any.
  2. The integration’s assigned profile, if the rule is bound to an integration that has one.
  3. The owning team’s default profile.
  4. The org default profile.

Every check form, trace-completion rules included, has the same Send to field: The notification profile (the default) or Specific channels, which replace the profile’s channels for that check while grouping and re-notify still follow the profile. The check lists on the Alerts page and an integration’s Alerting tab say where each check sends: Profile “Ops”: incident.io, or incident.io (own).

Before v0.11.205 a trace-completion rule with no channels ticked sent its first notification nowhere (re-notifications already followed the profile), and the lists showed only a check’s own channels.

From v0.11.178 a profile can also apply to only some environments or to all except some. An alert about an environment the profile does not apply to passes it over for the next step on this ladder, so “production pages, test posts to Slack” is a production-only profile on the integration over a default for the rest. Alerts that are not about an environment are routed as before.

The message format resolves the same way but independently — see Notification templates for the per-field template ladder. A rule’s Notification content section also has toggles for which blocks a notification includes: service and integration info, their metadata, and the failing check’s details.

Besides its rules, Sluicio can tell an integration’s people when its services record errors nobody has acknowledged on the Errors page. This is set per integration, under Settings → Notification profile → Notify about unacknowledged errors, and is off by default.

  • With it on, the first new error after the last acknowledgement sends one notification through the integration’s profile (or, without one, the org default profile). Further errors in the same batch stay silent until someone acknowledges them; the next new error after that notifies again.
  • A service in several integrations notifies through every one of them that has it on, each channel once.
  • A service in no integration, or only in integrations with it off, notifies nobody. The errors still appear on the Errors page and still emit com.sluicio.errors.opened to event subscriptions.

Before v0.11.198 every new batch of unacknowledged errors notified the integration’s profile, or the org default for a service in no integration, with no way to turn it off. After upgrading, turn the setting on for each integration that should keep these notifications.

Webhook and PagerDuty deliveries carry structured payloads that consumers parse, not prose - so the Liquid notification templates that restyle email and Slack don’t apply to them. By default a webhook POST carries JSON like:

{
"state": "firing",
"severity": "critical",
"summary": "Orders backlog: queue.depth 12500 > 10000 over 5m",
"rule": { "name": "Orders backlog", "signal": "metric", "kind": "" },
"link": "https://sluicio.example.com/alerts?instance=8f2c…",
"sent_at": "2026-07-24T12:34:56Z",
"source": "sluicio",
"check": { "name": "Orders backlog", "metric": "queue.depth", "value": "12500", "threshold": "10000", "window": "5m" },
"service": { "name": "orders", "status": "unhealthy", "metadata": { "runbook_url": "https://…" } }
}

The check and service blocks appear according to the rule’s Notification content toggles. From v0.11.198 some parts no longer depend on a toggle:

  • integration is always there for a rule on an integration, so a notification always says which integration it is about. The toggle still decides whether its metadata comes along. For a rule on a service, integrations lists the integrations the service is in.
  • environment is the environment of the telemetry the alert is about, as OpenTelemetry reported it (deployment.environment.name, or the key set under System settings → Environments). A check evaluated per environment carries its own; a check read across environments takes it from the message below.
  • message is the message the alert is about: for a log, failed-trace or trace-attribute rule with a filter, the newest record in the rule’s scope that met the filter, with trace_id, service and attributes, the value it carried for each key in the filter. A rule on documents.failed > 0 arrives with "attributes": { "documents.failed": "3" }. For a flow-completion rule it is the stuck trace. From v0.11.208 message.link opens that trace in the alert’s integration, for a reader allowed to see it, and the plain-text body ends with a Trace: line holding the same link.

Email and Slack show the same three without a template: the integration and environment in the subject and under the summary, and the message’s attributes as a table (email) or one line each (Slack and the plain-text body).

Webhook channels have opt-ins for the shape and the transport:

  • CloudEvents 1.0 format (v0.11.27) - the payload above is wrapped in a CloudEvents envelope (type is com.sluicio.alert.fired or com.sluicio.alert.resolved) and posted as application/cloudevents+json.
  • Custom body (v0.11.134) - the payload above is replaced by a shape you define, for a receiver that dictates its own schema. See Custom webhook bodies.
  • Request signing (v0.11.27) - with a secret set, every POST carries X-Sluicio-Timestamp (Unix seconds) and X-Sluicio-Signature (sha256=<hex>, the HMAC-SHA256 of <timestamp>.<body> under the secret). Verify both to reject tampered or replayed deliveries.
  • Authorization header (v0.11.134) - see below.

Signing proves the request came from your cell; it does not log you in to the receiver. Most receivers want their own credential, and they want it in Authorization - which is exactly why the signature deliberately lives in custom headers rather than there.

Since v0.11.134, a webhook channel carries an Authorization header of its own (config.auth_header): the value is sent verbatim, so Bearer tk_live_…, Basic …, or whatever scheme name the receiver’s own docs use. Sluicio does not parse it. It is set before the signing headers, so a channel can never overwrite the signature it is meant to carry, and it is masked on every read of the channel.

Webhook channels do double duty: the same channels - same URL, CloudEvents setting and signing secret - are also the destinations for event subscriptions, which push Sluicio’s domain events (alerts, service discoveries, configuration changes) to your own platform. Event deliveries don’t use the channel’s custom body or Authorization header, so give a subscription its own channel when it needs either.

PagerDuty deliveries use the Events API v2: a firing alert sends trigger, resolution sends resolve, with a stable per-rule dedup key so flapping updates one PagerDuty incident instead of opening a new one each time. The event’s severity mirrors the rule’s.

Since v0.11.4, planned work doesn’t have to page anyone. A maintenance window (Alerts → Maintenance) is scheduled with a name, a reason, a time range, and a scope: the whole organization, a team’s rules, or a set of integrations, systems, and services.

While a window is active, matching alerts still evaluate and record — they show on the Alerts page marked as suppressed — but notifications are not sent. Suppressed alerts stay quiet on resolve too (no “resolved” for a firing you never saw), and if the window ends while the condition still breaches, the alert pages you then. A window can also publish an announcement for its duration, and can be ended early.

From v0.11.177 a window can repeat, for standing maintenance such as “every Sunday 02:00-04:00, patch night”. In the schedule form choose Repeats, then:

  • Weekly on one or more weekdays, or monthly on the first, second, third, fourth or last given weekday (“the second Tuesday of each month”);
  • a start time and how long each occurrence lasts (at most 7 days, the same bound as a one-off window; the series itself can run indefinitely, or until a date);
  • a timezone. Occurrences follow the wall clock there, so 02:00 stays 02:00 across daylight-saving changes.

Each occurrence is a window of its own: it silences, announces (when the series does) and can be ended early exactly like a one-off window. The next occurrence appears in the list of windows ahead of time. Skip on it cancels just that occurrence (“we’re not patching this Sunday”) and the series continues with the one after. Stop repeating ends the series: an occurrence in progress ends then, and no further ones are scheduled. For a series that covers systems, each occurrence uses the systems’ members at the time it is scheduled. Permissions are a window’s: editors, and an org admin for the whole organization.

Over the API: GET/POST /api/v1/maintenance-schedules, PATCH/DELETE /api/v1/maintenance-schedules/{id}. Skipping is DELETE /api/v1/maintenance-windows/{id} on an occurrence that hasn’t started.

Windows cover flow-completion rules too: a message that goes stuck during a window is still recorded on the integration’s delayed surfaces, but doesn’t page — and if it’s still stuck when the window ends, it pages then, like any other alert.

  • Notification channels and profiles are org-global configuration — managing them takes an org editor.
  • Alert rules take an org editor — or, on Enterprise with advanced RBAC, a team-scoped editor for rules bound to services within their scope.
  • Acknowledging an alert only requires being able to see the service it fired for.
  • Org-wide maintenance windows take an org admin; narrower scopes an editor.