1. Verify Agent Configuration
15 minutesWelcome! In this section, we’ll begin with a fully functional OpenTelemetry setup that includes both an Agent and a Gateway.
We’ll start by quickly reviewing their configuration files to get familiar with the overall structure and to highlight key sections that control the telemetry pipeline.
Tip
Throughout the workshop, you’ll work with multiple terminal windows. To keep things organized, give each terminal a unique name or color. This will help you easily recognize and switch between them during the exercises.
We will refer to these terminals as: Agent, Gateway, Loadgen, and Test.
Exercise
Create your first terminal window and name it Agent. Navigate to the directory for the first exercise
[WORKSHOP]/1-agent-gatewayand verify that the required files have been generated:You should see the following files in the directory. If not, re-run the
setup-workshop.shscript as described in the Pre-requisites section:
Understanding the Agent configuration
Let’s review the key components of the agent.yaml file used in this workshop. We’ve made some important additions to support metrics, traces, and logs.
Receivers
The receivers section defines how the Agent ingests telemetry data. In this setup, three types of receivers have been configured:
Host Metrics Receiver
Collects CPU usage from the local system every hour. We’ll use this to generate example metric data.
OTLP Receiver (HTTP protocol)
Enables the agent to receive metrics, traces, and logs over HTTP on port
4318. This is used to send data to the collector in future exercises.FileLog Receiver
Enables the agent to tail a local log file (
quotes.log) and convert it to structured log events, enriched with metadata such assourceandsourceType.
Exporters
Debug Exporter
OTLPHTTP Exporter
The
debugexporter sends data to the console for visibility and debugging during the workshop while theotlphttpexporter forwards all telemetry to the local Gateway instance.This dual-export strategy ensures you can see the raw data locally while also sending it downstream for further processing and export.