Programmatically tracked service level indicators (SLIs) are foundational to every site reliability engineering practice. When engineering teams have programmatic SLIs in place, they lessen the need to manually track performance and incident data. They're also able to reduce manual toil because our DevOps teams define the capabilities and metrics that define their SLI data, which they collect automatically — hence "programmatic."
Programmatic SLIs have three key characteristics: they're current (they reflect the state of a system right now), they're automated (they're reported by instrumentation, not by humans), and they're useful (they're selected based on what a system's user cares about). In this post, I'll explain how site reliability engineers (SREs) can help their teams develop and create programmatic SLIs.
SLIs — Identifying Capabilities
An important part of creating programmatic SLIs is identifying the capability of the system or service for which you're creating the SLI. Here are a few definitions:
■ A system is a group of services and infrastructure components that exposes one or more capabilities to external customers (either end users or other internal teams).
■ A service is a runtime process (or a horizontally-scaled tier of processes) that makes up a portion of a system.
■ A capability is a particular aspect of functionality exposed by a service to its users, phrased in plain-language terms.
SLIs and SLOs — Indicators and Objectives
But first, we need some more definitions. An indicator is something you can measure about a system that acts as a proxy for the customer experience. An objective is a goal for a specific indicator that you're committed to achieving.
Configuring indicators and objectives is the easy part. The hard part is thinking through what measurable system behavior serves as a proxy for customer experience. When setting system-level SLIs, think about the key performance indicators (KPIs) for those systems, for example:
■ User-facing system KPIs most often include availability, latency, and throughput.
■ Storage system KPIs often emphasize latency, availability, and durability.
■ Big data systems, such as data processing pipelines, typically use KPIs such as throughput and end-to-end latency.
Your indicators and objectives should provide an accurate snapshot of the impact of your system on your customers.
A more precise description of the indicator and objective relationship is to say that SLIs are expressed in relation to service level objectives (SLOs). When you think about the availability of a system, for example, SLIs are the key measurements of the availability of the system while SLOs are the goals you set for how much availability you expect out of that system. And service level agreements (SLAs) explain the results of breaking the SLO commitments.
Create Programmatic SLIs
You should write your programmatic SLIs in collaboration with your product managers, engineering managers, and individual contributors who work on a system. To define your programmatic SLIs (and SLOs), apply these steps:
1. Identify the system and its services.
2. Identify the customer-facing capabilities of the system or services.
3. Articulate a plain-language definition of what it means for each capability to be available.
4. Define one or more SLIs for that definition.
5. Measure the system to get a baseline.
6. Define an SLO for each capability, and track how you perform against it.
7. Iterate and refine our system, and fine-tune the SLOs over time.
Example capabilities and definitions
Here are two example capabilities and definitions for an imaginary team that manages an imaginary dashboard service:
■ Capability: Dashboards overview.
■ Availability Definition: Customers are able to select the dashboard launcher, and see a list of all dashboards available to them.
■ Capability: Dashboards detail view.
■ Availability Definition: Customers can view a dashboard, and widgets render accurately and timely manner.
To express these availability definitions as programmatic SLIs (with SLOs to measure them), you'd state these service capabilities as:
■ Requests for the full list of available dashboards returns within 100 milliseconds 99.9% of the time.
■ Requests to open the dashboard launcher complete without error 99.9% of the time.
■ Requests for an individual dashboard return within 100 milliseconds 99.9% of the time.
■ Requests to open an individual dashboard complete without error 99.9% of the time.
After you've settled on your SLIs, they should be reasonably stable, but systems evolve, and you'll need to revisit them regularly. It's a good idea to revisit them quarterly, or whenever you make changes to your services, traffic volume, and upstream and downstream dependencies.
The Latest
Part 4 covers OpenTelemetry: Next year, we're going to see more embrace of OpenTelemetry across the entire industry — opening up the future of instrumentation ...
Part 3 covers even more on Observability: Observability will move up the organization to support the sustainability and FinOps drive. The combined pressure of needing to adopt more sustainable practices and tackle rising cloud costs will catapult observability from an IT priority to a business requirement in 2024 ...
Part 2 covers more on Observability: In 2024, observability platforms will embrace and innovate with new technologies like GenAI for real-time analytics, becoming the fulcrum for digital experience management ...
The Holiday Season means it is time for APMdigest's annual list of Application Performance Management (APM) predictions, covering IT performance topics. Industry experts — from analysts and consultants to the top vendors — offer thoughtful, insightful, and often controversial predictions on how APM, Observability, AIOps and related technologies will evolve and impact business in 2024. Part 1 covers APM and Observability ...
To help you stay on top of the ever-evolving tech scene, Automox IT experts shake the proverbial magic eight ball and share their predictions about tech trends in the coming year. From M&A frenzies to sustainable tech and automation, these forecasts paint an exciting picture of the future ...
Incident management processes are not keeping pace with the demands of modern operations teams, failing to meet the needs of SREs as well as platform and ops teams. Results from the State of DevOps Automation and AI Survey, commissioned by Transposit, point to an incident management paradox. Despite nearly 60% of ITOps and DevOps professionals reporting they have a defined incident management process that's fully documented in one place and over 70% saying they have a level of automation that meets their needs, teams are unable to quickly resolve incidents ...
Today, in the world of enterprise technology, the challenges posed by legacy Virtual Desktop Infrastructure (VDI) systems have long been a source of concern for IT departments. In many instances, this promising solution has become an organizational burden, hindering progress, depleting resources, and taking a psychological and operational toll on employees ...
Within retail organizations across the world, IT teams will be bracing themselves for a hectic holiday season ... While this is an exciting opportunity for retailers to boost sales, it also intensifies severe risk. Any application performance slipup will cause consumers to turn their back on brands, possibly forever. Online shoppers will be completely unforgiving to any retailer who doesn't deliver a seamless digital experience ...
Black Friday is a time when consumers can cash in on some of the biggest deals retailers offer all year long ... Nearly two-thirds of consumers utilize a retailer's web and mobile app for holiday shopping, raising the stakes for competitors to provide the best online experience to retain customer loyalty. Perforce's 2023 Black Friday survey sheds light on consumers' expectations this time of year and how developers can properly prepare their applications for increased online traffic ...