Solution
Kubernetes observability
Kubernetes adds layers between your code and the user: pods, nodes, services, ingress. Observability has to connect a slow request to the exact pod and node that served it.
2 min read7 sectionsUpdated
On this page
Kubernetes observability with VitalRix
Infrastructure monitoring shows clusters, namespaces, workloads and pods with CPU and memory against limits, restart counts and reporting status, and alerts per instance; APM traces carry Kubernetes metadata from the Collector; logs link to traces; and uptime checks cover ingress and DNS. Guides: Kubernetes monitoring, CrashLoopBackOff, OOMKilled.
From alert to pod in four steps
- Alert: p95 latency of
POST /ordersabove target for 10 minutes. - Endpoint: APM shows the slow requests started at 14:20; traces carry
k8s.pod.nameandk8s.node.name. - Pod: every slow trace was served by two pods on the same node; infrastructure shows that node at 98% CPU because a batch job was scheduled onto it.
- Fix: add resource requests and a node affinity rule for the batch job; latency recovers.
This only works when traces are enriched with Kubernetes metadata and pod resources are measured against their limits.
Agent or Collector on Kubernetes?
Either can report node and pod metrics; a Collector DaemonSet also handles traces and logs. A pod reported by both counts once in VitalRix.
Do I need a service mesh?
No. OpenTelemetry in your services gives request-level detail; a mesh adds network-level data if you already run one.
Related reading
- The three pillars of observability: Logs, metrics and traces compared: what each pillar of observability is good at, what it costs, and how to link them so one alert leads to the cause.
- Enterprise monitoring: What enterprise monitoring needs beyond dashboards: SSO and SCIM, custom roles, audit logs, usage caps, SLAs for customers and on-premises options.
- OpenTelemetry: Send traces and metrics with standard OpenTelemetry SDKs or a Collector using one endpoint and an API key. No proprietary agent and no lock-in.
- What is APM (application performance monitoring)?: APM explained: what application performance monitoring measures, how traces and spans work, why p95 beats averages, a worked example and how to start.
- OpenTelemetry for FastAPI: Trace a FastAPI service with OpenTelemetry: instrument the app, async database drivers and httpx, run uvicorn workers correctly and export.
- OpenTelemetry for Go: Instrument a Go service with OpenTelemetry: set up the tracer provider, wrap net/http with otelhttp, pass context everywhere and export the spans.
Watch your own site and services with VitalRix
Uptime checks, APM, logs, real-user monitoring, alerts and status pages in one place. Every product has a free tier and no credit card is needed.