❯ Your Monitoring is Lying to You (and What It's Missing)

by Jonas Reyes — the builder's desk, Side Quest Studios
December 01, 2026

Let's talk about monitoring. Not the fancy dashboards your VP of Engineering showed off last quarter. I'm talking about the raw data that tells you if your systems are actually alive, breathing, and doing useful work. Because if you're like most folks, you've got a pile of metrics telling you everything's fine, right up until 3 AM when the pager goes off and it's definitely not. Your monitoring is lying to you. Or, more accurately, it's telling you a curated story, and it's missing the critical chapters.

We've all been there. CPU utilization looks great. Memory usage is steady. Network I/O is humming along. Then suddenly, everything falls over. Why? Because you're looking at the wrong things, or you're not looking deeply enough. This isn't about more metrics; it's about better metrics, and understanding what the hell they actually mean. Stop chasing vendor promises about "AI-powered anomaly detection" and start looking at the actual bits and bytes. You don't need a smart toilet to tell you something's wrong if you know how to read the flush Is America ready for smart toilets?.

The Illusion of Averages: Latency Kills

Your dashboard probably shows average response times. Great. Averages are for people who don't want to know the truth. An average latency of 100ms could mean everyone's getting 100ms, or it could mean 99% of requests are 10ms and 1% are 9 seconds. Guess which one your users remember?

What to do: Stop looking at averages for latency. Immediately. Focus on percentiles. P95, P99, and P99.9 are your friends. If your P99 latency is spiking, you've got problems, even if your average looks green. This tells you about the worst experiences your users are having.

How we do it: We push all our request metrics into Prometheus. Then, for API endpoints, we define SLIs based on percentile latency. A typical Prometheus query looks like this:

histogram_quantile(0.99, sum by (le, path) (rate(http_request_duration_seconds_bucket[5m])))

This gives you the 99th percentile for HTTP request durations, grouped by path. If that number starts climbing, you know exactly where to look. We alert on P99 over 500ms for critical paths. Don't just alert on "API Latency" – alert on "Login API P99 Latency." Specificity wins.

The Silent Killer: Resource Saturation and Hidden Queues

Your CPU might be at 20%, but if your single-threaded Python service is bottlenecked on a GIL lock or waiting for a slow upstream database, that 20% CPU isn't telling you anything useful. Similarly, low memory usage doesn't mean you're fine if your application is constantly swapping or thrashing its internal caches.

The real killer is saturation. Are your resources fully utilized for the work that matters? Or are requests piling up in queues, waiting for something?

What to look for: * Load average vs. CPU usage: High load average with low CPU usage often points to I/O wait. Your processes are waiting on disk or network. Run iostat -x 1 to see disk I/O, %iowait is a dead giveaway. * Queue depth: For databases, message queues (Kafka, RabbitMQ), and even web servers (nginx keepalive_requests or accept_queue), monitor the queue depth. If requests are backing up, your system is saturated, even if CPU looks bored. * Context switches: High context switch rates (see /proc/stat or vmstat -w 1) can indicate too many runnable processes fighting for CPU, especially if your application isn't designed for high concurrency. * Garbage collection pauses: For languages with GC (Java, Go, Python if you enable it explicitly), long GC pauses can halt your application threads. These won't show up as CPU spikes; they'll show up as latency spikes.

How we fix it: For I/O bottlenecks, we check iostat. If %iowait is high, we look at the application's I/O patterns. Is it doing too many small reads? Is the storage slow? For databases, we monitor active connections and query durations. SHOW PROCESSLIST in MySQL/MariaDB or pg_stat_activity in PostgreSQL are your best friends for spotting slow queries. For message queues, we track the number of unacknowledged messages. If it's growing, your consumers can't keep up.

A common one: a Python web service that hits a slow external API. The Python process itself might not be using much CPU, but it's waiting. We use psutil in our Python apps to monitor things like memory usage and open file descriptors, but also custom metrics for pending requests to external services.

import psutil
# ... inside your app's metrics collection ...
metrics.gauge('system.cpu.percent', psutil.cpu_percent(interval=1))
metrics.gauge('system.memory.percent', psutil.virtual_memory().percent)

The Unseen Dependency: External Services and Network Flakiness

You've built this beautiful, resilient system. But it talks to other systems. A third-party payment gateway. An external analytics service. Your internal Kafka cluster. When they go down, or even just get slow, your system feels it. Your monitoring often focuses inward, on your boxes.

What you're missing: * Latency to external services: Not just if they're up (a simple ping isn't enough), but how long it takes to get a meaningful response. * Error rates from external calls: Are you getting 500s from the payment provider? Is your Kafka producer failing to send messages? * DNS resolution times: A slow or flapping DNS server can cripple your application without touching your CPU or memory.

How we deal with it: We instrument every single external call our applications make. Every API request to a partner, every database query, every message queue publish. We track not just success/failure, but the actual duration.

For example, in Python using requests:

import time
import requests

def call_external_api(url, payload):
    start_time = time.monotonic()
    try:
        response = requests.post(url, json=payload, timeout=5)
        response.raise_for_status() # Raise HTTPError for bad responses (4xx or 5xx)
        return response.json()
    except requests.exceptions.RequestException as e:
        # Log error, increment an error counter metric
        metrics.increment('external_api.errors', tags={'host': url, 'type': 'request_exception'})
        raise
    finally:
        duration = time.monotonic() - start_time
        metrics.histogram('external_api.duration_seconds', duration, tags={'host': url})

This gives us invaluable data. If external_api.duration_seconds_bucket for payment_gateway.com starts spiking, we know where the problem is. We don't wait for our users to tell us payments are failing.

And don't forget DNS. A simple check with dig or nslookup can show you if your DNS resolver is healthy. Use dig @<your_dns_server> terminalking.com and watch the QUERY TIME line. If that's consistently high, you've found a new bottleneck.

The Human Element: Configuration Drift and "It Worked Yesterday"

Metrics tell you what is happening. They rarely tell you why. Often, the "why" is a human. A missed configuration change, a forgotten firewall rule, a manual change on one server that didn't propagate. This is where automation and change management come in, but your monitoring can hint at it.

What your monitoring can't tell you directly: * "Someone changed ulimit -n on that one server." * "The cron job that cleans up logs isn't running on web-03." * "The new load balancer config is sending 10x traffic to db-replica-01."

What to look for to infer these problems: * Asymmetry: If all your web servers are identical, but web-07 has higher CPU or lower request throughput, something is different. Compare metrics across a cluster. * Disappearing logs/metrics: If a service suddenly stops sending logs to your central logger or metrics to Prometheus, it's probably dead or misconfigured. This is often an alert in itself: "No data received from service X for 5 minutes." * Version mismatches: Track the deployed version of your application on each instance. If one is behind, it's a potential source of trouble.

How we catch it: We use configuration management (Ansible, usually) for everything. Period. No manual changes allowed. We also have health checks that specifically verify configuration files and running processes. A simple md5sum /etc/nginx/nginx.conf on startup, compared to a baseline, can catch a rogue change. For critical services, we have specific checks: "Is crond running? Is the log cleanup script present and executable?" These aren't just for deployment; they're part of runtime health checks.

For version tracking, we push the Git commit hash of the deployed code as a Prometheus gauge or a log field. This allows us to instantly correlate issues with specific code versions and easily spot nodes running old code. A human-readable linear clock for our deployments, if you will This ‘linear’ clock cleverly reimagines how to tell time.

Moving Forward: From Reactive to Proactive

Your goal isn't just to know when things break. It's to know before they break. Or, at the very least, to have the data immediately available to diagnose and fix. This isn't about collecting every metric under the sun. It's about collecting the right metrics, understanding their context, and correlating them effectively.

Start small. Pick one critical service. Instrument its external calls and its percentile latencies. Add a metric for queue depth if it has one. Set up alerts on those. Then, iterate. Don't drown yourself in a sea of data you don't understand. Focus on the four golden signals: latency, traffic, errors, and saturation. Everything else is usually a deeper dive into one of those.

Stop passively consuming dashboards. Start asking your monitoring system: "What are you not telling me?" And then go find the answers. Ship it.

by Terminal King — the terminal, Side Quest Studios

References