Inferensys

Glossary

Service Level Indicator (SLI)

A Service Level Indicator (SLI) is a quantitative measure of a specific aspect of service performance, such as request latency or error rate, that is used to evaluate compliance with Service Level Objectives.
Performance engineer optimizing AI latency on laptop, latency charts visible, technical optimization session.
INFERENCE PERFORMANCE BENCHMARKING

What is a Service Level Indicator (SLI)?

A Service Level Indicator (SLI) is a quantitative measure of a specific aspect of service performance, such as request latency or error rate, that is used to evaluate compliance with Service Level Objectives.

An SLI is a directly measurable, time-bound metric that quantifies a critical dimension of a service's behavior from a user's perspective. Common examples in inference performance benchmarking include latency percentiles (e.g., P99), throughput (e.g., Tokens Per Second), and availability (e.g., successful request rate). It serves as the foundational, objective data point for defining Service Level Objectives (SLOs) and ensuring system reliability.

Effective SLIs are specific, relevant, and actionable. For an inference API, a well-defined SLI might be "the proportion of requests with a Time to First Token (TTFT) under 500ms, measured over a 1-minute rolling window." This directly correlates with user-perceived responsiveness. Selecting the right SLI requires understanding the service's bottlenecks and user expectations, making it a core practice for ML Ops and Performance Engineers managing production AI systems.

INFERENCE PERFORMANCE BENCHMARKING

Key Characteristics of an Effective SLI

A Service Level Indicator (SLI) is a quantitative measure of a specific aspect of service performance. For inference systems, effective SLIs are direct, measurable, and actionable signals of user experience and system health.

01

Directly Measures User Experience

An effective SLI quantifies an aspect of the service as perceived by the end-user or client application. It should measure the outcome of a request, not internal system states.

Examples for Inference:

  • Request Latency: Time from request submission to receipt of final response.
  • Time to First Token (TTFT): Critical for streaming responses.
  • Success Rate: Percentage of requests that complete without error.

Avoid: Internal metrics like GPU utilization or cache hit rate, which are diagnostic but not direct user experience indicators.

02

Quantitative and Measurable

The SLI must be expressed as a numerical value derived from well-defined, instrumented data. It should be calculable from request logs or telemetry without ambiguity.

Key Properties:

  • Precise Definition: e.g., "Latency is measured from the moment the last byte of the request is received by the load balancer to the moment the first byte of the response is sent."
  • Aggregation Method: Clearly defined, such as a percentile (P50, P90, P99) or a ratio (successful requests / total requests).
  • Measurable in Production: Requires robust performance telemetry instrumentation across the service stack.
03

Aligned with Business Objectives

The chosen SLI should map to a critical business outcome or user need. For inference services, this often relates to responsiveness, reliability, or cost-efficiency.

Inference-Specific Alignments:

  • Latency SLIs align with user satisfaction for interactive applications (e.g., chatbots).
  • Throughput (QPS/TPS) SLIs align with batch processing capacity and infrastructure cost control.
  • Error Rate SLIs align with service reliability and trust.

The SLI provides the empirical basis for defining a Service Level Objective (SLO), which is the target threshold for the SLI.

04

Sensitive to System Changes

A good SLI acts as a leading indicator that reacts predictably to changes in the system, whether from deployments, load increases, or infrastructure issues.

Characteristics:

  • Detects Regressions: A performance regression from a model update or configuration change should be visible in the SLI trend (e.g., increased P99 latency).
  • Responds to Load: The SLI should reflect system behavior under different load conditions, as visualized on a throughput-latency curve.
  • Avoids Noise: While sensitive, it should not be overly volatile due to insignificant fluctuations, requiring careful selection of measurement windows and aggregation.
05

Simple and Understandable

The SLI should be easily comprehensible by developers, operators, and business stakeholders. Complexity hinders adoption, debugging, and decision-making.

