tempo-distributed

by grafana-community

Helm chartv3.30.1App 3.1.1Verified publisher

Grafana Tempo in MicroService mode

About this chart

tempo-distributed Helm Chart

Grafana Tempo in MicroService mode

Source Code

Requirements

Kubernetes: ^1.25.0-0

RepositoryNameVersion
https://grafana.github.io/helm-chartsgrafana-agent-operator0.5.2
https://grafana.github.io/helm-chartsrollout_operator0.43.0

Installing the Chart

OCI Registry

OCI registries are preferred in Helm as they implement unified storage, distribution, and improved security.

helm install RELEASE-NAME oci://ghcr.io/grafana-community/helm-charts/tempo-distributed

HTTP Registry

helm repo add grafana-community https://grafana-community.github.io/helm-charts
helm repo update
helm install RELEASE-NAME grafana-community/tempo-distributed

Uninstalling the Chart

To remove all of the Kubernetes objects associated with the Helm chart release:

helm delete RELEASE-NAME

Changelog

See the changelog.


Upgrading

A major chart version change indicates that there is an incompatible breaking change needing manual actions.

StatefulSet governing service (tempo.useHeadlessGoverningService)

Five StatefulSets in this chart write a short, unprefixed spec.serviceName: the live-store, the block-builder, the backend-scheduler, the backend-worker and the metrics-generator. live-store is one example. No Service carries such a name, so the stable per-pod DNS names (<pod>.<service>.<namespace>.svc) never resolved. Set tempo.useHeadlessGoverningService: true to point those five StatefulSets at the headless Service of their own component instead. The memcached StatefulSets already write the full resource name, and the value does not touch them. The zone StatefulSets of the live-store also write the full resource name, so the value does not change them either. The value also sets publishNotReadyAddresses: true on the five Services, so a per-pod name resolves while its pod is not ready.

The value defaults to false, because spec.serviceName is immutable. A plain helm upgrade with the value set to true fails with:

StatefulSet.apps "..." is invalid: spec: Forbidden: updates to statefulset spec for fields
other than 'replicas', 'ordinals', 'template', 'updateStrategy', ... are forbidden

To enable it, delete each affected StatefulSet first and keep the pods, then upgrade, then restart the pods:

STATEFULSETS="<release>-tempo-live-store <release>-tempo-block-builder \
  <release>-tempo-backend-scheduler <release>-tempo-backend-worker \
  <release>-tempo-metrics-generator"

kubectl delete statefulset --cascade=orphan -n <namespace> $STATEFULSETS
helm upgrade ... --set tempo.useHeadlessGoverningService=true
kubectl rollout restart statefulset -n <namespace> $STATEFULSETS

The Helm upgrade recreates the StatefulSets and adopts the running pods, so the delete costs no trace data.

The restart is required. A pod takes spec.subdomain from the governing service at creation only, and nothing rewrites it later. spec.serviceName is also outside spec.template, so the recreated StatefulSet keeps the same pod template and rolls nothing on its own. The adopted pods therefore keep the old subdomain, and the EndpointSlice controller publishes <pod>.<service> only where the subdomain of the pod equals the name of the Service. The per-pod names start to resolve when the restart has replaced every pod. Plan it as a normal rolling restart of those components. Delete the pods by hand instead where a StatefulSet runs the OnDelete update strategy.

The default flips to true in the next major chart version.

MinIO subchart removed

The built-in MinIO subchart has been removed in chart v3.0.0. minio is no longer a chart dependency, and setting minio.enabled: true fails the render. Tempo must point at an externally managed S3-compatible object store via storage.trace.s3:

storage:
  trace:
    backend: s3
    s3:
      bucket: tempo-traces
      endpoint: minio.minio-namespace.svc.cluster.local:9000
      access_key: <access-key>
      secret_key: <secret-key>
      insecure: true  # remove if TLS is configured

