tracking-service-reliability
Define and track SLAs, SLIs, and SLOs for service reliability including availability, latency, and error rates. Use when establishing reliability targets or monitoring service health. Trigger with phrases like "define SLOs", "track SLI metrics", or "calculate error budget".
- License 许可
- MIT
- 最近更新
- 2025-12-18
- Stars
- ★ 29
- Forks
- 9
01 前言 Front Matter
- name
- tracking-service-reliability
- license
- MIT
- version
- 1.0.0
- description
- Define and track SLAs, SLIs, and SLOs for service reliability including availability, latency, and error rates. Use when establishing reliability targets or monitoring service health. Trigger with phrases like "define SLOs", "track SLI metrics", or "calculate error budget".
- allowed-tools
- [ "Read", "Write", "Edit", "Grep", "Glob", "Bash(monitoring:*)", "Bash(metrics:*)" ]
02 资源文件 10
- 资产文件assets/README.md313 B
- 参考文档references/data-management.md9.5 KB
- 参考文档references/README.md331 B
- 参考文档references/resource-configuration.md9.3 KB
- 参考文档references/verified-workflows.md10.2 KB
- 参考文档references/workflow-creation.md6.2 KB
- 脚本scripts/calculate_error_budget.py2.8 KB
- 脚本scripts/generate_sla_report.py3.5 KB
- 脚本scripts/monitor_sli.py2.8 KB
- 脚本scripts/README.md370 B
03 SKILL.md 正文
Overview
This skill provides a structured approach to defining and tracking SLAs, SLIs, and SLOs, which are essential for ensuring service reliability. It automates the process of setting performance targets and monitoring actual performance, enabling proactive identification and resolution of potential issues.
How It Works
- SLI Definition: The skill guides the user to define Service Level Indicators (SLIs) such as availability, latency, error rate, and throughput.
- SLO Target Setting: The skill assists in setting Service Level Objectives (SLOs) by establishing target values for the defined SLIs (e.g., 99.9% availability).
- SLA Establishment: The skill helps in formalizing Service Level Agreements (SLAs), which are customer-facing commitments based on the defined SLOs.
When to Use This Skill
This skill activates when you need to:
- Define SLAs, SLIs, and SLOs for a service.
- Track service performance against defined objectives.
- Calculate error budgets based on SLOs.
Examples
Example 1: Defining SLOs for a New Service
User request: "Create SLOs for our new payment processing service."
The skill will:
- Prompt the user to define SLIs (e.g., latency, error rate).
- Assist in setting target values for each SLI (e.g., p99 latency < 100ms, error rate < 0.01%).
Example 2: Tracking Availability
User request: "Track the availability SLI for the database service."
The skill will:
- Guide the user in setting up the tracking of the availability SLI.
- Visualize availability performance against the defined SLO.
Best Practices
- Granularity: Define SLIs that are specific and measurable.
- Realism: Set SLOs that are challenging but achievable.
- Alignment: Ensure SLAs align with the defined SLOs and business requirements.
Integration
This skill can be integrated with monitoring tools to automatically collect SLI data and track performance against SLOs. It can also be used in conjunction with alerting systems to trigger notifications when SLO violations occur.
Prerequisites
- SLI definitions stored in {baseDir}/slos/sli-definitions.yaml
- Access to monitoring and metrics systems
- Historical performance data for baseline
- Business requirements for service reliability
Instructions
- Define Service Level Indicators (availability, latency, error rate, throughput)
- Set Service Level Objectives with target values (e.g., 99.9% availability)
- Formalize Service Level Agreements with customer commitments
- Configure automated SLI data collection
- Calculate error budgets based on SLOs
- Track performance and alert on SLO violations
Output
- SLI/SLO/SLA definition documents
- Real-time SLI metric dashboards
- Error budget calculations and burn rate
- SLO compliance reports
- Alerting configurations for violations
Error Handling
If SLI/SLO tracking fails:
- Verify SLI definition completeness
- Check metric collection infrastructure
- Validate data accuracy and granularity
- Ensure alerting system connectivity
- Review error budget calculation logic
Resources
- Google SRE book on SLIs and SLOs
- Error budget implementation guides
- Service reliability engineering practices
- SLO definition templates and examples
04 同仓库更多 Skills
testing-visual-regression
Detect visual changes in UI components using screenshot comparison. Use when detecting unintended UI changes or pixel differences. Trigger with phrases like "test visual changes", "compare screenshots", or "detect UI regressions".
generating-unit-tests
Automatically generate comprehensive unit tests from source code covering happy paths, edge cases, and error conditions. Use when creating test coverage for functions, classes, or modules. Trigger with phrases like "generate unit tests", "create tests for", or "add test coverage".
generating-test-reports
Generate comprehensive test reports with metrics, coverage, and visualizations. Use when performing specialized testing. Trigger with phrases like "generate test report", "create test documentation", or "show test metrics".
orchestrating-test-execution
Coordinate parallel test execution across multiple environments and frameworks. Use when performing specialized testing. Trigger with phrases like "orchestrate tests", "run parallel tests", or "coordinate 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".