Skip to content

Alert rules: configurable conditions and destinations #493

Closed

Description

@unjica

Role

Vision / parent roadmap for milestone v1.15.x — Alert Rules — not a single mega-implementation ticket.

Implementation ships via child issues below (and stacked PRs). Keep this issue open as the umbrella until the Alert Rules vision is substantially realized across children (or explicitly retired). Do not close this because one foundation PR landed.

Roadmap priority

2 (after Notifications v1.14)

Parent

#492 (Notifications vision — channel delivery is Priority 1; this is the rules engine)

Goal

Provide configurable notification rules per project and (later) organization.

Developers should define custom conditions that trigger notifications and bind opaque destination ids. Delivery (email, Slack, Discord, Teams, Telegram, webhooks) is owned by Notifications — not by Alert Rules.

Separation of concerns

Capability Owns
Alert Rules Condition[] (AND), thresholds/windows, cooldown/dedupe, opaque destinationIds
Notifications (v1.14) fireProjectAlert / enqueue, Notification Center, provider send paths

Rules must not embed provider-specific send logic beyond calling into existing dispatch.

Preferred rule model

IF condition1 AND condition2 AND …
→ notify destinationIds[]   # opaque; Notifications resolves providers

Not a rigid one-condition / one-provider design. Prefer destinationIds over first-class destination = "email"|"slack"|… on the rule.

Examples

IF error count ≥ 25 in 15m AND environment = production
→ destinationIds: [project-email, <slack-webhook-id>]

IF sessions drop by 50%
→ destinationIds: [project-email]

IF new error group detected AND 50+ users affected
→ destinationIds: [<discord-webhook-id>]

Child issues (implementation slices)

#493 (this issue — vision only)
        |
        +---- #532 Condition model + ERROR_COUNT evaluator + opaque destinationIds + MVP UI  (PR #531)
        +---- #533 Dashboard multi-condition / edit UX
        +---- #534 Additional conditions + scheduled evaluator
        +---- #535 Integration (migrate built-in spike/quota into AlertRule)
        +---- #536 Release (v1.15.0)
Slice Issue
Foundation #532 — PR #531
Dashboard UI polish #533
Extended conditions + scheduled evaluation #534
Integration (built-in → rules) #535
Release v1.15.x #536

Related

Out of scope for this parent issue

Activity

  1. self-assigned this
    on Jul 17, 2026
  2. added
    enhancement
    dashboard
    api
    backend
    priority:2
    on Jul 17, 2026
  3. unjica commented on Jul 17, 2026

    @unjica
    CollaboratorAuthor

    Foundation slice #532 shipped in v1.15.0 (release; PR #531 → #537).

    This parent vision issue stays open — remaining children: #533–#535 (and further work under milestone v1.15.x).

  4. unjica commented on Jul 18, 2026

    @unjica
    CollaboratorAuthor

    Reopened for v1.15.2 release/smoke; will close after production health verification per RELEASE.md practice.

  5. reopened this on Jul 18, 2026
  6. unjica commented on Jul 18, 2026

    @unjica
    CollaboratorAuthor

    Closed after successful v1.15.2 production deploy + smoke (health 1.15.2, migrations applied, SYSTEM builtin backfill OK). Remaining follow-up (dual-write cleanup of spike/quota fields from alert_settings) can be tracked separately if needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

apibackenddashboardenhancementpriority:2

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions