Skip to main content

Create and Edit Alert Rules

Overview

Alert rules control which incoming alerts trigger automatic investigations. Create rules to focus OpsWorker on the alerts that matter to your team.

Creating a Rule

  1. Go to Configurations → Alert Rules
  2. Click Create Rule
  3. Configure the rule:
FieldDescriptionExample
NameDescriptive rule name"Critical production alerts"
ClusterWhich cluster this rule applies toproduction-us-east
NamespaceRegex pattern matching namespacesprod-.* (all prod namespaces)
SeverityAlert severity to matchcritical, warning
LabelsKey-value label matchingteam=payments
Auto-investigateAuto-start investigations for matchesEnabled / Disabled
  1. Click Save

Editing a Rule

  1. Go to Configurations → Alert Rules
  2. Click on the rule to edit
  3. Modify the configuration
  4. Click Save

Filter Logic

  • Filters within a single rule use AND logic — all conditions must match
  • Create separate rules for OR logic (either rule triggers an investigation)

Example: AND Logic

Rule: Namespace prod-.* AND Severity critical

  • Matches: critical alert in prod-payments namespace
  • Does not match: warning alert in prod-payments, or critical alert in staging

Example: OR Logic

Rule 1: Severity critical (any namespace) Rule 2: Namespace prod-payments (any severity)

  • Matches: any critical alert OR any alert in prod-payments

Enabling / Disabling Rules

Toggle rules on/off without deleting them. Disabled rules don't match any alerts but retain their configuration.

Deleting Rules

Delete rules you no longer need from the rules list. This action cannot be undone.

Next Steps