RousselTMLEARNING

TP · Observability with eBPF: from discovery to expertise

Lab: RED metrics and traces without code using Beyla

What you will learn in this TP
  • Deploy Beyla alongside an application
  • Read the RED metrics
  • Visualise the traces

Introduction #

What you will learn in this section
  • Deploy Beyla alongside an application
  • Read the RED metrics
  • Visualise the traces

Context. A third-party application exposes no metrics and cannot be modified. Yet you want its throughput, errors and latency.

Prerequisites: Docker Compose on a Linux host  ·  Estimated time: 45 min

Metrics and traces without a single line of code.

Hands-on #

Guided steps, with their solutions.

  1. 1. Write the Compose file

    Why? Beyla shares the application's PID namespace (pid: service:app) so it can see it without being privileged across the whole host.

    Create a Compose file with a web application (nginx), Beyla, Prometheus, Tempo and Grafana.
  2. 2. Generate traffic

    Why? Without requests, Beyla has nothing to measure.

    Start the stack and send requests, some of which return a 404 error.
  3. 3. Read the RED metrics

    Why? The metrics follow the OpenTelemetry semantic conventions: they are identical whatever the application's language.

    Query Prometheus: total throughput, 4xx error rate, p95 latency.
  4. 4. View the traces

    Why? Each request becomes a span: useful for tracking down a specific slow request.

    Add Tempo to Grafana (http://tempo:3200) and search for boutique-front traces in error.

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

My progress

  • ⏱ Estimated time : ≈ 45 min

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

✉️ Ask a question

Recommended Articles

Instrumenter sans code avec Grafana Beyla (OpenTelemetry eBPF Instrumentation)

Obtenir métriques RED et traces HTTP/gRPC de n'importe quelle application sans la modifier : Graf...

Understanding the concept of score

The concept of score allows Elasticsearch to rank your documents by relevance during a search.

Understanding the Elastic Common Schema (ECS)

As always in our consulting engagements, we recommend that companies harmonise and standardise: k...

License consumption types

Understand the evolution of billing in Dynatrace: the difference between the old licensing model ...

Grafana Alloy: The importance of Self-Monitoring

Discover why and how to configure Grafana Alloy so that it monitors itself, collecting its own lo...

Grafana Alloy: Understanding and exploiting the User Interface (UI)

Discover how to enable, secure, and use Grafana Alloy's built-in web interface to visualize your ...

Grafana Alloy: Introduction and Architecture

Discover the fundamental concepts of Grafana Alloy, the transition from the static Agent to Alloy...

Grafana Alloy: Syntax and Configuration (Alloy Language: River)

As part of a Grafana training or observability training, master the declarative syntax of Grafana...

Grafana Alloy: Metrics Collection (Prometheus & Ecosystem)

Learn how to configure Grafana Alloy to collect, transform, and forward metrics using the Prometh...