Advanced OpenTelemetry Collector

Pre-requisites

5 minutes

Prerequisites

Exercise Create the workshop directory
1

Initial Setup

In your environment create a new directory and change into it:

bash
mkdir advanced-otel-workshop && \
cd advanced-otel-workshop

We will refer to this directory as [WORKSHOP] for the remainder of the workshop.

Remove any existing OpenTelemetry Collectors

If you have completed the Splunk IM workshop, please ensure you have deleted the collector running in Kubernetes before continuing. This can be done by running the following command:

bash
helm delete splunk-otel-collector

The EC2 instance in that case may also run some services that can interfere with this workshop , so run the following command to make sure they are stopped if present:

bash
kubectl delete ~/workshop/apm/deployment.yaml
2

Download workshop binaries

Change into your [WORKSHOP] directory and download the OpenTelemetry Collector, Load Generator binaries and setup script:

bash
curl -L https://github.com/signalfx/splunk-otel-collector/releases/download/v0.136.0/otelcol_linux_amd64 -o otelcol && \
curl -L https://github.com/splunk/observability-workshop/raw/refs/heads/main/workshop/ninja/advanced-otel/loadgen/build/loadgen-linux-amd64 -o loadgen && \
curl -L https://github.com/splunk/observability-workshop/raw/refs/heads/main/workshop/ninja/advanced-otel/setup-workshop.sh -o setup-workshop.sh && \
chmod +x setup-workshop.sh
3

Run the setup

Run the setup-workshop.sh script which will configure the correct permissions and also create the initial configurations for the Agent and the Gateway:

bash
curl -L https://github.com/signalfx/splunk-otel-collector/releases/download/v0.136.0/otelcol_linux_amd64 -o otelcol && \
curl -L https://github.com/splunk/observability-workshop/raw/refs/heads/main/workshop/ninja/advanced-otel/loadgen/build/loadgen-linux-amd64 -o loadgen && \
curl -L https://github.com/splunk/observability-workshop/raw/refs/heads/main/workshop/ninja/advanced-otel/setup-workshop.sh -o setup-workshop.sh && \
chmod +x setup-workshop.sh
text
[WORKSHOP]
├── 1-agent-gateway
├── 2-building-resilience
├── 3-dropping-spans
├── 4-sensitive-data
├── 5-transform-data
├── 6-routing-data
├── 7-sum-count
├── loadgen
├── otelcol
└── setup-workshop.sh
Last Modified ·