Skip to main content
Alerts evaluate your telemetry on a configurable interval and fire an episode whenever a measured value crosses the threshold you define. You can alert on log counts, trace span counts, or any custom metric — and group results by a resource attribute like service.name to get per-service firing events instead of a single rolled-up signal.

Alert fields

When you create or update an alert you supply the following fields:

Filter fields

The filter object lets you narrow which events the alert considers:
  • resourceAttrs — an array of { key, value } pairs matched against OTel resource attributes
  • service — shorthand for service.name
  • severity — match a log severity level (e.g. ERROR)
  • spanName — match a specific span name
  • statusCode — match an OTel span status code
  • minDurationMs — only include spans longer than this duration in milliseconds

Validation rules

  • aggregation must be count when source is logs or traces
  • aggregation must be sum or avg when source is metric, and metricName is required
  • groupBy is required when groupMode is per_group

Creating alerts

1

Open the Alerts page

Navigate to Alerts in the left sidebar. You’ll see all existing alerts for the active project.
2

Click New Alert

Fill in the form fields. Use the Preview button to evaluate your configuration against current data before saving — Superlog shows you whether the alert would be breaching right now.
3

Save the alert

Click Create. The alert begins evaluating immediately at the interval you configured.
You can also create alerts via the MCP create_alert tool or the REST API (see below).

Alert episodes

Each time an alert starts firing, Superlog opens an episode — a record with a start time, peak observed value, and (when the condition clears) an end time. Episodes are numbered per alert so you can refer to “Episode #3 of the high-error-rate alert.” When groupMode = per_group, each distinct group value (e.g. each service) gets its own episode. Episodes link to any incidents they trigger, making it easy to trace a Superlog incident back to its alerting condition.

Notification channels

  • Slack — when your workspace is connected to Superlog, fired alerts can post to a configured channel
  • Webhooks — subscribe to incident.created / incident.updated to push incident lifecycle and investigation results to any HTTP endpoint
See Webhooks for details on the payload format and endpoint configuration.

REST API example

You can create alerts programmatically. Authenticate with your management API key and POST to the alerts endpoint:
The response includes the full alert object with its assigned id.
Use groupMode: "per_group" with groupBy: "service.name" when you want a single alert definition to fire independently for each service rather than on their combined total.
The preview_alert MCP tool evaluates a draft alert spec against current data without saving it — useful for iterating on threshold values before committing.
For authentication details, see the API overview. For the MCP tools reference, see MCP tools.