Network Observability: Signals for Reliable Services

Track network health across hosts, DNS, paths, proxies, and requests. Learn which signals help diagnose failures without confusing telemetry with service SLOs.

published: reading time: 13 min read author: Geek Workbench
Quick Summary

Network observability combines host, DNS, path, proxy, and request signals to help explain service slowdowns and failures. This guide compares metrics, traces, flow records, probes, and packet captures, including their blind spots, alerting practices, label limits, and privacy risks. Use the checklists to connect infrastructure symptoms to user-facing SLOs and collect evidence that helps teams locate where a request path breaks.

Network Observability: Signals for Reliable Services

Network trouble often looks like an application problem. A page loads slowly, pods stay healthy, and the cause turns out to be a resolver queue or a congested path. To find it, follow a request across the boundaries it crosses instead of treating any one dashboard as the whole story.

Network telemetry helps explain an incident. A service-level objective (SLO) tells you whether users felt it. Metrics, traces, and flow records each add evidence, but none can answer every question on its own.

Introduction

Network observability combines signals from hosts, DNS, transport, proxies, and requests. Metrics show how a measure changes over time. Traces show timing for instrumented requests. Flow records summarize communication between endpoints. Each view leaves gaps, so incident work depends on comparing them.

The examples below use Linux host checks and Prometheus metrics. They also show where to stop collecting data: packet payloads and even flow metadata can expose information that has nothing to do with the failure you are investigating.

When to use

Add network observability when a service depends on remote calls, spans regions or network boundaries, or sits behind a proxy or load balancer. It helps when teams disagree about where a slowdown starts: comparable request and network measurements can narrow the search.

Start with a question, not a packet capture. For slow requests, compare DNS, connection setup, proxy queue time, and upstream timing. For an unhealthy zone, compare drops and retransmits with probes and backend selection in a healthy zone. If unexpected traffic appears, flow records can show which endpoints are talking before you inspect packets.

When not to use

Do not collect packet payloads just because a capture tool makes it easy. A capture can expose credentials, personal data, or message contents; encryption may hide the payload while leaving sensitive metadata visible. Use counters, flow records, or traces first, then capture only the traffic needed to answer a specific question.

Avoid paging on every interface counter or path probe. If no one owns the signal or knows what to do when it changes, keep it on a dashboard or remove it. A small static site may need only hosting availability and access logs.

Production failure scenarios

DNS succeeds, but too slowly

A resolver becomes overloaded and p95 lookup duration rises. Application request latency climbs, but TCP connect time and server processing remain stable. If DNS timing is missing, the team may scale application instances without changing the slow resolver path. Compare response codes and timing by resolver and region, then test from an affected host with dig.

Retransmits rise on one host group

Requests to one zone slow down while other zones remain healthy. Interface drops and TCP retransmits rise on a subset of hosts. A service-wide average hides the pattern. Break out signals by region or zone and correlate them with request traces and path probes. Retransmits are a clue, not a verdict: congestion, host pressure, and a receiver that cannot keep up can all contribute.

The load balancer accepts connections but queues requests

Client-side connection success looks normal, yet request latency grows. The intermediary has a rising queue and upstream connect failures as backends drain. Monitor frontend and backend connections separately, along with queue time, retry count, rejected requests, and backend health. Otherwise, the balancer can look healthy because it still accepts clients.

A route change creates a regional black hole

Only clients using a particular route lose packets or time out. Host interfaces show no local errors and application logs show no incoming request. Compare probes from several vantage points and review route changes with flow summaries. A single probe location can tell you its path is broken; it cannot establish that every path is broken.

Incident walkthrough: API latency rises in one region

Suppose API latency rises for users in one region while the application error rate stays steady. The service runs on Linux hosts scraped by Prometheus Node Exporter. Its application exports a request-duration histogram and traces include DNS, connection, and server spans. A network flow collector records endpoint pairs and byte counts. These are separate sources; no single one records the full request.

Signal What the incident shows What it cannot prove
Service metric The application’s p95 request duration rises in the affected region. An aggregate histogram cannot identify the cause or describe every request.
Trace Sampled slow requests spend most of their time in the DNS span; connect and server spans remain short. A trace covers only instrumented and sampled requests. Missing spans do not prove that a step was fast.
DNS telemetry Resolver latency or timeout counts rise for clients using one resolver. A successful lookup does not prove that the returned address is reachable or correct for the client.
Interface counters The affected hosts show no increase in receive drops or errors. One host’s NIC counters say nothing about drops at switches, routers, or other interfaces.
Flow records Records show DNS traffic in both directions between app hosts and the resolver. Endpoint, port, action, and byte counts do not show whether a response matched a query, what answer it carried, or whether the client accepted it.

