This example shows how to use the upstream OpenTelemetry Collector to monitor a Kubernetes cluster and export the data to Splunk Observability Cloud.
Note that this configuration is not supported by Splunk. For a Splunk-supported solution, please use the Splunk Distribution of the OpenTelemetry Collector.
It uses the OpenTelemetry Collector Helm Chart to deploy two types of collectors:
- The purpose of the first collector is to collect cluster-level metrics from the Kubernetes API server. It's run using deployment mode, to avoid producing duplicate data.
- The purpose of the second collector is to receive, process, and export all other types of data. It's run as using daemonset mode.
To deploy this example:
-
Edit
configmap.yaml
andsecret.yaml
to input the specific parameters for your environment. -
Use the following commands to create the config map and secrets:
kubectl apply -f ./configmap.yaml
kubectl apply -f ./secret.yaml
- Install the Helm repository:
helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts
helm repo update
- Install the two collectors:
helm install otel-collector-cluster-receiver open-telemetry/opentelemetry-collector -f ./cluster-receiver-values.yaml
helm install otel-collector-agent open-telemetry/opentelemetry-collector -f ./agent-values.yaml