opentelemetry-kube-stack

by AppsCode Inc.

Helm chartv0.14.12App 0.144.0Verified publisher

OpenTelemetry Quickstart chart for Kubernetes. Installs an operator and collector for an easy way to get started with Kubernetes observability.

About this chart

OpenTelemetry Stack

OpenTelemetry Stack - OpenTelemetry Stack

TL;DR;

$ helm repo add appscode https://charts.appscode.com/stable/
$ helm repo update
$ helm search repo appscode/opentelemetry-kube-stack --version=0.14.12
$ helm upgrade -i opentelemetry-kube-stack appscode/opentelemetry-kube-stack -n monitoring --create-namespace --version=0.14.12

Introduction

This chart deploys OpenTelemetry Stack on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.25+

Installing the Chart

To install/upgrade the chart with the release name opentelemetry-kube-stack:

$ helm upgrade -i opentelemetry-kube-stack appscode/opentelemetry-kube-stack -n monitoring --create-namespace --version=0.14.12

The command deploys OpenTelemetry Stack on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall the opentelemetry-kube-stack:

$ helm uninstall opentelemetry-kube-stack -n monitoring

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following table lists the configurable parameters of the opentelemetry-kube-stack chart and their default values.

ParameterDescriptionDefault
fullnameOverrideTop level field indicating an override for fullname""
namespaceOverrideTop level field indicating an override for the namespace""
clusterNameTop level field specifying the name of the Kubernetes cluster. When using a Managed Kubernetes Service, it's recommended to use the cluster name assigned by the service for better integration."unknown_k8s_cluster"
extraEnvsExtra environment variables to add to each collector, bridge and instrumentation[]
cleanupJob.enabledIt is recommended to always keep this enabled so that running helm uninstall works properly. For non-helm installations i.e. ones created via helm template, it may make sense to disable this. For those installations, ensure that uninstallation for the operator happens after the deletion of the CRs.true
cleanupJob.image.repositoryrancher/kubectl
cleanupJob.image.tagv1.34.1
cleanupJob.image.digestWhen digest is set to a non-empty value, images will be pulled by digest (regardless of tag value).""
cleanupJob.existingServiceAccountTo use the existingServiceAccount""
cleanupJob.securityContext.runAsNonRoottrue
cleanupJob.securityContext.runAsUser65534
cleanupJob.securityContext.allowPrivilegeEscalationfalse
cleanupJob.securityContext.seccompProfile.typeRuntimeDefault
crds.installOtelControl whether the opentelemetry.io CRDS should be installed.true
crds.installPrometheusControl whether the monitoring.coreos CRDS should be installed.true
opentelemetry-operator.enabledField indicating whether the operator is enabled or nottrue
opentelemetry-operator.manager.collectorImage.repositoryotel/opentelemetry-collector-k8s
opentelemetry-operator.admissionWebhooks.failurePolicyPolicy for handling failures Setting this allows for an installation of the otel operator at the same time as the custom resources it manages."Ignore"
opentelemetry-operator.crds.createfalse
defaultCRConfig.enabledtrue
defaultCRConfig.suffixSuffix for the collector pool, by default the release name is prepended"collector"
defaultCRConfig.fullnameOverridefullnameOverride allows overriding the collector's name""
defaultCRConfig.annotationsAnnotations for the collector{}
defaultCRConfig.labelsLabels for the collector{}
defaultCRConfig.scrape_configs_filescrape_configs_file allows the user to load an external file into the collector's prometheus scrape_configs. This is added to assist users coming from the prometheus ecosystem by allowing users to simply copy and paste directly from prometheus into this file to use the same config.""
defaultCRConfig.managementState

Deploy opentelemetry-kube-stack with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has opentelemetry-kube-stack 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-kube-stack is pinned at v0.14.12 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