opentelemetry-demo

by OpenTelemetry

Helm chartv0.42.8App 3.1.0Verified publisher

opentelemetry demo helm chart

About this chart

OpenTelemetry Demo Helm Chart

The helm chart installs the OpenTelemetry Demo in a Kubernetes cluster.

Prerequisites

  • Kubernetes 1.24+
  • Helm 4.0+

Add Repository (can be skipped for OCI repository)

helm repo add open-telemetry https://open-telemetry.github.io/opentelemetry-helm-charts
helm repo update

See helm repo for command documentation.

Install Chart

For HTTPS repository:

helm install opentelemetry-demo open-telemetry/opentelemetry-demo

For OCI repository:

helm install opentelemetry-demo oci://ghcr.io/open-telemetry/opentelemetry-helm-charts/opentelemetry-demo

Upgrading

See UPGRADING.md.

OpenShift

Installing the chart on OpenShift requires the following additional steps:

  1. Create a new project:

    oc new-project opentelemetry-demo
    
  2. Create a new service account:

    oc create sa opentelemetry-demo
    
  3. Add the service account to the anyuid SCC (may require cluster admin):

    oc adm policy add-scc-to-user anyuid -z opentelemetry-demo
    
  4. Add view role to the service account to allow Prometheus seeing the services pods:

    oc adm policy add-role-to-user view -z opentelemetry-demo
    
  5. Add privileged SCC to the service account to allow Grafana to run:

    oc adm policy add-scc-to-user privileged -z opentelemetry-demo
    
  6. Install the chart with the following command:

    helm install my-otel-demo charts/opentelemetry-demo \
        --namespace opentelemetry-demo \
        --set serviceAccount.create=false \
        --set serviceAccount.name=opentelemetry-demo \
        --set prometheus.rbac.create=false \
        --set prometheus.serviceAccounts.server.create=false \
        --set prometheus.serviceAccounts.server.name=opentelemetry-demo \
        --set grafana.rbac.create=false \
        --set grafana.serviceAccount.create=false \
        --set grafana.serviceAccount.name=opentelemetry-demo
    

Chart Parameters

Chart parameters are separated in 4 general sections:

  • Default - Used to specify defaults applied to all demo components
  • Components - Used to configure the individual components (microservices) for the demo
  • Observability - Used to enable/disable dependencies
  • Sub-charts - Configuration for all sub-charts

Default parameters (applied to all demo components)

The default parameters (default.*), including default.image.repository and default.image.tag, are documented in the Values section.

Component parameters

The OpenTelemetry demo contains several components (microservices). Each component is configured with a common set of parameters. All components will be defined within components.[NAME] where [NAME] is the name of the demo component.

Note The following parameters require a components.[NAME]. prefix where [NAME] is the name of the demo component

ParameterDescriptionDefault
enabledIs this component enabledtrue
useDefault.envUse the default environment variables in this componenttrue
imageOverride.repositoryName of image for this componentDefaults to the overall default image repository
imageOverride.tagTag of the image for this componentDefaults to the overall default image tag
imageOverride.pullPolicyImage pull policy for this componentIfNotPresent
imageOverride.pullSecretsImage pull secrets for this component[]
service.typeService type used for this componentClusterIP
service.portService port used for this componentnil
service.nodePortService node port used for this componentnil
service.annotationsAnnotations to add to the component's service{}
portsArray of ports to open for deployment and service of this component[]
envArray of environment variables added to this componentEach component will have its own set of environment variables
envOverridesUsed to override individual environment variables without re-specifying the entire array[]
replicasNumber of replicas for this component1 for kafka, and redis ; nil otherwise
resourcesCPU/Memory resource requests/limitsEach component will have a default memory limit set
schedulingRules.nodeSelectorNode labels for pod assignment{}
schedulingRules.affinityMan of node/pod affinities{}
schedulingRules.tolerationsTolerations for pod assignment[]
securityContextContainer security context{}
podSecurityContextPod security context s{}
podLabelsPod labels for this component{}
podAnnotationsPod annotations for this component{}
ingress.enabledEnable the creation of Ingress rulesfalse
ingress.annotationsAnnotations to add to the ingress rule{}
ingress.ingressClassNameIngress class to use. If not specified default Ingress class will be used.nil
ingress.hostsArray of Hosts to use for the ingress rule.[]
ingress.hosts[].pathsArray of paths / routes to use for the ingress rule host.[]
ingress.hosts[].paths[].pathActual path route to usenil
ingress.hosts[].paths[].pathTypePath type to use for the given path. Typically this is Prefix.nil
ingress.hosts[].paths[].portPort to use for the given pathnil
ingress.additionalIngressesArray of additional ingress rules to add[]
ingress.additionalIngresses[].nameEach additional ingress rule needs to have a unique namenil
commandCommand & arguments to pass to the container being spun up for this service[]
additionalVolumeMountsArray of Volumes that will be mounted[]
mountedConfigMaps[].nameName of the Volume that will be used for the ConfigMap mountnil
mountedConfigMaps[].mountPathPath where the ConfigMap data will be mountednil
mountedConfigMaps[].subPathSubPath within the mountPath. Used to mount a single file into the path.nil
mountedConfigMaps[].existingConfigMapName of the existing ConfigMap to mountnil
mountedConfigMaps[].dataContents of a ConfigMap. Keys should be the names of the files to be mounted.{}
mountedEmptyDir[].nameName of the EmptyDir volume that will be used for the volume mountnil
mountedEmptyDir[].mountPathPath where the EmptyDir data will be mountednil
mountedEmptyDir[].subPathSubPath within the mountPath. Used to mount a single file into the path.nil
initContainersArray of init containers to add to the pod[]
initContainers[].nameName of the init containernil
initContainers[].imageImage to use for the init containernil
initContainers[].commandCommand to run for the init containernil
sidecarContainersArray of sidecar containers to add to the pod[]
additionalVolumesArray of additional volumes to add to the pod[]

Sub-charts

The OpenTelemetry Demo Helm chart depends on 5 sub-charts:

  • OpenTelemetry Collector
  • Jaeger
  • Prometheus
  • Grafana
  • OpenSearch

Parameters for each sub-chart can be specified within that sub-chart's respective top level. This chart will override some of the dependent sub-chart parameters by default. The overriden parameters are specified below.

OpenTelemetry Collector

Note The following parameters have a opentelemetry-collector. prefix.

ParameterDescriptionDefault
enabledInstall the Op

Deploy opentelemetry-demo with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has opentelemetry-demo on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartopentelemetry-demo is pinned at v0.42.8 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply