Skip to content

Per-check alerts: implement notification policies preview #1258

@VikaCep

Description

@VikaCep

Currently users have no way to see details about where alerts instances are going to be routed other than a link to the Alerting section. We should implement a solution so that we can show the routing and contact point associated to these alerts.

The alerting team is adding the route matching functionality to the alerting package so that we and other interested plugins can consume it.

We should consume this code and implement a solution similar to what's described in this comment:

🔔 Alert Routing Summary

This alert includes the following labels:

team_name: frontend
label_name: label_value
✅ This alert will be routed to: Slack – #some-channel

📬 Notification Contact Points:

Slack: #some-channel
Email: [email protected]
🔧 [Edit notification policies]
📚 [Learn how alert routing works]

Or in the case where theres no matching policy:

🔔 Alert Routing Summary

This alert includes the following labels:

team_name: frontend
label_name: label_value
⚠️ This alert does not match any notification policy.
You may not receive notifications unless a matching policy is created. click here to create a policy

➡️ [Create a policy with these labels]
📚 [Learn how alert routing works]

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions