monitoring-error-rates
Monitor and analyze application error rates to improve reliability. Use when tracking errors in applications including HTTP errors, exceptions, and database issues. Trigger with phrases like "monitor error rates", "track application errors", or "analyze error patterns".
- License 许可
- MIT
- 最近更新
- 2025-12-18
- Stars
- ★ 29
- Forks
- 9
01 前言 Front Matter
- name
- monitoring-error-rates
- license
- MIT
- version
- 1.0.0
- description
- Monitor and analyze application error rates to improve reliability. Use when tracking errors in applications including HTTP errors, exceptions, and database issues. Trigger with phrases like "monitor error rates", "track application errors", or "analyze error patterns".
- allowed-tools
- [ "Read", "Bash(monitoring:*)", "Bash(metrics:*)", "Bash(logs:*)", "Grep", "Glob" ]
02 资源文件 30
- 资产文件assets/directory-browser.css2.9 KB
- 资产文件assets/favicon.ico15.0 KB
- 资产文件assets/novel-theme.css612 B
- 脚本assets/reader.js25.5 KB
- 资产文件assets/README.md380 B
- 资产文件assets/styles/novel-theme-base.css1013 B
- 资产文件assets/styles/novel-theme-components.css3.8 KB
- 资产文件assets/styles/novel-theme-content.css2.9 KB
- 资产文件assets/styles/novel-theme-header.css3.9 KB
- 资产文件assets/styles/novel-theme-mermaid.css3.1 KB
- 资产文件assets/styles/novel-theme-overlays.css3.6 KB
- 资产文件assets/styles/novel-theme-responsive.css4.5 KB
- 资产文件assets/styles/novel-theme-sidebar.css6.2 KB
- 资产文件assets/styles/novel-theme-variables.css1.4 KB
- 资产文件assets/template.html6.0 KB
- 参考文档package.json368 B
- 参考文档references/reader-experience.md625 B
- 参考文档references/reader-operations.md1.1 KB
- 参考文档references/README.md424 B
- 脚本scripts/analyze_errors.py4.7 KB
- 脚本scripts/generate_error_report.py3.6 KB
- 脚本scripts/lib/http-server.cjs11.4 KB
- 脚本scripts/lib/markdown-renderer.cjs9.7 KB
- 脚本scripts/lib/plan-navigator.cjs10.1 KB
- 脚本scripts/lib/plan-table-parser.cjs9.9 KB
- 脚本scripts/lib/port-finder.cjs1.2 KB
- 脚本scripts/lib/process-mgr.cjs3.7 KB
- 脚本scripts/README.md456 B
- 脚本scripts/server.cjs9.6 KB
- 脚本scripts/set_alert_threshold.py2.8 KB
03 SKILL.md 正文
Overview
This skill automates the process of setting up comprehensive error monitoring and alerting for various components of an application. It helps identify, track, and analyze different types of errors, enabling proactive identification and resolution of issues before they impact users.
How It Works
- Analyze Error Sources: Identifies potential error sources within the application architecture, including HTTP endpoints, database queries, external APIs, background jobs, and client-side code.
- Define Monitoring Criteria: Establishes specific error types and thresholds for each source, such as HTTP status codes (4xx, 5xx), exception types, query timeouts, and API response failures.
- Configure Alerting: Sets up alerts to trigger when error rates exceed defined thresholds, notifying relevant teams or individuals for investigation and remediation.
When to Use This Skill
This skill activates when you need to:
- Set up error monitoring for a new application.
- Analyze existing error rates and identify areas for improvement.
- Configure alerts to be notified of critical errors in real-time.
- Establish error budgets and track progress towards reliability goals.
Examples
Example 1: Setting up Error Monitoring for a Web Application
User request: "Monitor errors in my web application, especially 500 errors and database connection issues."
The skill will:
- Analyze the web application's architecture to identify potential error sources (e.g., HTTP endpoints, database connections).
- Configure monitoring for 500 errors and database connection failures, setting appropriate thresholds and alerts.
Example 2: Analyzing Error Rates in a Background Job Processor
User request: "Analyze error rates for my background job processor. I'm seeing a lot of failed jobs."
The skill will:
- Focus on the background job processor and identify the types of errors occurring (e.g., task failures, timeouts, resource exhaustion).
- Analyze the frequency and patterns of these errors to identify potential root causes.
Best Practices
- Granularity: Monitor errors at a granular level to identify specific problem areas.
- Thresholding: Set appropriate alert thresholds to avoid alert fatigue and focus on critical issues.
- Context: Include relevant context in error messages and alerts to facilitate troubleshooting.
Integration
This skill can be integrated with other monitoring and alerting tools, such as Prometheus, Grafana, and PagerDuty, to provide a comprehensive view of application health and performance. It can also be used in conjunction with incident management tools to streamline incident response workflows.
Prerequisites
- Access to application logs and metrics
- Monitoring infrastructure (Prometheus, Grafana, or similar)
- Read permissions for log files in {baseDir}/logs/
- Network access to monitoring endpoints
Instructions
- Identify error sources by analyzing application architecture
- Define error types and monitoring thresholds
- Configure alerting rules with appropriate severity levels
- Set up dashboards for error rate visualization
- Establish notification channels for critical errors
- Document error baselines and SLO targets
Output
- Error rate metrics and trends
- Alert configurations for critical thresholds
- Dashboard definitions for error monitoring
- Reports on error patterns and root causes
- Recommendations for error reduction strategies
Error Handling
If monitoring setup fails:
- Verify log file permissions and paths
- Check monitoring service connectivity
- Validate metric export configurations
- Review alert rule syntax
- Ensure notification channels are configured
Resources
- Monitoring platform documentation (Prometheus, Grafana)
- Application log format specifications
- Error taxonomy and classification guides
- SLO/SLI definition best practices
04 同仓库更多 Skills
UI 视觉回归测试
testing-visual-regression
使用截图比较检测 UI 组件中的视觉变化。 在检测意外的 UI 更改或像素差异时使用。 用“测试视觉变化”、“比较截图”或“检测 UI 回归”等短语触发。
单元测试自动生成
generating-unit-tests
从源代码自动生成全面的单元测试,覆盖正常路径、边界条件和错误情况。 在为函数、类或模块创建测试覆盖时使用。 用“生成单元测试”、“为…创建测试”或“添加测试覆盖”等短语触发。
测试报告生成与可视化
generating-test-reports
生成包含指标、覆盖率和可视化内容的全面测试报告。 在执行专项测试时使用。 用“生成测试报告”、“创建测试文档”或“显示测试指标”等短语触发。
测试执行编排与协调
orchestrating-test-execution
协调跨多个环境和框架的并行测试执行。 在执行专项测试时使用。 用“编排测试”、“运行并行测试”或“协调测试执行”等短语触发。
managing-test-environments
Provision and manage isolated test environments with configuration and data. Use when performing specialized testing. Trigger with phrases like "manage test environment", "provision test env", or "setup test infrastructure".
generating-test-doubles
Generate mocks, stubs, spies, and fakes for dependency isolation. Use when creating mocks, stubs, or test isolation fixtures. Trigger with phrases like "generate mocks", "create test doubles", or "setup stubs".