TNS
VOXPOP
What news from AWS re:Invent last week will have the most impact on you?
Amazon Q, an AI chatbot for explaining how AWS works.
0%
Super-fast S3 Express storage.
0%
New Graviton 4 processor instances.
0%
Emily Freeman leaving AWS.
0%
I don't use AWS, so none of this will affect me.
0%
CI/CD / Observability

What Is Observability?

A description of observability in IT systems.
Feb 28th, 2020 8:00am by
Featued image for: What Is Observability?
Feature image via Pixabay. Inside images are by Katy Farmer.

There are some excellent resources on observability written by experts, and someday, I will read (and understand) them. What I needed instead was a  foundational knowledge that I could grow over time and add nuance to when the time was right. This is how I learned to code, play the trumpet, do car repairs and pretty much everything else I know how to do.

This article will be a foundation you can build on to understand observability (often abbreviated as o11y). If you’re like me, you have a lot of questions about observability, and they all begin with one very important question: what exactly is observability?

The Broad Definition

As a philosophy, observability is our ability as developers to know and discover what is going on in our systems. In practice, it means adding telemetry to our systems in order to measure change and track workflows.

The Example

Imagine we’re baking cookies. We mix up the cookie dough while we jam out to our favorite ‘80s pop station, scoop 12 cookies out onto a baking sheet, set a timer, and put the cookies in the oven. When the timer goes off, we pull the cookies out to discover that they have formed one mega-cookie, completely covering the baking sheet. Why did this happen? If we were cookie experts, we might be able to guess, but we’re just cookie enthusiasts who want snacks.

We know the effect (mega-cookie), but we don’t know the cause. Did we forget to add an ingredient? Was the oven the wrong temperature? Did we get so wrapped up in ‘80s kitchen karaoke that we only added half the flour?  If we could answer all of these questions, we would have enough context to find the cause of our mega-cookie. This is the underlying principle of observability: we want to be able to ask questions of our system to find out what is happening.

Telemetry, which is a science for measuring things, gives us breadcrumbs (cookie crumbs?) to follow when we’re investigating behavior. An irregular error message might lead us to an endpoint that might lead us to a service that uses an unmaintained library. If we had added telemetry to our baking process, we would know that the oven was the right temperature, but we only added half the flour. Easy, right?

In Practice

Katy Farmer
Katy, who is part of LightStep's developer relations team, lives in Oakland, CA with her husband and two dogs (at least one of whom talks to her about fun and technical stuff), but has lived in lots of places from East Coast to West Coast. She loves to experiment with code, break stuff, and try to fix it. Over the years, she's been an editor, juice bar barista, IT technician and manual laborer, so she's learned to fail and try again in a lot of industries. Ask her about Ruby, OOP, Go, video game development, Russian Literature, Star Wars, Dragon Age, or chord progressions — she'll be your friend right away

In our example, observability empowers us to discover why we created a mega-cookie instead of the perfect dozen. Of course, our systems at work can be a bit more complex than cookies (though I would argue both are of equal importance), which is why it’s so important to be able to ask and answer questions.

In practice, observability is a combination of metrics, logs, and traces in our software (these are also referred to as the “three pillars of observability”). When we talk about telemetry, this is how we measure. We could monitor the oven temperature (metric), read the baker’s notes (log) or examine the baker’s workflow (trace). In the real world, we’re probably going to use some kind of application metrics, database or syslogs and a tracing tool. Metrics and logs offer us valuable measurements, and traces show the lifecycle of a request.

In practice, observability is a combination of metrics, logs, and traces in our software (these are also referred to as the “three pillars of observability”). When we talk about telemetry, this is how we measure. We could monitor the oven temperature (metric), read the baker’s notes (log) or examine the baker’s workflow (trace). In the real world, we’re probably going to use some kind of application metrics, database or syslogs and a tracing tool. Metrics and logs offer us valuable measurements, and traces show the lifecycle of a request.

Traditionally, observability is a combination of metrics, logs, and traces in our software (these are also referred to as the “three pillars of observability”). We could monitor the oven temperature (metric), read the baker’s notes (log) or examine the baker’s workflow (trace). In the real world, we’re probably going to use some kind of application metrics, database or syslogs and a tracing tool. Metrics and logs are two types of  valuable data, and traces show the life cycle of a request. That said, data is different from measurement. In our baking example, the oven temperature is data; this alone doesn’t tell us whether the oven temperature was too high for cookies (and we certainly don’t know for sure whether the number on the dial was correct —maybe the oven was set to 350°F — but the real temperature inside the oven fell to 325°F every time the oven door was opened.

When observability is really going right, it can sometimes show us new information we weren’t expecting. If I carefully measured all of my baking ingredients (which I do not), I would know that the reason my chocolate chip cookies are so crispy is that I always add a little more butter than necessary. If we add telemetry to our systems with the same kind of diligence, we might discover unused resources (that eat into our budget) or unnecessarily complex workflows that increase latency.

Observability and You

Observability exists as a response to the deep technical question: What is going on in my system? I have certainly yelled versions of this, usually after a deployment. Like baking, we don’t know all of the things that can go wrong until our code is in production and our cookies are out of the oven. The explanations here are foundations for you to explore and further understand observability. If you want to see what an observability tool looks like in the real world, try the Lightstep sandbox, where you can happily click through problems that don’t affect you.

Group Created with Sketch.
TNS owner Insight Partners is an investor in: Pragma, Coast.
THE NEW STACK UPDATE A newsletter digest of the week’s most important stories & analyses.