Advanced OpenTelemetry Collector
Prerequisites
Before you begin #
Pair up with other attendees (optional).
Open Splunk Observability Cloud. Choose one of these options:
- Sign in to the Observability Workshop organization provided with your Splunk Show instance.
- Register for a free Splunk Observability Cloud organization and sign in.
Registration: Register for Splunk Observability Cloud Free
Choose one supported execution path.
The workshop requires
bash,curl,jq, a text editor, outbound HTTPS, and free local ports2222,4318, and13133. The Splunk Show path also requiressshon your local computer. Thescpcommand is optional and is needed only if you choose to transfer files manually.Splunk Show instance: Open a terminal on your computer and connect to the Splunk Show instance with the supplied SSH command. Keep the supplied SSH command and password handy because you use them in each new terminal. For example, enter:
bashssh -p 2222 splunk@127.0.0.1At the prompt, enter the provided password.
Linux laptop or Apple silicon Mac: Use Terminal locally. Linux systems can use an
x86_64/amd64orarm64/aarch64processor.
Windows and Intel-based Mac computers
Create a folder
mkdir -p ~/advanced-otel-workshop
cd ~/advanced-otel-workshopThe remaining pages refer to this folder as [WORKSHOP].
Get the three workshop files
Select the tab for the computer that runs the Collector.
Keep your SSH details handy
Connect to the Splunk Show instance with the supplied SSH command, then run:
cd ~/advanced-otel-workshop
curl -fL https://github.com/signalfx/splunk-otel-collector/releases/download/v0.161.0/otelcol_linux_amd64 -o otelcol
curl -fL https://github.com/splunk/observability-workshop/raw/refs/heads/main/workshop/ninja/advanced-otel/loadgen/build/loadgen-linux-amd64 -o loadgen
curl -fL 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.shKeep the supplied SSH details available for each new terminal. The guided
workshop does not require scp.
Use this tab for an x86_64 or amd64 Linux laptop.
curl -fL https://github.com/signalfx/splunk-otel-collector/releases/download/v0.161.0/otelcol_linux_amd64 -o otelcol
curl -fL https://github.com/splunk/observability-workshop/raw/refs/heads/main/workshop/ninja/advanced-otel/loadgen/build/loadgen-linux-amd64 -o loadgen
curl -fL 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.shUse this tab when uname -m reports arm64 or aarch64.
curl -fL https://github.com/signalfx/splunk-otel-collector/releases/download/v0.161.0/otelcol_linux_arm64 -o otelcol
curl -fL https://github.com/splunk/observability-workshop/raw/refs/heads/main/workshop/ninja/advanced-otel/loadgen/build/loadgen-linux-arm64 -o loadgen
curl -fL 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.shcurl -fL https://github.com/signalfx/splunk-otel-collector/releases/download/v0.161.0/otelcol_darwin_arm64 -o otelcol
curl -fL https://github.com/splunk/observability-workshop/raw/refs/heads/main/workshop/ninja/advanced-otel/loadgen/build/loadgen-darwin-arm64 -o loadgen
curl -fL 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.shRun setup
./setup-workshop.shAt the cloud-export prompt, press Enter to send metrics and traces to
Splunk Observability Cloud. To keep all workshop data local, enter n.
The script then asks for your realm and access token. On a Splunk Show
instance, the supplied realm appears as the default, and an access token is
already available. Press Enter to use each supplied value, or enter a
replacement, such as the realm and access token for your Splunk Observability
Cloud Free organization. Token characters are hidden while you type.
Setup creates one Collector configuration:
[WORKSHOP]
├── 1-agent
│ └── agent_config.yaml
├── loadgen
├── otelcol
├── setup-workshop.sh
└── workshop-env.shYou learn about the components and pipelines in agent_config.yaml in Step
1.6.