Taken together, the evidence points to the resolver path, but it does not identify the exact fault. Check resolver logs and test lookups from an affected host and a healthy region. The trace narrows the slow part of the request; the other signals help locate the boundary.

Trade-offs

Signal Strength Cost or blind spot Good first use
Interface counters Cheap, continuous host-level health Cannot name an affected request; driver counters vary Detect local drops, errors, and saturation
DNS metrics Separates name resolution from connection delay Resolver cache and client behavior can complicate attribution Find slow or failing lookups by resolver and region
Synthetic path probes Repeatable checks from known locations Probe traffic may not match real user paths Detect regional reachability changes
Request traces Connects dependency timing to a request Sampling and instrumentation gaps hide some events Explain slow or failed request paths
Flow records Broad view of endpoint communication and volume Usually lacks payload and application semantics Find traffic shifts or unexpected peers
Packet capture Detailed protocol evidence for a bounded incident Expensive to inspect; payload creates privacy risk Short, approved diagnosis when metadata is insufficient

Prometheus instrumentation guidance covers counters, gauges, histograms, and labels. Review those practices before adding a metric family.

Observability checklist

Use this as a starting point, then remove items that do not answer operational questions in your environment.

  1. Map the path: document client, resolver, host interface, network boundary, proxy or load balancer, backend, and return path.
  2. Measure outcomes: collect request rate, errors, timeouts, cancellations, and latency distributions by service and region.
  3. Measure boundaries: track DNS duration and response codes, connection setup failures, retransmits or resets, interface drops, proxy queues, and backend connection failures.
  4. Keep dimensions bounded: prefer service, region, protocol, and stable destination class. Keep request IDs, user IDs, raw URLs, and ephemeral ports out of metric labels.
  5. Correlate records: propagate trace context, add consistent service identity to logs, and align clocks where timestamps are used across hosts.
  6. Alert on impact: alert on SLO symptoms and actionable component risks. Route lower urgency capacity trends to dashboards or tickets.
  7. Set a baseline: compare against normal daily and weekly patterns. Revisit thresholds after traffic changes, releases, and topology changes.
  8. Exercise the path: test DNS, connection setup, and service requests from relevant locations. Confirm that a failure creates an alert with a usable runbook.
  9. Limit capture scope: define who can capture traffic, which hosts and protocols are in scope, how long data is retained, and how it is deleted.

The commands below assume a Linux host with iproute2, ss, dig, and curl; replace eth0 with the interface under investigation. The metric example assumes Prometheus scrapes Node Exporter and the application exports http_request_duration_seconds_bucket with a bounded region label. Node Exporter exposes Linux interface counters as node_network_* metrics; DNS timing must come from client instrumentation or a resolver-specific exporter.

ip -s -s link show dev eth0
ss -s
dig +stats api.example.internal
curl -sS -o /dev/null -w 'connect=%{time_connect} first_byte=%{time_starttransfer} total=%{time_total}\n' https://api.example.com/health

These commands return snapshots, not a monitoring system. Linux interface counters are cumulative, so graph their rate rather than comparing raw totals. For example, this PromQL query shows receive drops reported by Node Exporter, while the second estimates the application’s p95 request duration:

sum by (instance, device) (rate(node_network_receive_drop_total{device!="lo"}[5m]))

histogram_quantile(
  0.95,
  sum by (le, region) (rate(http_request_duration_seconds_bucket[5m]))
)

The http_request_duration_seconds_bucket histogram is an application metric, not a built-in Prometheus metric; it must include the le bucket label, and region must come from a bounded value set. The Node Exporter guide shows how Prometheus scrapes host metrics. The Linux kernel interface statistics guide explains why driver and interface counters need context.

Security and compliance notes

Encrypted traffic limits what passive network sensors can see. TLS hides application payload from observers without decryption keys, but metadata such as endpoints, timing, byte counts, and some handshake details may remain visible. Treat those metadata as potentially sensitive too: they can reveal relationships, business activity, or user behavior.

Prefer application instrumentation that records only fields needed for reliability. Redact credentials and personal data from logs; avoid logging full query strings or headers by default. Flow records can reveal which systems communicate and when, even without payloads. Document their purpose and fields, restrict access, and set the shortest retention period that still supports incident response and applicable requirements.

Treat packet captures as more sensitive. Avoid continuous payload capture. For an approved investigation, narrow the hosts, interfaces, protocols, and capture window; encrypt the file, limit access, log who retrieves it, and set an automatic deletion date. If TLS decryption is proposed, document the trust boundary and protect both the keys and the resulting data.

