To diagnose a problem, read application performance metrics together. When p99 latency spikes, users are waiting; you still need to identify whether the cause is a traffic surge, a failing dependency, a throttled container, or a slow query. Six signals carry most of the diagnostic weight: latency percentiles, throughput, error rate, saturation, availability, and Apdex. Use each signal to answer a different question about the same requests, and read all six on one timeline to rule causes in or out in sequence.
A percentile is the value below which a given share of requests falls. p99 is the latency that 99% of requests beat. Tail percentiles carry most of the weight in this taxonomy because averages hide the slow requests users notice. The sections that follow take these steps in order: first, define and calculate each metric, covering latency percentiles, throughput, error rate and availability, Apdex, and saturation; second, look at database query performance and transaction tracing; third, map each metric to the Four Golden Signals, RED, and USE frameworks; fourth, set starting thresholds and burn-rate alerts; fifth, collect the data with APM agents, OpenTelemetry, Prometheus, or eBPF; and finally, work through a latency regression across microservices as a worked example.
Confirm the latency regression at p99. Check throughput to rule load in or out. Split errors into 4xx and 5xx. Inspect saturation on the affected pods: CPU throttling, memory, and GC. Then open traces from the slow window to find the span that grew, and confirm it against database and connection-pool metrics.
What Are Application Performance Metrics?
Application performance metrics are numeric time series that describe how a service handles requests: how long requests take, how many arrive, how many fail, and how close the underlying resources are to their limits. Metrics are aggregated point-in-time observations. Logs and traces record individual events with more detail. The CNCF TAG Observability whitepaper calls metrics, logs, and traces the “primary signals” rather than “three pillars” and describes metrics as among the most efficient signals for “known unknowns.”
Each signal fills a gap the others leave. A 2026 CNCF blog post puts it this way: metrics indicate a symptom, traces frame the path, logs explain the event, and profiles can pinpoint the code-level cause. A latency metric shows that checkout slowed down. A trace shows which downstream call inside checkout grew. A log line shows the exception that call threw.
The core metrics, what they measure, and how to calculate them:
Latency and Response Time: Averages vs. p50, p95, and p99
Track latency as a distribution, alert on the tail, and estimate percentiles from histogram buckets. Latency is how long a service takes to handle a request (Google SRE book).
Response time is what the caller observes, which adds network transit and any queueing in front of the server. Both matter, and they diverge most when a load balancer or connection pool starts queueing work.
Averages hide the slow requests. The SRE book’s example: a service with “an average latency of 100 ms at 1,000 requests per second” can have “1% of requests” that “easily take 5 seconds.” The average looks healthy while ten users per second wait five seconds.
Fan-out multiplies the tail. In “The Tail at Scale”, Jeffrey Dean and Luiz André Barroso describe servers that typically respond in 10ms but have a 99th-percentile latency of one second. If one user request has to collect responses from 100 such servers in parallel, 63% of user requests take more than one second. The math is 1 − 0.99^100 ≈ 0.63. In one measured Google service, the 99th-percentile latency for a single leaf request was 10ms, but waiting for all leaf requests took 140ms.
Measure failed-request latency separately. The SRE book points out that an HTTP 500 caused by a lost database connection can return very quickly, so mixing errors into the latency distribution makes the service look faster than it is. The book also notes that “a slow error is even worse than a fast error,” so it recommends tracking error latency instead of filtering errors out.
How Percentiles Are Calculated From Histograms
Most metrics backends never store individual request durations. Instrumentation counts requests into buckets, and the query engine estimates a percentile from those counts. The estimate’s accuracy depends on bucket boundaries.
Prometheus histogram_quantile() finds the bucket the requested percentile falls into and interpolates inside it. For classic histograms, the interpolation is linear: Prometheus assumes observations are spread evenly across the bucket. The native histogram specification gives an example of how far off that assumption can go. If almost every request takes 110ms and the buckets sit at 100ms and 200ms, Prometheus estimates the median at 150ms and the 90th percentile at 190ms.
The error grows with bucket width. In the Prometheus histogram practices example, the true 95th percentile sits near 320ms. A classic histogram with a 300ms to 450ms bucket estimates it at 443ms, about 38% high. A native histogram in the same scenario places the spike in a 297ms to 324ms bucket and estimates 323ms. Native histograms use exponential bucket schemas with resolution set by a few parameters, so you do not pick boundaries by hand. Scraping them requires setting scrape_native_histograms: true globally or per scrape config (v3.8.0 release notes).
If you use classic histograms, put bucket boundaries around your SLO thresholds. OpenTelemetry recommends these boundaries, in seconds, for http.server.request.duration:
Never average percentiles across instances. A Prometheus summary computes quantiles inside each process, and the Prometheus practices page marks avg(http_request_duration_seconds{quantile="0.95"}) as “BAD!” because averaging quantiles “yields statistically nonsensical values.” The 95th percentile of a fleet depends on the full distribution of every instance, and the per-instance quantiles have already thrown that distribution away. Histograms keep the bucket counts, so you can sum them across instances first and compute the percentile afterward. This query returns the fleet-wide p95 over the last five minutes:
The same rule applies to averages. Sum the _sum series and the _count series across instances, then divide.
Throughput and Request Rate as Load Context
Read throughput to assess whether a latency or error change has a load explanation. In the SRE book’s terms, traffic is the demand placed on your system, usually HTTP requests per second for a web service, optionally broken out by the nature of the requests, such as static versus dynamic content. For a key-value store it becomes transactions and retrievals per second, and for a streaming system, network I/O or concurrent sessions.
Throughput measures how much work completes per second; latency measures how long each unit takes. Read the two together. Two patterns cover most incidents:
- Throughput up, latency up: The service is approaching a capacity limit, and queueing is adding wait time to each request.
- Throughput flat, latency up: Load did not change, so the cause sits inside the request path: a dependency, a deploy, a resource limit, or a slow query.
Waiting time in a queue grows roughly as 1/(1−ρ), where ρ is utilization, which is why the first pattern turns sharp. In a USENIX SREcon19 APAC talk, Plenz describes the effect as superlinear: each additional 10 points of utilization stretches tail latency more than the previous 10 did. A worked M/M/c table with a 4ms service time on System Design Simple puts mean wait at 13.3ms at 70% utilization, 40.0ms at 90%, and 400ms at 99%. Going from 70% to 90% utilization in that table triples mean wait.
Check request volume before interpreting a percentage. A service handling 10 requests per hour turns one failure into a 10% error rate, a case the SRE Workbook uses to show why low-traffic services need different alerting.
Error Rate and Availability Formulas
Error rate is failed requests divided by total requests, expressed as a percentage:
The hard part is deciding what counts as failed. The SRE book counts requests that fail “explicitly (e.g., HTTP 500s), implicitly (for example, an HTTP 200 success response, but coupled with the wrong content), or by policy (for example, ‘If you committed to one-second response times, any request over one second is an error’).” Load balancer 5xx counts catch completely failed requests. Only end-to-end tests catch wrong content.
Split 5xx from 4xx:
- A 5xx usually means the server failed. A 4xx usually means the client sent something the server rejected, so a 4xx spike right after a deploy is worth checking against API contract changes before you look at capacity.
- The OpenTelemetry HTTP span conventions encode this split: for a 4xx, span status must stay unset on a server span and should be set to
Erroron a client span. 5xx codes should set status toError. - The conventions also note that context changes the answer. A 404 is an error when the application expected the resource to exist and is fine when the application is checking whether it exists.
This PromQL computes the 5xx error ratio over five minutes, assuming a request counter labeled with the status code:
Availability can be measured by time or by requests. Time-based availability divides uptime by total time. Request-based availability divides successful requests by valid requests, which matches what users experienced and works better for services that degrade partially.
SLAs usually state availability as a percentage over a calendar window. The SRE book availability table translates each level into allowed downtime, assuming no planned downtime:
The yearly figures use a 365-day year: 99.99% leaves (1 − 0.9999) × 525,600 = 52.56 minutes. The monthly figures are consistent with a 30-day month, though the SRE table does not state its monthly basis. Moving from 99.9% to 99.99% shrinks the monthly allowance from 43.2 minutes to 4.32 minutes.
Apdex Score: Calculating User Satisfaction
Apdex compresses a latency distribution into one number between 0 and 1 against a target time T. The Apdex Technical Specification V1.1 sorts each sample into one of three zones:
- Satisfied: The response completes within T, and the user is not impeded.
- Tolerating: The response takes longer than T but no longer than F = 4T; the user notices lag and continues.
- Frustrated: The response takes longer than 4T, or the request returned an error the tool can detect, and the user may abandon the task.
The score is:
A worked example from the Defining Apdex paper: 60 satisfied, 30 tolerating, and 10 frustrated samples out of 100 give (60 + 15) / 100 = 0.75. Frustrated samples add nothing to the numerator but count in the denominator. The specification requires reporting T alongside the score, two decimal places, and 100 samples as the minimum for normal reporting.
Pick T per application, and per transaction type where behavior differs. The specification recommends a default T of 4 seconds.
New Relic uses 0.5 seconds as its default for application servers and allows separate T values per key transaction. New Relic also notes that apps under 100 requests per minute do not generate enough data for a stable score.
Dynatrace gives an example of why one T per app falls short: a complex search can take up to 6 seconds while a homepage needs to load in under 2.
The 4× multiplier has empirical roots. The Defining Apdex paper reports field observations of tolerance ratios at 3:1, 4:1, and 5:1, “with a preponderance of 4.”
Start T at the latency your users accept for that action, from real-user data or a synthetic baseline, and treat Apdex as a summary for stakeholders. For alerting, percentile SLOs carry more information: Apdex 0.85 does not tell you whether the problem is many tolerating requests or a few frustrated ones.
Saturation Metrics: CPU, Memory, Garbage Collection, and Kubernetes Limits
Inspect CPU throttling, memory pressure, and garbage collection when latency rises without a throughput change. The SRE book defines saturation as how full a service is, with emphasis on the resources that are most constrained, and notes that “latency increases are often a leading indicator of saturation.”
Measuring p99 over a one-minute window gives an early warning. Brendan Gregg’s USE method supplies the checklist: for every resource, check utilization, saturation, and errors. Saturation there means queued work the resource cannot service yet, and any sustained non-zero value adds latency.
CPU Utilization and Kubernetes Throttling
CPU averages hide bursts. Gregg’s “CPU Utilization is Wrong” gives the example of 80% utilization over one minute concealing bursts of 100%. Kubernetes CPU limits make the problem sharper.
The kubelet enforces CPU limits through CFS quota by default (Kubernetes resource managers). The kernel divides time into periods, 100ms by default (kernel CFS bandwidth docs), and gives each cgroup a quota of runtime per period, so once the container spends its quota, every thread in it waits for the next period. A multi-threaded service can burn a 1-core limit in the first few milliseconds of a period and then stall for the remainder, even though its one-minute average sits well under the limit. Grafana’s Kubernetes monitoring docs note that throttling is common even when CPU usage looks low in charts.
cAdvisor exposes the counters. This query returns the fraction of CFS periods in which each container was throttled over the last five minutes:
container_cpu_cfs_throttled_seconds_total adds the total time the container spent throttled, which converts the ratio into latency budget lost.
Requests, Limits, and Memory
Requests and limits do different jobs. The scheduler uses requests to place pods, and the kernel enforces limits through cgroups (Kubernetes resource management docs). A CPU request acts as a weight under contention, so containers with larger requests get more CPU time. A CPU limit is a hard ceiling enforced by throttling. If you set a CPU limit without a request, Kubernetes sets the request equal to the limit (assign CPU resources). Pods with requests equal to limits get the Guaranteed QoS class, pods with unequal values are Burstable, and pods with neither are BestEffort.
Memory does not throttle. A container that exceeds its memory limit triggers the Linux OOM killer (Kubernetes memory QoS). kube-state-metrics records the outcome in kube_pod_container_status_last_terminated_reason with reason="OOMKilled". CPU throttling slows a container; an OOMKill restarts it. Treat them as separate failure modes with separate alerts.
Pressure Stall Information gives a cleaner saturation signal than utilization. PSI reports the share of time tasks stall waiting on CPU, memory, or I/O, at node, pod, and container level. Kubelet PSI metrics are generally available as of Kubernetes v1.36 (PSI GA announcement) and require cgroup v2 and Linux 4.20 or later.
Garbage Collection and Memory Leaks
GC pauses turn into tail latency because in-flight requests stop while the collector holds the world. Runtimes differ in how much:
- JVM G1: The default collector targets a maximum pause of 200ms (
-XX:MaxGCPauseMillis) (Oracle G1 reference). Full GCs show up in logs as “Pause Full (G1 Compaction Pause)” and are the expensive case. - JVM ZGC: ZGC does its expensive work concurrently, and JEP 439 reports pauses typically under one millisecond for Generational ZGC. In the JEP 333 SPECjbb 2015 benchmark, ZGC’s p99 pause was 1.512ms against G1’s 428.095ms (JEP 333).
- Go: The Go GC guide explains that pauses scale with GOMAXPROCS and the time to stop running goroutines, not with heap size.
GOGC(default 100) andGOMEMLIMITcontrol collection frequency. - .NET: Background GC lets threads run during generation 2 collections, while generations 0 and 1 stay non-concurrent (Microsoft background GC docs).
OpenTelemetry names the standard series: jvm.gc.duration and jvm.memory.used_after_last_gc for the JVM, go.memory.gc.pause.duration and go.memory.gc.goal for Go, and dotnet.gc.pause.time for .NET 9 and later. The used-after-GC series is the leak detector. Oracle’s memory leak troubleshooting guide identifies heap and old generation usage that keeps rising even after several full GCs as the indicator of a leak. Rising post-GC baseline, rising GC frequency, and rising pause time together describe a heap filling with live objects; the JVM eventually throws OutOfMemoryError, and in a container the growing heap can hit the memory limit first and trigger the OOMKill described above.
Database Query Performance and Transaction Tracing
Three database failure modes commonly show up as request latency: one slow query, many fast queries in a loop, or requests waiting for a connection. Each has its own metric.
Slow Queries
Database slow-query logs capture statements over a duration threshold. In PostgreSQL, log_min_duration_statement logs every completed statement that ran at least the configured time; the default of -1 disables it, 0 logs everything, and unitless values are milliseconds. Turn on log_lock_waits too, since it logs sessions that wait longer than deadlock_timeout for a lock, which separates “slow query” from “query blocked by another query.” pg_stat_statements aggregates calls, total execution time, and rows per normalized statement, which ranks queries by total cost instead of single-execution time.
MySQL’s slow query log records statements that take more than long_query_time seconds and examine at least min_examined_row_limit rows. long_query_time defaults to 10 seconds (MySQL system variables), which is far too high for a web service; lower it to match your latency SLO. Lock acquisition time does not count toward the threshold.
On the client side, OpenTelemetry defines db.client.operation.duration, a histogram in seconds with recommended buckets of [0.001, 0.005, 0.01, 0.05, 0.1, 0.5, 1, 5, 10]. When reported beside a database span, its value should equal the span duration, so metric and trace agree.
N+1 Query Patterns
In an N+1 pattern, application code issues one query to fetch a list and then one query per item. Every individual query is fast, so engineers find no entries for it in slow-query logs. In traces, engineers see dozens of sequential, near-identical database spans for the request. Sentry’s N+1 detector looks for sequential, non-overlapping database spans with similar descriptions, a total duration above 50ms, and more than about five spans (vendor-stated criteria). You can apply the same rule in any trace backend that counts spans per trace.
Connection Pool Metrics
Pool exhaustion looks like database slowness from the application’s side: threads queue for a connection before any query runs. HikariCP’s JMX MBean exposes active connections, idle connections, total connections, and threads awaiting a connection (HikariCP MBean wiki). Its Micrometer tracker adds connections.pending, connection usage time, and connections.timeout. OpenTelemetry’s equivalent wait metric is db.client.connection.wait_time, the time to obtain an open connection from the pool.
The failure mode is specific:
- When the pool hits
maximumPoolSize(default 10) with no idle connections,getConnection()blocks for up toconnectionTimeout(default 30 seconds) and then throws anSQLException(HikariCP README). - The diagnostic signature is idle at 0, pending above 0, and acquire time climbing.
A larger pool rarely fixes it. A starting point from the PostgreSQL project is connections = ((core_count * 2) + effective_spindle_count), and pool-locking should be fixed at the application level before the pool is enlarged (HikariCP pool sizing wiki).
In one reported HikariCP issue, the maintainer pointed to inefficient, long-running queries holding connections as the likely cause, which sends you back to the slow-query log.
Four Golden Signals vs. RED vs. USE Frameworks
The three frameworks overlap heavily and differ in what they point at. The Four Golden Signals (latency, traffic, errors, saturation) come from the Google SRE book, which says that if you can measure only four metrics of a user-facing system, measure these. Tom Wilkie created the RED method (rate, errors, duration) in 2015 as a microservices-oriented philosophy, inspired by Gregg’s USE method (Grafana Labs). Gregg’s USE method (utilization, saturation, errors) targets resources: CPUs, memory, disks, network interfaces, and software resources such as thread pools and file descriptors.
Here is how each metric in this guide maps to the frameworks:
Use RED for every request-serving service. Wilkie described it as “a good proxy to how happy your customers will be,” and Grafana’s dashboard guidance calls RED dashboards good for alerting and SLAs. Use USE for the machines, containers, and pools underneath. Wilkie called the two “two different views on the same system”: RED is about caring for users, USE about caring for machines. The Golden Signals combine both, which is why saturation appears in them and not in RED.
That mapping answers the common “five metrics” question. Track p99 latency, request rate, error rate, saturation of the most constrained resource, and availability against an SLO. The first four are the Golden Signals. Availability converts errors into the number your SLA is written against.
Setting Thresholds, SLOs, and Alerts for Each Metric
Start with thresholds grounded in user perception and queueing behavior, then replace them with SLOs derived from your own traffic. No threshold transfers unchanged between services, but the starting points below have documented rationale:
The CPU band trades cost against queueing delay, and the right point depends on your service. In a Google Cloud HPA test, a 50% CPU target scaled to 22 CPUs with a 395ms P95, while a 70% target served the same load on 12 CPUs. Netflix runs the other way: it targets 50% CPU for autoscaling and starts shedding non-critical traffic at 60% (InfoQ). Load-test before you pick.
Error Budgets
An error budget is one minus the SLO. A 99.9% SLO leaves a 0.1% budget, so a service receiving 1,000,000 requests in four weeks can fail 1,000 of them (SRE Workbook). Budgets make reliability negotiable: a single outage that causes 1,500 errors against a 3,000-error budget spends half of it (Implementing SLOs), and the team uses its error budget policy to decide what happens next.
Burn-Rate Alerts
Burn rate is how fast the service consumes its budget relative to the SLO. A burn rate of 1 at a 99.9% SLO over 30 days means a constant 0.1% error rate that spends exactly the whole budget in 30 days. The SRE Workbook recommends multi-window, multi-burn-rate alerts as the starting configuration for a 99.9% SLO:
The burn rates come from the budget fraction and the window. A 30-day window is 720 hours, so 2% of the budget in 1 hour is 0.02 × 720 ÷ 1 = 14.4, and 5% in 6 hours is 0.05 × 720 ÷ 6 = 6. The alert fires only when both the long and short windows exceed the threshold. The short window, sized at 1/12 of the long one, makes the alert stop firing five minutes after errors stop instead of an hour later.
Low-traffic services break the math: at 10 requests per hour, one failure is a 1,000x burn rate. And a 90% availability target makes a 1-hour 2% alert impossible, because a full outage consumes only 1.4% of that budget per hour.
Alert on Symptoms, Investigate Causes
Page on what users feel: latency SLO burn, error-rate burn, and availability. The SRE book’s rule is to page when a golden signal is problematic, or for saturation, nearly problematic. CPU throttling, GC pause time, and pool wait time belong on dashboards and in tickets, where they explain a symptom alert. Paging on every cause produces cascades: one exhausted connection pool raises latency, error rate, pending threads, and timeouts at once, and each would page separately.
Collecting Metrics With APM, OpenTelemetry, and Prometheus
Compare APM agents, OpenTelemetry, Prometheus, and eBPF by which metrics they collect, how much code you change, and whether metrics, traces, and logs share the identifiers needed for correlation.
APM vs. Observability
In this guide, APM means a vendor agent per language that traces requests through application code and computes latency, throughput, and errors per service. Observability widens the scope to any question you can answer from telemetry, across infrastructure, Kubernetes, and services. Gartner’s research summary for its Magic Quadrant for Observability Platforms states that most observability platforms include APM capabilities but that APM is not enough. Ben Sigelman, co-creator of Google’s Dapper tracer, told InfoQ that logs, metrics, and tracing are better thought of as data pipes than pillars, with strategy organized around workflows.
OpenTelemetry
OpenTelemetry is the vendor-neutral instrumentation standard. You add an SDK or auto-instrumentation agent, it emits metrics, traces, and logs with shared semantic conventions, and it exports them over OTLP, a push protocol over gRPC or HTTP. Tracing is stable across API, SDK, and protocol; metrics have a stable API and protocol with a mixed-status SDK; and logs are stable (specification status summary). The OTLP 1.11.1 specification is stable for traces, metrics, and logs. Status varies by language SDK. On the languages page, Java has stable traces, metrics, and logs, while Python and JavaScript list logs as Development.
The semantic conventions matter for the metrics in this guide because they fix names and attributes across services. http.server.request.duration carries http.request.method, http.response.status_code, http.route, and error.type, so one histogram yields latency percentiles, throughput, and error rate per route.
Prometheus
Prometheus pulls metrics: it scrapes each target’s exposition endpoint on an interval and stores samples in a local TSDB, and PromQL computes rates, ratios, and percentiles from them. The two models now meet. Prometheus 3.0 can act as an OTLP receiver on /api/v1/otlp/v1/metrics (Prometheus 3.0 announcement), and its UTF-8 support lets OpenTelemetry metric names keep their dots, although the OTLP receiver still normalizes names by default unless translation_strategy is set to NoTranslation. Two mismatches remain. Prometheus stores cumulative counters, while OTLP can send deltas, so delta ingestion needs the otlp-deltatocumulative feature flag (Prometheus OpenTelemetry guide). And OpenTelemetry resource attributes map to job and instance labels, with the rest placed in a target_info metric, so promote attributes like service.name and k8s.cluster.name to labels if you query by them.
eBPF-Based Collection
SDK instrumentation requires a code or deployment change in every service, and services nobody instrumented stay dark. eBPF closes that gap by observing requests from the Linux kernel instead of from inside the process. eBPF lets small verified programs attach to kernel and user-space hooks; an observability agent hooks network syscalls such as send() and recv(), parses the protocol, and derives request rate, errors, and duration for each connection. OpenTelemetry eBPF Instrumentation (OBI), into which Grafana donated Beyla, captures RED metrics and trace spans for Linux HTTP/S and gRPC services without changing application code.
Kernel-level capture has documented limits:
- Kernel features: OBI requires Linux 5.8 or later with BTF enabled, or RHEL-family 4.18+ with backports, and header-based trace context propagation needs 5.17 or later for BPF loops (OBI distributed traces).
- Encrypted traffic: Agents read TLS payloads by attaching uprobes to library functions such as OpenSSL’s
SSL_writeandSSL_read, before encryption (Pixie). Java’s TLS stack runs inside the JVM, so Beyla cannot capture it with eBPF alone (Beyla language agents). - In-process context: OBI’s first release does not handle distributed tracing for reactive frameworks, Java virtual threads, or complex thread pools (OBI release announcement). Business attributes that exist only inside application code still need SDK spans.
eBPF reduces the instrumentation surface: one node-level agent replaces per-service SDKs and language agents for baseline RED metrics. The eBPF programs and their user-space processors still use CPU and memory on every node. A vendor’s benchmark of its own agent shows roughly 20% of one core at around 10,000 requests per second (Coroot docs); those results came from one benchmark workload; actual figures vary with your traffic, telemetry configuration, and cluster conditions, so validate on your own nodes.
groundcover’s eBPF Sensor With OTLP Ingest
groundcover’s eBPF sensor runs as a Kubernetes DaemonSet, one pod per node, and captures golden signals (latency, traffic, errors, saturation) for every workload on the node from the Linux kernel. It requires zero application instrumentation: no SDKs, no per-service agents, no restarts. Services nobody instrumented show up in service maps as soon as the sensor deploys. Collection covers 100% of signals with zero sampling. The sensor also collects logs, traces, Kubernetes events, and full HTTP request and response payloads.
OpenTelemetry data keeps its place. groundcover accepts OTLP over gRPC and HTTP for logs, traces, and metrics, plus Prometheus remote write and exposition format, so existing Collector pipelines and SDK spans arrive directly. The SDK spans that carry business context sit beside eBPF-captured requests, Kubernetes events, and workload metadata for the same pod, in the same interface. Metrics land in VictoriaMetrics, which is PromQL-compatible, so existing queries such as the throttling ratio above run unchanged. Logs, traces, and Kubernetes events land in ClickHouse. Under the default model, BYOC (Bring Your Own Cloud, where your data plane runs in your own cloud account), both stores run in that account.
Deployment Requirements
The sensor requires Kubernetes 1.21 or later on Linux nodes with Linux kernel 4.16 or later. Supported managed platforms are EKS, AKS, and GKE. AWS Fargate and Docker Desktop are not supported. The installer needs permission to create a Deployment, a DaemonSet with privileged containers, and ConfigMaps.
Worked Example: Diagnosing a Latency Regression Across Microservices
This scenario is illustrative. The numbers are chosen to show how the signals combine, not taken from a specific incident.
A checkout service’s page-level burn-rate alert fires: errors and slow requests have burned more than 14.4x the budget over both the last hour and the last five minutes. The on-call engineer works through the signals in order.
- Latency: The fleet-wide p99 for
POST /checkout, computed from summed histogram buckets, rose from 180ms to 2.1s after 14:05. p50 moved only from 40ms to 55ms, so most requests are fine and a minority are very slow. - Throughput: Request rate is flat at its usual level. Load did not cause this, so the cause sits inside the request path.
- Errors: The 4xx rate is unchanged. The 5xx rate rose from 0.05% to 1.2%, and those failed requests take about 30 seconds. A 30-second failure lines up with HikariCP’s default
connectionTimeout. - Saturation: Checkout pods show a throttled-period ratio of about 40% since 14:05, while average CPU sits near 55% of the limit. Memory after GC is flat. A deployment of checkout rolled out at 14:03.
- Traces: Spans from the slow window show the request waiting before its first database span. The engineer confirms the wait against pool metrics: idle connections at 0, pending threads climbing, acquire time near 30 seconds. For requests that did get a connection, the engineer finds a new loop issuing one
SELECTper cart item, an N+1 pattern added in the 14:03 release. Each query is fast; together they hold connections for the length of the loop and exhaust the pool. The throttling from step 4 is a contributing factor from the same release: the per-item loop adds CPU work to every checkout request, and the CFS quota stretches that work across extra 100ms periods.
The fix is to batch the per-item queries into one and roll back until it ships. Raising the pool size or the CPU limit would have treated symptoms.
Each step answered a different question, and the answer depended on the step before it. When latency histograms, error counters, throttling counters, deploy events, pool metrics, and traces live in separate tools, the engineer rebuilds that chain by hand under time pressure.
In groundcover, metrics, logs, traces, and Kubernetes events share one interface, so an engineer can inspect the p99 spike, throttled pods, the 14:03 rollout event, and the trace with repeated database spans in one view.
If you want to validate the architecture on your own cluster, the free plan includes BYOC and requires no credit card. Deploy groundcover’s eBPF sensor on one cluster and evaluate full-cluster visibility within hours under the documented deployment conditions.
FAQs
A practical set of five, built from the Google SRE book’s Four Golden Signals: p99 latency, request rate, error rate, saturation of the most constrained resource, and availability against an SLO. Availability turns the error signal into the percentage SLAs are written against, and Apdex is a common addition for stakeholder reporting.
Instrument every service to emit a request duration histogram with method, route, and status code attributes, through an OpenTelemetry SDK, a Prometheus client library, or an eBPF agent that needs no code changes. From that histogram, compute throughput as the rate of the count, error rate as the share of 5xx responses, and latency percentiles with histogram_quantile() after summing buckets across instances. Add container metrics for CPU throttling, memory, and GC, then define SLOs and burn-rate alerts on the user-facing signals.
APM traces requests through application code with per-language agents and reports service-level latency, throughput, and errors. Observability covers any question you can answer from telemetry, including infrastructure, Kubernetes state, and logs, correlated across signal types. Gartner’s observability platform research treats APM as one component of an observability platform and states that APM alone is not enough.
Set T to the response time your users accept for each action, not one value for the whole application. The Apdex specification recommends 4 seconds as a default, and New Relic defaults to 0.5 seconds for application servers. Fast interactive endpoints such as search-as-you-type need a much lower T than report generation. The frustrated boundary is fixed at 4T.
Alert on p99, or on an SLO burn rate built from a latency target. Averages hide the slow minority: the SRE book’s example shows a 100ms average coexisting with 1% of requests taking 5 seconds. In fan-out architectures, the tail worsens. Dean and Barroso show that with 100 parallel backend calls, a 1-in-100 slow response per server makes 63% of user requests slow.





