RousselTMLEARNING

Observability

eBPF best practices for observability

Checklist for adopting eBPF in observability: choosing tools, gradual rollout, agent security, controlling cardinality and complementarity with OpenTelemetry.

1. Adopting #

Step by step.

Approach #

  1. Check the fleet's kernels (version, BTF).
  2. Start with a high-value use case: RED metrics for all services (Beyla) or network flows (Hubble).
  3. Deploy on one node pool, measure the overhead, then roll out.
  4. Complement with OpenTelemetry SDKs where business detail is needed.

2. Operating #

Security and costs.

Rules #

  • Minimal capabilities rather than privileged when the tool allows it.
  • Pinned versions and tested upgrades (probes depend on the kernel).
  • Route templates and filters to limit metric cardinality.
  • Agents themselves monitored (CPU, memory, lost events).
  • Documentation for teams: what is observed and what is not (TLS, languages).

Reference diagram and quick check #

Checklist.

Checklist #

  1. Kernels 5.8+ with BTF
  2. Beyla or OBI for RED metrics
  3. Hubble for the network (if Cilium)
  4. eBPF profiling to Pyroscope or Parca
  5. Agents as DaemonSets with minimal capabilities
  6. Dashboards and alerts on eBPF metrics

Related articles

eBPF explained: programs in the Linux kernel to observe without instrumenting

What eBPF is, how a program is verified and then run in the kernel, hook points (kprobes, uprobes, tracepoint…

Diagnosing with bpftrace and the bcc tools

Everyday eBPF diagnostic tools: bpftrace one-liners (system calls, files, latencies), bcc tools (execsnoop, o…

Zero-code instrumentation with Grafana Beyla (OpenTelemetry eBPF Instrumentation)

Get RED metrics and HTTP/gRPC traces from any application without changing it: Grafana Beyla and OpenTelemetr…

Keep learning

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!