Examples

Copyable examples for alert routing and incident response.

Use these examples to test route matchers, payload labels, grouping, silences and notification behavior in a local IncidentRelay deployment.

Route matcher by labels

{
  "labels": {
    "team": "platform",
    "env": "prod",
    "severity": "critical"
  }
}

Generic webhook payload

{
  "external_id": "deploy-check-42",
  "title": "Billing API error rate is high",
  "message": "Error rate exceeded the production threshold for 10 minutes.",
  "status": "firing",
  "severity": "critical",
  "labels": {
    "team": "payments",
    "service": "billing-api",
    "env": "prod",
    "alertname": "HighErrorRate"
  },
  "event_link": "https://monitoring.example.com/alerts/deploy-check-42"
}

Group by stable fields

["alertname", "service", "env"]

Silence by labels

{
  "labels": {
    "service": "billing-api",
    "env": "staging"
  }
}

Channel severity filter

{
  "notify_on_severities": ["critical", "high"]
}

Alertmanager receiver idea

Create separate Alertmanager receivers for different IncidentRelay route tokens when alert classes should go to different routes or channels.