Deploy the Splunk OpenTelemetry Collector
To get Observability signals (metrics, traces and logs) into Splunk Observability Cloud we need to deploy the Splunk OpenTelemetry Collector into the Kubernetes cluster.
For this workshop, we will be using the Splunk OpenTelemetry Collector Helm Chart. First, we need to add the Helm chart repository to Helm and run helm repo update to ensure the latest version:
Splunk Observability Cloud offers wizards in the UI to walk you through the setup of the OpenTelemetry Collector on Kubernetes, but in the interest of time, we will use the Helm install command below. Additional parameters are set to enable the operator for automatic discovery and configuration and code profiling.
--set="operator.enabled=true"- this will install the OpenTelemetry operator that will be used to handle automatic discovery and configuration.--set="splunkObservability.profilingEnabled=true"- this enables Code Profiling via the operator.
To install the collector run the following command. Do NOT edit this:
Ensure the Pods are reported as Running before continuing (this typically takes around 30 seconds).
Ensure there are no errors reported by the Splunk OpenTelemetry Collector (press ctrl + c to exit) or use the installed awesome k9s terminal UI for bonus points!
Deleting a failed installation
If you make an error installing the OpenTelemetry Collector you can start over by deleting the installation with the following command: