RousselTMLEARNING

TP · Observability with eBPF: from discovery to expertise

Lab: Profile an entire host with Parca

What you will learn in this TP
  • Deploy Parca
  • Run the eBPF agent
  • Analyse a resource-hungry process
Mode :

All steps and instructions are shown. Recommended for this lab: semi-guided

Introduction #

Context. The compute bill keeps rising for no apparent reason. You profile every process on a host to find out exactly where the CPU goes.

Prerequisites: Linux host with Docker, root access  ·  Estimated time: 35 min

A CPU view of every process, down to the function.

Hands-on #

Guided steps, with their solutions.

  1. 1. Start the server

    Why? The server stores the profiles and serves the UI.

    Start Parca in a dedicated Docker network.
  2. 2. Start the agent

    Why? The agent loads the eBPF program and must see every process on the host.

    Start parca-agent in privileged mode with the host's PID namespace.
  3. 3. Create a load

    Why? A known resource-hungry process lets you validate the pipeline.

    Run a CPU-intensive job (compression) in the background.
  4. 4. Analyse

    Why? Find the culprit and the function that consumes the CPU, without any instrumentation.

    In the UI (localhost:7070), display the CPU profile, group by comm and open gzip. Which functions dominate?
  5. 5. Clean up

    Why? Stop the load.

    Remove the containers.

Validate your work

Check that each goal above is reached and that you get the result described in the introduction.

Difficulty level : ●●●○○ (3/5)

My progress

  • ⏱ Estimated time : ≈ 35 min

Sign in to track your progress and take notes. Sign in

⭐ Rate this lesson

5.0 initial rating from the teaching team

Sign in to rate this lesson →

💬 Questions about this lesson

No questions yet: be the first to ask for help or share your configuration.

Ask a question about this lesson →

Recommended Articles

Continuous profiling with eBPF: Parca, Pyroscope and the OpenTelemetry profiler

Continuously profile every process on a host with eBPF: principle, Parca and parca-agent, Pyrosco...

eBPF best practices for observability

Checklist for adopting eBPF in observability: choosing tools, gradual rollout, agent security, co...

Observing the Kubernetes network with Cilium Hubble

Make a Kubernetes cluster's network flows visible with Cilium Hubble: architecture, the hubble ob...

Instrumenting applications for Pyroscope: SDKs, Alloy and eBPF

Send profiles to Pyroscope from Go, Java, Python and Node.js with the SDKs, collect pprof endpoin...

Installing Zabbix and monitoring your first host

Install Zabbix with Docker Compose (server, PostgreSQL, web interface), install agent 2 on a Linu...

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

Diagnosing with bpftrace and the bcc tools

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

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

eBPF in production: security, prerequisites and limits

What to know before deploying eBPF agents: privileges and capabilities, kernel versions, managed ...

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!