AGENT SKILL
alerting
Sentry alert rule templates, frequency heuristics, and notification routing for observability coverage
- License 许可
- MIT
- 最近更新
- 2026-03-26
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- alerting
- requires
- { "mcps": [ "sentry" ] }
- description
- Sentry alert rule templates, frequency heuristics, and notification routing for observability coverage
02 资源文件 3
- 脚本scripts/dispute.sh7.0 KB
- 脚本scripts/script.sh2.2 KB
- 参考文档tips.md46 B
03 SKILL.md 正文
Alerting
Generate Sentry alert rule configurations and ensure observability coverage across all projects.
Prerequisites
- Sentry MCP:
list_issues(to analyze current error patterns)
Standard Alert Rules
Every Sentry project should have these baseline rules:
1. New Error Alert
- Type: Issue alert
- Conditions: New issue created with level:
errororfatal - Actions: Notify
#alertsSlack channel - Frequency: Once per issue per hour
- Rationale: Catches regressions and newly introduced errors
2. Error Spike Alert
- Type: Issue alert
- Conditions: Issue seen > 50 times in 5 minutes
- Actions: Notify
#alerts-critical+ PagerDuty - Frequency: Once per issue per 30 minutes
- Rationale: Detects error storms that indicate a major incident
3. Regression Alert
- Type: Issue alert
- Conditions: Previously resolved issue regressed
- Actions: Notify + assign to the person who last resolved it
- Frequency: Once per issue
- Rationale: Catches bugs that were fixed but have returned
4. High Error Rate Alert
- Type: Metric alert
- Conditions: Error count > 100 in 10 minutes
- Actions: Notify
#alerts-critical - Frequency: Every 10 minutes while condition is active
- Rationale: Aggregate health threshold — catches issues that individually are below spike threshold but collectively indicate problems
Dynamic Alert Rules
For high-frequency existing issues, generate targeted monitoring rules:
Frequency Heuristic
- Use Sentry MCP
list_issuessorted byfreq(limit 10) for the project - For each issue with
count > 50:- Set alert threshold at 20% of current count per hour
- Example: issue has 500 events → alert at 100 events/hour
- Create an issue alert for each:
- Name:
[project] Monitor: {issue title (first 50 chars)} - Conditions: Issue
{title}>{threshold}times per hour - Actions: Notify
#alerts - Frequency: Every 1 hour while active
- Rationale:
Currently #{rank} most frequent ({count} events)
- Name:
Notification Routing
| Severity | Channel | Escalation |
|---|---|---|
| error (new) | #alerts Slack |
None — informational |
| error (spike) | #alerts-critical Slack + PagerDuty |
On-call engineer |
| fatal | #alerts-critical Slack + PagerDuty |
On-call engineer + team lead |
| regression | #alerts Slack + assign to last resolver |
Auto-assigned |
Setup Instructions
- Go to Sentry → Project Settings → Alerts
- Create each rule with the conditions specified above
- Connect Slack integration for channel notifications
- Connect PagerDuty integration for critical alerts
- Test each rule with a synthetic error to verify routing
Coverage Audit
To audit alert coverage for a project:
- List all current alert rules in Sentry
- Compare against the 4 standard rules above
- Check if high-frequency issues have targeted monitoring
- Verify notification routing is configured correctly
04 同仓库更多 Skills
lucid-PLUGIN_NAME
PLUGIN_DESCRIPTION
★ 0
social-content
Generate short-form video content optimized for social media platforms
★ 0
personalized-outreach
Generate 1:1 personalized video for sales prospecting and customer success
★ 0
data-reports
Generate animated data report videos from KPIs, charts, and analytics
★ 0
lucid-video
Agent-native video generation using Remotion — MCP server + OpenClaw plugin
★ 0
lucid-veille
Content monitoring, AI digest generation, and multi-platform auto-publishing
★ 0