Phase 1: Docker (Before OBI)
1. Configure and Start the Stack
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 $INSTANCENavigate 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 choiceFind 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
WhyWORKSHOP_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 -dtext
[+] Building 12.3s (24/24) FINISHED
[+] Running 6/6
✔ Container 02-obi-docker-payment-service-1 Started
✔ Container 02-obi-docker-order-processor-1 Started
✔ Container 02-obi-docker-frontend-1 Started
✔ Container 02-obi-docker-splunk-otel-collector-1 Started
✔ Container 02-obi-docker-load-generator-1 StartedThis command will take several minutes to finish. This builds the three application images from source and starts:
- frontend on http://localhost:3000
- order-processor on port 8080
- payment-service on port 8081
- splunk-otel-collector receiving telemetry on ports 4317/4318
- load-generator automatically hitting
/create-orderevery 2 seconds
