0Pricing
System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry) · レッスン

SLO、SLI、エラーバジェット

サービスレベル目標(SLO)とサービスレベル指標(SLI)の定義・実装方法を理解します。信頼性エンジニアリングのためのエラーバジェット管理も学びます。

「SLO、SLI、エラーバジェット」はCoddyKit上の無料System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)レッスンです。 これはレッスン3/4です。 下記で完全なレッスンを無料で読むことができます。その後、ブラウザ内の組み込みコードエディタと24時間対応のAIチューターでハンズオン演習できます。 これはSystem Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)学習パスの一部であり、ウェブとCoddyKitアプリ全体で進捗が同期されます。 System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)コースには全4レッスンが含まれています。

このレッスンの一部はまだ翻訳されておらず、英語で表示されています。

Reliability Goals: SLOs & SLIs

Welcome! In this lesson, we'll dive into Service Level Objectives (SLOs), Service Level Indicators (SLIs), and Error Budgets. These are crucial concepts for defining and maintaining the reliability of your services.

Understanding them helps teams communicate expectations, prioritize work, and ensure a consistent user experience.

What are Service Level Indicators (SLIs)?

An SLI, or Service Level Indicator, is a quantitative measure of some aspect of the service you provide. Think of it as a direct measurement of your system's performance or behavior.

SLIs tell you how well your service is doing from a user's perspective. They are the raw data points we use to evaluate reliability.

Common Types of SLIs

Many different metrics can serve as SLIs. Here are some of the most common ones:

  • Latency: The time it takes for a service to respond to a request. (e.g., 99th percentile request latency)
  • Error Rate: The proportion of requests that result in an error. (e.g., HTTP 5xx responses)
  • Availability: The percentage of time a service is operational and reachable.
  • Throughput: The number of requests successfully processed per unit of time.

Choosing Meaningful SLIs

Selecting the right SLIs is key. They should directly reflect what truly matters to your users. For an e-commerce site, for example, the latency of adding an item to a cart is more critical than the latency of an internal admin endpoint.

Focus on user-facing metrics and those that indicate business impact. A few good SLIs are better than many irrelevant ones.

Defining Service Level Objectives (SLOs)

An SLO, or Service Level Objective, is a target value or range for an SLI over a specific period. It's the explicit goal you set for your service's performance.

For example, an SLO might be: "99.9% of requests will have a latency of less than 300ms over a 30-day rolling window."

Crafting Effective SLOs

Good SLOs are:

  • Specific: Clearly state what is being measured.
  • Measurable: Based on quantifiable SLIs.
  • Achievable: Realistic given your resources and system complexity.
  • Relevant: Important to users and the business.
  • Time-bound: Defined for a specific period (e.g., 7 days, 30 days).

SLOs help align teams on what reliability means for their service.

Introducing Error Budgets

An Error Budget is the maximum amount of time a system can fail or be unavailable without violating its SLO. It's essentially 1 minus your SLO.

If your SLO is 99.9% availability, you have a 0.1% error budget. This budget represents the acceptable amount of 'bad' performance or downtime.

Calculating Your Error Budget

Let's calculate an error budget for a common SLO:

  • SLO: 99.9% availability over 30 days.
  • Total time in 30 days: 30 days * 24 hours/day * 60 minutes/hour = 43,200 minutes.
  • Error Budget Percentage: 100% - 99.9% = 0.1%.
  • Error Budget (minutes): 43,200 minutes * 0.001 = 43.2 minutes.

This means your service can be unavailable for up to 43.2 minutes within a 30-day period without violating the SLO.

Managing with Error Budgets

Error budgets are powerful decision-making tools. When your error budget is healthy (plenty of 'bad time' left), teams might prioritize new features or experimental changes.

However, if the error budget is nearly depleted, it signals that reliability work (e.g., bug fixes, stability improvements) must take precedence over new feature development to avoid violating the SLO.

Test Your Knowledge!

Ready to check your understanding of today's concepts?

Recap: SLOs, SLIs, & Error Budgets

Great job! You've learned the core concepts of service reliability engineering:

  • SLIs are the specific, measurable metrics of your service.
  • SLOs are the target goals set for those SLIs.
  • Error Budgets are the acceptable amount of 'unreliability' before an SLO is violated, guiding decisions between features and stability.

These tools are fundamental for building and maintaining highly reliable systems!

よくある質問

「SLO、SLI、エラーバジェット」レッスンは無料ですか?

はい。「SLO、SLI、エラーバジェット」の完全なテキストはこのウェブで無料で読めます。インタラクティブに演習し(組み込みコードエディタと24時間対応のAIチューター)、System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)コースの残りをアンロックするには、CoddyKit PROにアップグレードしてください。 System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)コースには全4レッスンが含まれています。

「SLO、SLI、エラーバジェット」で何を学びますか?

サービスレベル目標(SLO)とサービスレベル指標(SLI)の定義・実装方法を理解します。信頼性エンジニアリングのためのエラーバジェット管理も学びます。 ブラウザで直接実行するハンズオンコードでSystem Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)を演習し、24時間対応のAIチューターがレッスンを進める中での質問に答えます。

System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)を始めるのに経験は必要ですか?

事前経験は必要ありません。CoddyKitのSystem Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)は初級者から上級者向けに構成されているため、ここから始めるか最初から始めて、自分のペースで進むことができます。 これはレッスン3/4です。

「SLO、SLI、エラーバジェット」レッスンにはどのくらい時間がかかりますか?

ほとんどのCoddyKitレッスンは約5~10分かかります。各レッスンはコンパクトでインタラクティブなので、着実に進歩し、ウェブとアプリ全体で正確に前回の場所から再開できます。

このSystem Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)レッスンでコードを書いて実行できますか?

はい。すべてのSystem Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)レッスンに組み込みコードエディタが含まれているため、ブラウザでリアルコードを書いて実行し、即座のAIフィードバックを取得できます。ローカル設定は不要です。

このコースのすべてのレッスン

  1. ログ、メトリクス、トレースの相関付け
  2. 異常検知とAIOps
  3. SLO、SLI、エラーバジェット
  4. REDメソッドとUSEメソッド
← System Observability: Logging, Metrics & Tracing (ELK + OpenTelemetry)に戻る