concept monitoring in category istio

appears as: Monitoring
Istio in Action

This is an excerpt from Manning's book Istio in Action.

7.1.1  Observability vs Monitoring

The term observability has brought a level of confusion to the market in terms of a practice with which we may already be familiar: monitoring. Monitoring is the practice of collecting signals, telemetry, traces, etc and aggregating them, and matching them against some pre-defined criteria of system states we should carefully watch. When we find that one of our signals has crossed a threshold and may be heading toward a known bad state, we take action to remedy the system. For example, our operations teams can collect information about disk usage for a particular database installation. If those metrics show the disk usage approaching its capacity, we can fire an alert to trigger some kind of remediation like adding more storage to the disks.

Monitoring is a subset of observability. With monitoring we are specifically collecting and aggregating metrics to watch for known undesirable states and then alert on them. Observability on the other hand supposes up front that our systems are highly unpredictable and we cannot know all of the possible failure modes up front. We need to collect much more data, even high-cardinality data like userIDs, requestIDs, source IPs, etc where the entire set could be exponentially large, and use tools to quickly explore and ask questions about the data. For example, if a particular user — say user John Doe with userID 400000021 — goes to pay for the items in their cart and experiences a 10s delay choosing a payment option. All of the pre-defined metric thresholds (disk usage, queue depth, machine health, etc) might be at acceptable levels, but John Doe is highly irritated at this user experience. If we have designed with observability in mind, we can sift through the many signals along the request path such as service latency, infrastructure hops, which message queues or databases were involved, and even digging into the level of which database queries ran for this particular user and request.