Skip to content

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

Signals by layer

LayerSignal
ClusterPending pods, node pressure, API errors
WorkloadDesired vs available replicas, rollout status
PodCPU and memory vs limits, throttling, restarts, OOM kills
ApplicationLatency, errors and throughput per endpoint from traces
EdgeIngress availability, certificates, DNS

Adding Kubernetes metadata

otel-collector.yamlyaml
processors:
  k8sattributes:
    extract:
      metadata: [k8s.namespace.name, k8s.pod.name, k8s.deployment.name, k8s.node.name]
service:
  pipelines:
    traces: { receivers: [otlp], processors: [k8sattributes, batch], exporters: [otlphttp/vitalrix] }

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

  1. Alert: p95 latency of POST /orders above target for 10 minutes.
  2. Endpoint: APM shows the slow requests started at 14:20; traces carry k8s.pod.name and k8s.node.name.
  3. 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.
  4. 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.

Frequently asked questions

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.

  • 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.