# SLO の導入 (slo-implementation)

> SLI・SLO とエラーバジェットの方針を決め、Prometheus の記録ルール、バーンレートアラート、Grafana で実装します。

- カテゴリ: [監視・運用](https://www.myskills.tools/ja/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/ja/ · URL: https://www.myskills.tools/ja/skills/slo-implementation/
