Phase 1: Docker (Before OBI)

1. Configure and Start the Stack

2 min

Add Your Splunk Credentials

Exercise

Note: obtain your ACCESS_TOKEN, REALM, and INSTANCE in your environment. You will need to paste them into configs.

bash
echo $ACCESS_TOKEN; echo $REALM; echo $INSTANCE

Navigate to the Phase 1/2 directory and open docker-compose.yaml in your editor:

bash
cd ~/workshop/obi/02-obi-docker
vim docker-compose.yaml #or editor of choice

Find the splunk-otel-collector service and replace the four placeholder values with your real credentials:

yaml
    environment:
      SPLUNK_INGEST_TOKEN: "YOUR_ACCESS_TOKEN_HERE"       # <-- Your Splunk ingest token
      SPLUNK_REALM: "YOUR_REALM"                          # <-- Your realm (us0, us1, eu0, etc.)
      WORKSHOP_HOST_NAME: "<example: shw-ece9>"           # <-- the value from INSTANCE when you use `env` on terminal
      WORKSHOP_ENVIRONMENT: "<example: shw-ece9-ebpf>"    # <-- The hostname value above suffixed with `-ebpf`

Save the file.

Tip

Why WORKSHOP_HOST_NAME and WORKSHOP_ENVIRONMENT? Everyone in the workshop sends telemetry to the same Splunk org. These values become the host.name and deployment.environment attributes on all your metrics and traces, so you can filter to your data in Splunk.

Start the Stack

bash
docker-compose up --build -d

This command will take several minutes to finish. This builds the three application images from source and starts:

Last Modified ·