This example shows how to deploy the OpenTelemetry collector in a Kubernetes environment using the OpenTelemetry Collector Helm Chart https://opentelemetry.io/docs/kubernetes/helm/collector/.
The values.yaml file includes:
- Presets for logCollection, kubernetesAttributes, kubeletMetrics, kubernetesEvents, and hostMetrics
- Exporters to send metrics and traces to Splunk Observability Cloud
- Exporters to send logs to AWS CloudWatch Logs and Splunk Platform
- Scraping of istio control plane metrics using istio's Prometheus endpoint
- Addition of a
service.name
resource attribute to logs with the same value as istio generates for traces to enable correlation between logs and traces using this attribute.
Edit configmap.yaml and secret.yaml with the specific parameters for your environment.
Then use the following commands to deploy the chart:
kubectl apply -f ./configmap.yaml kubectl apply -f ./secret.yaml
helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts
helm install my-opentelemetry-collector open-telemetry/opentelemetry-collector
-f ./values.yaml