If you previously used the built-in subchart, do not run a plain helm upgrade: it would garbage collect the MinIO Deployment, Service, Secret, and PVC and destroy your trace data. Detach those objects from the release first (annotate them with helm.sh/resource-policy: keep, the Helm equivalent of kubectl delete --cascade=orphan), then repoint storage.trace.s3 at the surviving MinIO Service. See UPGRADE.md for the full procedure.

From Chart versions < 2.17.10

Version 2.17.10 change the memcached Services and Statefulsets spec. These changes cannot be done by patching the resources, causing an existing installation not to be upgradable without manual interaction.

An upgrade will fail with a message like:

Error: UPGRADE FAILED: Service "tempo-memcached" is invalid: spec.clusterIPs[0]: Invalid value: ["None"]: may not change once set && StatefulSet.apps "tempo-memcached" is invalid: spec: Forbidden: updates to statefulset spec for fields other than 'replicas', 'ordinals', 'template', 'updateStrategy', 'revisionHistoryLimit', 'persistentVolumeClaimRetentionPolicy' and 'minReadySeconds' are forbidden

There are basically two options:

Option 1

Uninstall the old release and re-install the new one.

Option 2

Delete the affected Services and Statefulsets, and re-install the new ones.

kubectl -n <namespace> delete service --selector 'app.kubernetes.io/instance=<instance-name>,app.kubernetes.io/component in (memcached,memcached-bloom,memcached-parquet-footer,memcached-frontend-search)'

Perform a non-cascading deletion of the Statefulsets which will keep the pods running:

kubectl -n <namespace> delete statefulset --selector 'app.kubernetes.io/instance=<instance-name>,app.kubernetes.io/component in (memcached,memcached-bloom,memcached-parquet-footer,memcached-frontend-search)' --cascade=orphan

Perform a regular Helm upgrade on the existing release. The new Statefulsets will pick up the existing pods and perform a rolling upgrade.

From Chart versions < 3.0.0

Tempo 3.0 replaces the ingester-based write path with a Kafka-backed architecture. This is a breaking change for microservices-mode deployments.

See UPGRADE.md for the full migration guide, including the parallel-deployment path, Kafka configuration, and the tempo-cli migrate config command.

From Chart versions < 2.0.0

The minimum required Kubernetes version is now 1.25. All references to deprecated APIs have been removed.

From Chart versions < 1.48.1

Please be aware that we've updated the Tempo version to 2.9, which includes some breaking changes We recommend reviewing the release notes before upgrading.

From Chart versions < 1.41.2

Please be aware that we've updated the Tempo version to 2.8, which includes some breaking changes We recommend reviewing the release notes before upgrading.

From Chart versions < 1.41.0

  • Breaking Change * In order to be consistent with other projects and documentations, the default port has been changed from 3100 to 3200.

From Chart versions < 1.33.0

  • Breaking Change * In order to reduce confusion, the overrides configurations have been renamed as below.

global_overrides => overrides (this is where the defaults for every tenant is set) overrides => per_tenant_overrides (this is where configurations for specific tenants can be set)

From Chart versions < 1.31.0

Tempo serverless was deprecated in tempo 2.7 release, Config options related to serverless are being removed from helm chart, and this might be a breaking change if you were using tempo serverless.

These config optioons are removed in tempo#4599 and will not work from next release of tempo.

From Chart versions < 1.28.2

Please be aware that we've updated the Tempo version to 2.7, which includes some breaking changes We recommend reviewing the release notes before upgrading.

From Chart versions < 1.23.0

A default affinity has been defined in this version for the compactor following the standard used in other components.

From Chart versions < 1.21.0

Upgrading to chart 1.21.0 will set the memberlist cluster_label config option. During rollout your cluster will temporarily be split into two memberlist clusters until all components are rolled out. This will interrupt reads and writes. This config option is set to prevent cross talk between Tempo and other memberlist clusters.

From Chart versions < 1.18.0

Please be aware that we've updated the minor version to Tempo 2.6, which includes breaking changes. We recommend reviewing the release notes before upgrading.

From Chart versions < 1.15.2

Switch to new overrides format, see https://grafana.com/docs/tempo/latest/configuration/#overrides.

