# SLO 구현 (slo-implementation)

> SLI와 SLO를 정의하고 오류 예산과 정책을 정한 뒤 Prometheus 기록 규칙, 소진율 알림, Grafana 대시보드로 구현합니다.

- 카테고리: [모니터링·운영](https://www.myskills.tools/ko/categories/monitoring-ops/)
- 출처: 커뮤니티 · Seth Hobson
- 저장소: https://github.com/wshobson/agents/tree/main/plugins/observability-monitoring/skills/slo-implementation (commit 156b7a5)
- SKILL.md: https://github.com/wshobson/agents/blob/main/plugins/observability-monitoring/skills/slo-implementation/SKILL.md
- 설치 명령: `npx skills add wshobson/agents --skill slo-implementation`
- 라이선스: MIT
- 호환 도구: Claude Code, Codex, Cursor, Copilot, OpenCode
- 권한: read-repo ✓, write-files ✓, shell ✗, network ✗
- 상태: 스캔 통과
- 규칙 스캔으로 모든 위험을 찾을 수는 없습니다. 설치 전에 이 스킬의 SKILL.md를 읽고 권한을 확인하세요.

## 핵심 규칙

오류 예산은 1 − SLO 목표이며, 남은 예산이 변경 속도를 정하고 소진되면 기능 개발을 멈춥니다.

## 실행 단계

1. **SLI 정의** — 가용성, 지연 시간, 내구성 등을 성공 이벤트 대비 전체 이벤트 비율로 PromQL에 표현합니다.
2. **SLO 목표 설정** — 사용자 기대, 비즈니스 요구, 현재 성능, 신뢰성 비용을 고려해 목표값과 기간(예: 28일)을 정합니다.
3. **오류 예산 정책** — 오류 예산을 계산하고, 남은 예산이 50%·10%·0%일 때 위험한 변경 연기, 비핵심 변경 동결, 기능 동결을 정합니다.
4. **규칙·알림·대시보드** — Prometheus 기록 규칙과 빠른·느린 소진율 알림을 작성하고, Grafana에 준수율, 남은 예산, 추세를 보여 줍니다.

## 권한 설명 (SKILL.md 기준)

| 기능 | 필요 여부 | 설명 |
|---|---|---|
| 파일 쓰기 | 필요 | SLO 정의, Prometheus 기록·알림 규칙, 오류 예산 정책, Grafana 대시보드 설정을 작성합니다. |
| 명령 실행 | 필요 없음 | 프레임워크와 템플릿 참고 자료이며 명령 실행을 요구하지 않습니다. |
| 네트워크 송신 | 필요 없음 | Prometheus, Grafana 등 외부 서비스 접근을 요구하지 않습니다. |

## SKILL.md 프런트매터(YAML)

```yaml
---
name: slo-implementation
description: Define and implement Service Level Indicators (SLIs) and Service Level Objectives (SLOs) with error budgets and alerting. Use when establishing reliability targets, implementing SRE practices, or measuring service performance.
---
```

홈: https://www.myskills.tools/ko/ · URL: https://www.myskills.tools/ko/skills/slo-implementation/
