HabitaNexus/monorepo / skills/system-reliability-engineering/slo-sli-sla
slo-sli-sla
Verified| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 14.7 KB |
| examples/usage_example.py | script | 4.0 KB |
| scripts/README.md | markdown | 1.1 KB |
| scripts/error_budget.py | script | 7.3 KB |
| scripts/requirements.txt | manifest | 312 B |
| scripts/slo_api.py | script | 10.2 KB |
scripts/README.md
View on GitHub# SLO/SLI/SLA Scripts
Scripts ejecutables para gestión de Service Level Objectives (SLOs), Service Level Indicators (SLIs) y error budgets.
## 📁 Archivos
- **`error_budget.py`** - Calculadora de error budget (CLI standalone)
- **`slo_api.py`** - API REST FastAPI para consultar SLOs desde Prometheus
- **`requirements.txt`** - Dependencias Python
## 🚀 Quick Start
### Error Budget Calculator
No requiere instalación (usa solo stdlib):
```bash
# Ejemplo básico
python error_budget.py \
--slo-target 0.9995 \
--total-requests 1000000 \
--error-requests 400
# Modo interactivo
python error_budget.py --slo-target 0.9995 --interactive
```
### SLO API Service
Instalación:
```bash
pip install -r requirements.txt
```
Ejecución:
```bash
# Desarrollo
uvicorn slo_api:app --reload
# Producción
uvicorn slo_api:app --host 0.0.0.0 --port 8000 --workers 4
```
## 📖 Documentación Completa
Ver [`../SKILL.md`](../SKILL.md) para documentación completa y ejemplos de uso.
## 🔗 Ejemplos
Ver [`../examples/usage_example.py`](../examples/usage_example.py) para ejemplos programáticos.
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |