What you will learn in this TP
- Run Elasticsearch, Kibana and an OpenTelemetry Collector
- Send the three signals over OTLP
- Find the OTel data streams
- Compare otel and ecs modes
All steps and instructions are shown. Recommended for this lab: semi-guided
Introduction #
Context. Your teams instrument their services with OpenTelemetry. You validate that Elasticsearch receives logs, metrics and traces in native OTel format.
Prerequisites: Docker and Docker Compose, 4 GB of free RAM · Estimated time: 45 min
Hands-on #
Guided steps, with their solution.
1. The lab
Why? Security is disabled to simplify the lab; in production, use TLS and an API key dedicated to the Collector.
2. Generate traces, metrics and logs
Why? telemetrygen, from the OpenTelemetry project, simulates an application emitting OTLP.
3. The data streams
List the data streams created and count the documents for each signal.
4. Query with ES|QL
In Kibana › Discover (ES|QL mode) or through the API, find the checkout service spans and the host metrics.
5. Compare with ECS mode
Why? The same signal stored as ECS changes field names: this decides which dashboards you can reuse.
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
Sign in to track your progress and take notes. Sign in
💬 Recent discussions about this course
- Elasticsearch : supprimer automatiquement les logs de plus de 30 jours✓ solved · 1 reply(ies)
Ask a question about this lesson →See all discussions about this course
Course Glossary
RBAC (Role-Based Access Control)
An access control method where permissions are assigned to specific roles (e.g., admin, reader) rather than directly to individual users.
Authentication
The process of verifying the identity of a user or system (e.g., login/password, tokens, biometrics).
Authorization
The process that occurs after authentication to determine if the entity has the necessary rights and privileges to access a resource.
API Key
A unique alphanumeric code used to identify, authenticate, and authorize access to an Application Programming Interface (API).
Architecture
The overall structural design of an IT system, defining its various components, their relationships, and the principles guiding its evolution.
Repository
A centralized storage location. This can refer to a source code repository (e.g., Git) or an artifact and binary repository (e.g., Harbor, Nexus, Arti...
Elasticsearch
A distributed, RESTful search and analytics engine capable of addressing a growing number of use cases, built on Apache Lucene.
Recommended Articles
OpenTelemetry and Elasticsearch: compatibility and architecture
Send OpenTelemetry to Elasticsearch: Collector and elasticsearch exporter, managed OTLP endpoint,...
Ingesting OpenTelemetry logs into Elasticsearch
Collect and structure logs with the OpenTelemetry Collector (filelog receiver, operators, transfo...
OpenTelemetry traces in Elasticsearch and Kibana APM
Instrument applications with OpenTelemetry or EDOT SDKs, send traces to Elasticsearch, get Kibana...
OpenTelemetry metrics in Elasticsearch
Collect host, Kubernetes and application metrics with OpenTelemetry, understand temporality and t...
Correlating traces, metrics, logs and profiles with OpenTelemetry
Link the four signals to diagnose quickly: shared resource, trace_id in logs, exemplars on metric...
Sending logs, metrics and traces to OpenObserve
OpenObserve receiving endpoints: JSON, bulk, OTLP with the OpenTelemetry Collector, Prometheus re...
Capstone project: the four signals of the OpenTelemetry Demo in the Grafana stack
A capstone project spanning the observability courses: deploy the OpenTelemetry Demo, send metric...
Grafana Alloy: collecting and transforming telemetry
Learn how to use Grafana Alloy to collect, transform and route logs, metrics and traces. Discover...
OpenTelemetry and Dynatrace: OTLP, collector and instrumentation
Integrate OpenTelemetry with Dynatrace: OTLP endpoint and tokens, Dynatrace OTel Collector, trace...