Install oTel Collector

15 minutes

In this step, you’ll deploy the Splunk Distribution of the OpenTelemetry Collector to your k3d cluster using Helm. The collector receives traces and metrics from instrumented services and forwards them to Splunk Observability Cloud.

Note

Each application pod sends data to the collector via the node IP:

text
Pod → http://$(NODE_IP):4318 → Splunk OTel Collector DaemonSet → Splunk O11y Cloud

Install via Helm

Check that the values are exported successfully:

bash
env | grep -E '^(REALM|ACCESS_TOKEN|INSTANCE|CLUSTER_NAME|DEPLOYMENT_ENV|RUM_APP_NAME)='

Then run:

bash
cd ~/workshop/context-propagation
make collector

Validation Checklist

Run these commands after make collector completes.

1. Confirm Helm release is installed

bash
helm list -n cosmic-shop

2. Confirm collector pods are running

bash
kubectl -n cosmic-shop get pods -l 'app=splunk-otel-collector,component=otel-collector-agent'

3. Confirm collector logs show no auth errors

bash
kubectl -n cosmic-shop logs -l 'app=splunk-otel-collector,component=otel-collector-agent' --tail=30

Confirm your Cluster in Splunk Observability Cloud

  1. Open Splunk Observability Cloud
  2. Navigate to Infrastructure → Kubernetes → Kubernetes Entities → Clusters
  3. Search for your cluster name ($INSTANCE-cluster or the value of CLUSTER_NAME in env)

The cluster should appear within a few minutes of the collector starting.

cluster

Troubleshooting

Here’s some of the potential issues you may encounter in this step & suggested remediation steps.

Click here for Troubleshooting Guidance

Potential Issue 1. Helm install fails with auth error

Verify ACCESS_TOKEN and REALM in env are correct and the token has ingest permissions.

Potential Issue 2. No cluster in Infrastructure navigator

Wait 2–3 minutes. Confirm the collector pod is running and check its logs for export errors.