From Chart versions < 1.13.0

EXPERIMENTAL: Zone Aware Replication has been added to the ingester statefulset. Attention, the calculation of the pods per AZ is as follows (.values.ingester.replicas + numberOfZones -1)/numberOfZones

From Chart versions < 1.6.0

The metrics generator component in the chart has been disabled by default, but the configuration for the processors was not empty, resulting error sin the distributor log. Here we align the default metrics generator config settings to both disable the generator and remove processors. Users who wish to keep the their processors enabled, will need to update their values.

From Chart versions < 1.5.0

Please be aware that we've updated the minor version to Tempo 2.2, which includes breaking changes. We recommend reviewing the release notes before upgrading.

From Chart versions < 1.3.0

Please be aware that we've updated the minor version to Tempo 2.1, which includes breaking changes. We recommend reviewing the release notes before upgrading.

From Chart versions < 1.0.0

Please note that we've incremented the major version when upgrading to Tempo 2.0. There were a large number of changes in this release (breaking and otherwise). It is encouraged to review the release notes and 1.5 -> 2.0 upgrade guide before upgrading.

From chart version < 0.27.0

Version 0.27.0:

Many changes have been introduced, including some breaking changes.

The PR includes additional details.

  • BREAKING CHANGE centralize selector label handling -- users who wish to keep old values should still be able to use the nameOverride and fullNameOverride top level keys in their values.

  • BREAKING CHANGE serviceMonitor has been nested under metaMonitoring -- metamonitoring can be used scrape services as well as install the operator with the following values. Note also that the port names have changed from http to http-metrics.

metaMonitoring:
  serviceMonitor:
    enabled: true
  grafanaAgent:
    enabled: true
    installOperator: true
  • allow configuration to be stored in a secret. See the documentation for useExternalConfig and configStorageType in the values file for more details.

From chart version < 0.26.0

Version 0.26.0

  • Moves metricsGenerator.config.storage_remote_write to metricsGenerator.config.storage.remote_write
  • Moves metricsGenerator.config.service_graphs_max_items to metricsGenerator.config.processor.service_graphs.max_items

From chart version < 0.23.0

Version 0.23.0:

  • Adds /var/tempo emptyDir mount for querier, queryfrontend, distributor and compactor. Previously, /var/tempo was directory inside container.

  • Sets queryFrontend.query.enabled to false. tempo-query is only required for grafana version <7.5 for compatibility with jaeger-ui. Please also note that tempo-query is incompatible with securityContext readOnlyRootFilesystem set to true.

  • Sets stricter default securityContext:

tempo:
  securityContext:
    capabilities:
      drop:
        - ALL
    readOnlyRootFilesystem: true
    runAsNonRoot: true
    runAsUser: 1000
    runAsGroup: 1000
    allowPrivilegeEscalation: false
  podSecurityContext:
    fsGroup: 1000

If you had ingester persistence enabled, you might need to manually change ownership of files in your PV if your CSI doesn't support fsGroup

From Chart version >= 0.22.0

Align Istio gRPC named port syntax. For example,

  • otlp-grpc -> grpc-otlp
  • distributor-otlp-grpc -> grpc-distributor-otlp
  • jaeger-grpc -> grpc-jaeger
  • distributor-jaeger-grpc -> grpc-distributor-jaeger

In case you need to rollback, please search the right hand side pattern and replace with left hand side pattern.

From Chart version < 0.20.0

The image's attributes must be set under the image key for the Memcached service.

memcached:
  image:
    registry: docker.io
    repository: memcached
    tag: "1.5.17-alpine"
    pullPolicy: "IfNotPresent"

From Chart version < 0.18.0

Trace ingestion must now be enabled with the enabled key:

traces:
  otlp:
    grpc:
      enabled: true
    http:
      enabled: true
  zipkin:
    enabled: true
  jaeger:
    thriftHttp:
      enabled: true
  opencensus:
    enabled: true

From Chart versions

Deploy tempo-distributed with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has tempo-distributed 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 charttempo-distributed is pinned at v3.30.1 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