Error Rate Monitor
This skill provides automated assistance for error rate monitor tasks.
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
1---2name: monitoring-error-rates3description: 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".4license: MIT5---6# Error Rate Monitor
7
8This skill provides automated assistance for error rate monitor tasks.
9
10## Overview
11
12This 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.
13
14## How It Works
15
161. **Analyze Error Sources**: Identifies potential error sources within the application architecture, including HTTP endpoints, database queries, external APIs, background jobs, and client-side code.
172. **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.
183. **Configure Alerting**: Sets up alerts to trigger when error rates exceed defined thresholds, notifying relevant teams or individuals for investigation and remediation.
19
20## When to Use This Skill
21
22This skill activates when you need to:
23- Set up error monitoring for a new application.
24- Analyze existing error rates and identify areas for improvement.
25- Configure alerts to be notified of critical errors in real-time.
26- Establish error budgets and track progress towards reliability goals.
27
28## Examples
29
30### Example 1: Setting up Error Monitoring for a Web Application
31
32User request: "Monitor errors in my web application, especially 500 errors and database connection issues."
33
34The skill will:
351. Analyze the web application's architecture to identify potential error sources (e.g., HTTP endpoints, database connections).
362. Configure monitoring for 500 errors and database connection failures, setting appropriate thresholds and alerts.
37
38### Example 2: Analyzing Error Rates in a Background Job Processor
39
40User request: "Analyze error rates for my background job processor. I'm seeing a lot of failed jobs."
41
42The skill will:
431. Focus on the background job processor and identify the types of errors occurring (e.g., task failures, timeouts, resource exhaustion).
442. Analyze the frequency and patterns of these errors to identify potential root causes.
45
46## Best Practices
47
48- **Granularity**: Monitor errors at a granular level to identify specific problem areas.
49- **Thresholding**: Set appropriate alert thresholds to avoid alert fatigue and focus on critical issues.
50- **Context**: Include relevant context in error messages and alerts to facilitate troubleshooting.
51
52## Integration
53
54This 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.
55
56## Prerequisites
57
58- Access to application logs and metrics
59- Monitoring infrastructure (Prometheus, Grafana, or similar)
60- Read permissions for log files in {baseDir}/logs/
61- Network access to monitoring endpoints
62
63## Instructions
64
651. Identify error sources by analyzing application architecture
662. Define error types and monitoring thresholds
673. Configure alerting rules with appropriate severity levels
684. Set up dashboards for error rate visualization
695. Establish notification channels for critical errors
706. Document error baselines and SLO targets
71
72## Output
73
74- Error rate metrics and trends
75- Alert configurations for critical thresholds
76- Dashboard definitions for error monitoring
77- Reports on error patterns and root causes
78- Recommendations for error reduction strategies
79
80## Error Handling
81
82If monitoring setup fails:
83- Verify log file permissions and paths
84- Check monitoring service connectivity
85- Validate metric export configurations
86- Review alert rule syntax
87- Ensure notification channels are configured
88
89## Resources
90
91- Monitoring platform documentation (Prometheus, Grafana)
92- Application log format specifications
93- Error taxonomy and classification guides
94- SLO/SLI definition best practices