Skip to content

Latest commit

 

History

History
54 lines (38 loc) · 1.83 KB

File metadata and controls

54 lines (38 loc) · 1.83 KB

Helm chart for OpenTelemetry Collector

This Helm chart will install OpenTelemetry Collector by using the official Helm chart.

💡 By default, OpenTelemetry Collector Contrib will be installed (which is a good think 😊)

How to use

  • Review the default configuration from values.yaml and identify the changes specific to your environment

  • With Helm CLI (see README for requirements)

# install with optional parameters
helm upgrade --install opentelemetry-collector devpro/opentelemetry-collector --create-namespace \
--namespace opentelemetry-collector
# --set myvariable=xxx
# -f myvalues.yaml

# watches the installation and checks all pods are running after some time
kubectl get pod -n opentelemetry-collector --watch

How to create or update the chart

# adds & updates upstream repository
helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts
helm repo update

# searches for the latest version
helm search repo -l open-telemetry/opentelemetry-collector

# manual: update version number in Chart.yaml

# updates Chart.lock
helm dependency update

How to deploy manually from the sources

# creates the release from the local files
kubectl create ns opentelemetry-collector
helm upgrade --install opentelemetry-collector . -f values.yaml --namespace opentelemetry-collector

# (optional) forwards port for local access
kubectl port-forward daemonsets/opentelemetry-collector-agent 4317:4317 -n opentelemetry-collector

# if needed, deletes the release
helm uninstall opentelemetry-collector -n opentelemetry-collector
kubectl delete ns opentelemetry-collector