Best Practices:

  • Limit Quantity: Focus on 2-4 key SLIs per critical service component (e.g., one for latency, one for availability).
  • Clear Naming: Use intuitive names like inference_latency_seconds or request_success_rate.
  • Avoid Composite Metrics: While powerful, ratios like "availability" (success rate) are acceptable. Avoid creating complex, weighted formulas that obscure root causes.
06

Tied to an Actionable SLO

The ultimate purpose of an SLI is to evaluate compliance with a Service Level Objective (SLO). An effective SLI makes setting and monitoring SLOs practical.

The SLO Relationship:

  • The SLI is the measured metric (e.g., latency distribution).
  • The SLO is the target threshold for that metric (e.g., P99 latency < 500ms over a 30-day window).
  • This pairing drives operational decisions: breaching the SLO triggers alerting, error budget consumption, and investigation via bottleneck analysis and performance profiling.
INFERENCE PERFORMANCE METRICS

SLI vs. SLO vs. SLA: A Critical Comparison

A comparison of the three core components of service level management, detailing their distinct roles in defining, measuring, and guaranteeing inference system performance.

FeatureService Level Indicator (SLI)Service Level Objective (SLO)Service Level Agreement (SLA)

Core Definition

A quantitative measure of a specific aspect of service performance.

A target value or range for a Service Level Indicator.

A formal contract that defines the consequences for breaching an SLO.

Primary Role

Measurement. What is being measured?

Target. What is the goal?

Contract. What happens if the goal is missed?

Nature

A metric (e.g., P99 latency, error rate).

A threshold or goal (e.g., P99 latency < 200ms).

A business agreement with legal/financial terms.

Typical Form

Numeric value with units (e.g., 185ms, 0.05%).

Inequality or range (e.g., >= 99.9%, < 1 sec).

Document with clauses, penalties, and remedies.

Audience

Engineering & SRE teams.

Internal engineering, product, and business teams.

External customers or internal business stakeholders.

Example in Inference

P99 latency for text completion requests.

P99 latency shall be < 250ms for 99.9% of requests over a 30-day period.

Service credits apply if P99 latency exceeds 250ms for more than 0.1% of requests in a billing cycle.

Change Frequency

Can evolve with system architecture.

Reviewed and adjusted quarterly or with major releases.

Negotiated annually or per contract period.

Relationship

Measures the system.

Sets a goal for the SLI.

Puts the SLO into a business context with consequences.

INFERENCE PERFORMANCE BENCHMARKING

How to Define and Implement SLIs

A Service Level Indicator (SLI) is the foundational, quantitative measure of a specific aspect of service performance, such as request latency or error rate, used to evaluate compliance with Service Level Objectives (SLOs).

An SLI is a direct, measurable signal of user-perceived service health. For inference systems, core SLIs include latency (P50, P99), throughput (Tokens Per Second), and availability (successful request rate). Defining an SLI requires selecting a metric that directly correlates with user experience, establishing a precise measurement method, and instrumenting the system to collect data reliably. This forms the empirical basis for all performance objectives.

Implementation involves embedding telemetry to capture raw measurements (e.g., request timestamps, error codes), then aggregating this data into the defined SLI over a specific time window. The SLI must be paired with a Service Level Objective (SLO), which is the target threshold (e.g., "P99 latency < 200ms"). Effective SLIs are stable, representative of real user traffic, and actionable for engineering teams to diagnose and resolve performance regressions.

SERVICE LEVEL INDICATOR

Frequently Asked Questions

A Service Level Indicator (SLI) is a quantitative measure of a specific aspect of service performance, such as request latency or error rate, that is used to evaluate compliance with Service Level Objectives (SLOs). This FAQ addresses common questions about SLIs in the context of AI inference performance.

A Service Level Indicator (SLI) is a directly measurable, quantitative metric that tracks a specific dimension of a service's performance or reliability over time. For AI inference services, common SLIs include latency (e.g., P99 response time), throughput (e.g., successful requests per second), availability (e.g., percentage of successful requests), and quality (e.g., model accuracy or error rate). An SLI provides the raw data used to evaluate whether a service is meeting its defined Service Level Objectives (SLOs).

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.