Metric cardinality has a security angle as well as a cost angle. User-controlled labels can create an unbounded number of series and may leak identifiers. Validate label values and keep identities in access-controlled logs or traces when they are genuinely needed for investigation.

Common pitfalls

  • Ping tests ICMP reachability. It cannot confirm that DNS, TLS, an application endpoint, or a user workflow works.
  • A single counter rarely warrants a page. Check latency, errors, and affected scope before routing an alert.
  • Means and medians can hide timeouts in the tail. Keep the latency distributions that help you see them.
  • Per-user, per-request, raw URL, and source-port labels can overwhelm a metrics backend and expose sensitive data.
  • A trace contains only the spans emitted by instrumented components and retained by the sampling policy. Treat missing spans as missing evidence.
  • Broad packet capture adds storage and privacy risk without guaranteeing a better diagnosis. Keep captures narrow and brief.
  • A component alert does not measure user availability unless it tracks user-facing outcomes.

Quick recap checklist

  • Trace the path from name lookup through the response, including proxies and load balancers.
  • Measure latency distributions, request errors, DNS duration, connection failures, and network loss indicators.
  • Correlate metrics with logs, traces, flow records, and scoped path probes.
  • Keep metric dimensions bounded and keep user identifiers out of labels.
  • Alert on service impact and use network telemetry to locate the cause.
  • Set capture access, retention, and redaction rules before an incident.

Interview questions

1. Why are network telemetry and a service SLO different?

Network telemetry describes components and paths, such as drops on an interface or DNS response time. An SLO measures whether eligible user requests meet a defined reliability target. The telemetry helps explain an SLO breach, but component health alone does not establish user impact.

2. How would you investigate high request latency when application CPU is normal?

Break request latency into DNS, connection setup, proxy or load balancer queue, upstream, and application spans. Compare the affected region or backend with a healthy one. Check resolver timing, connection failures, retransmits, interface drops, and intermediary queues before assuming the application is uninvolved.

3. What is the risk of adding a request ID as a metric label?

Each distinct ID can create a separate time series, which drives cardinality and storage costs sharply upward. IDs can also contain or reveal sensitive information. Keep them in appropriately protected logs or traces, and use bounded labels for aggregate metrics.

4. When is packet capture justified if traffic is encrypted?

A bounded capture can still show packet timing, retransmissions, connection setup, and flow metadata even when payloads are encrypted. Use it when higher-level metrics and traces cannot distinguish the failure, and limit hosts, duration, access, and retention. Do not assume that decryption is needed or appropriate.

5. Which telemetry record would you use to find a failing request, and which would show communication volume between services?

A distributed trace shows timing and outcome for an instrumented request. A flow record summarizes communicating endpoints and traffic volume, but usually lacks application semantics. Logs capture events while metrics show trends; correlate them by time and a few stable identifiers.

6. Why do host clocks matter when correlating a client trace with server and network logs?

Clock skew can make events appear out of order or place them outside the incident window. Synchronize hosts to the resolution the investigation needs, use timezone-aware timestamps, and keep trace context or request IDs as extra correlation clues.

7. When should a network metric trigger a page instead of a dashboard or ticket?

Page when users are affected or an urgent component risk has a response someone can take. Send lower-urgency capacity trends and isolated noisy probes to a dashboard or ticket. Give each alert an owner and a runbook.

8. Why is high interface traffic alone not enough to diagnose congestion?

A busy service can move many bytes without being overloaded. Check queue depth, drops, errors, latency, and request outcomes, then compare with a baseline for the same host, region, and workload.

Further reading

Conclusion

During an incident, start with the request users say is slow. Use its trace to find the delayed step, then compare it with DNS, host, and flow data from the same region and time. Alert on the user-facing SLO; use network signals to locate the cause.

Category

Related Posts

The Observability Engineering Mindset: Beyond Monitoring

Move beyond monitoring with structured logs, metrics, and traces. Learn how SLOs, sampling, OpenTelemetry, and team practices improve incident debugging.

#observability #engineering #sre

Network Performance: Latency, Throughput, Jitter & Loss

Learn to measure link capacity, throughput, delay variation, packet loss, and response time with ping, iperf3, and curl.

#networking #performance #latency

Packet Capture and Network Troubleshooting: Layered Workflow

Use a layered workflow to diagnose DNS, route, TCP, TLS, and HTTP failures with ping, curl, tcpdump, and Wireshark, then collect useful incident evidence.

#networking #troubleshooting #tcpdump