Skip to content
Install the CLI

Reference experimental

tempo

These docs describe Kix's main branch, which can include changes not yet released. Read the docs for the latest release.

Grafana Tempo trace store, single binary on one volume

This page is generated from kix/packages/experimental/tempo.

StabilityExperimental
package valuepackages.experimental.tempo
Default software version3.1.1
Default aliasestempo
Highest availability levelnone

Kix matches each dependency below to another package instance by instance name, alias, or role. To bind a specific instance, set deps.<name> in your cluster definition. See Declaring dependencies for how required and optional dependencies work.

DependencyRequirement
storageRequired
endpointServiceOptional
prometheusOptional
prometheusServerOptional
storageCredentialsOptional

Extra environment variables. A value is a string, a fieldRef source such as { valueFrom.fieldRef.fieldPath = "metadata.name"; }, or a secretKeyRef source naming a Secret managed outside Kix with kix.untrackedRef. A credential that comes from a dependency is wired by the package. Null removes a variable the package sets by default.

  • Type: attribute set of (null or string or env var source with `valueFrom`)
  • Default: { }

Flags appended after the package’s own. Flags that override locked settings paths, S3 credential flags, -config.file, -config.expand-env, and -target fail evaluation.

  • Type: list of string

  • Default: [ ]

  • Example:

    [
    "-log.level=debug"
    ]

Container image for this instance. Set it from a pin file (kix.pins) so the deployed reference is committed and resolved.

  • Type: submodule

  • Default:

    {
    digest = "sha256:64e2fbd56d9c2b3412a4b430a58ea59e91a670b1e75f920a0c702213ad145044";
    pullPolicy = "IfNotPresent";
    repository = "docker.io/grafana/tempo";
    tag = "3.1.1";
    }

Resolved manifest digest, sha256: followed by 64 hex characters. What will actually run. Null means not resolved.

  • Type: null or string
  • Default: the package’s digest while tag is the package’s tag, otherwise null

Whatever a person wanted to say about this pin. Kix never reads it and a promotion never discards it. Declared here for the same reason as the three fields above: a pin carries its own record-keeping, and the option accepts the whole pin rather than a subset of it.

  • Type: null or string
  • Default: null

Who resolved this pin, for the record. Null when unknown.

  • Type: null or string
  • Default: null

imagePullPolicy for containers using this image. Null leaves it to Kubernetes.

  • Type: null or string
  • Default: "IfNotPresent"

Image repository, registry host included.

  • Type: string
  • Default: "docker.io/grafana/tempo"

When this pin was resolved, RFC 3339. Null when unknown.

  • Type: null or string
  • Default: null

Revision of the source the image was built from, when Kix built it. Null for upstream images.

  • Type: null or string
  • Default: null

Image tag. What was asked for.

  • Type: string
  • Default: "3.1.1"

Enable metrics endpoint and monitoring resources (ServiceMonitor, PrometheusRules) when prometheus is available.

  • Type: boolean
  • Default: true

Scrape interval (e.g. ”30s”). Null = use Prometheus default.

  • Type: null or string
  • Default: null

Minimum requests per second a route must serve before TempoRequestErrors evaluates its error ratio.

  • Type: nonnegative integer or floating point number, meaning >=0
  • Default: 0.1
  • Example: 1

Share of a route’s HTTP requests that may answer 5xx before TempoRequestErrors fires.

  • Type: integer or floating point number between 0 and 1 (both inclusive)
  • Default: 0.1
  • Example: 0.05

Run Tempo’s metrics generator with the service-graphs and span-metrics processors, writing series via Prometheus remote write to the prometheusServer dependency’s out.remoteWriteUrl.

  • Type: boolean
  • Default: false

Store trace blocks in an S3 bucket (storage.trace.backend = "s3") instead of on the claim, which keeps the write-ahead logs. Requires the storageCredentials dependency and either endpointService or settings.storage.trace.s3.endpoint (host[:port], no scheme). Pass a secret or secret-ref instance with S3 access keys for storageCredentials, or set deps.storageCredentials = kix.cloudIdentity.aws { roleArn = "..."; } to authenticate to an external S3 bucket with an AWS IAM role.

  • Type: null or (submodule)
  • Default: null

The S3 bucket Tempo writes blocks to (storage.trace.s3.bucket). Each instance writes under <namespace>/<instance> unless settings.storage.trace.s3.prefix overrides it.

  • Type: string matching the pattern [a-z0-9][a-z0-9.-]{1,61}[a-z0-9]
  • Example: "traces"

Secret key in storageCredentials that holds accessKeyId (defaults to accessKeyId when null). Leave null when deps.storageCredentials uses kix.cloudIdentity.aws; setting this with an IAM role fails evaluation.

  • Type: null or non-empty string
  • Default: null

objectStorage.credentialKeys.secretAccessKey

Section titled “objectStorage.credentialKeys.secretAccessKey”

Secret key in storageCredentials that holds secretAccessKey (defaults to secretAccessKey when null). Leave null when deps.storageCredentials uses kix.cloudIdentity.aws; setting this with an IAM role fails evaluation.

  • Type: null or non-empty string
  • Default: null

Scheme of the endpointService dependency’s Service (https sets storage.trace.s3.insecure = false; null means http). Set only with an endpointService dependency.

  • Type: null or one of "http", "https"
  • Default: null

Container resource requests and limits. Each field keeps its default until set, and null removes a default.

  • Type: submodule

  • Default:

    {
    limits = {
    cpu = "1";
    memory = "1Gi";
    };
    requests = {
    cpu = "100m";
    memory = "256Mi";
    };
    }

Dynamic resource claims the container uses. Null leaves it unset.

  • Type: null or (list of (submodule))
  • Default: null

Name of an entry in the pod’s resourceClaims.

  • Type: string

Request within the claim to use. Null uses the whole claim.

  • Type: null or string
  • Default: null

Resource quantities by name.

  • Type: open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: { }

The cpu quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "1"

The ephemeral-storage quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: null

The memory quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "1Gi"

Resource quantities by name.

  • Type: open submodule of attribute set of Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: { }

The cpu quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "100m"

The ephemeral-storage quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: null

The memory quantity. Null leaves it unset.

  • Type: null or Kubernetes quantity, such as "500m" or "1Gi" (a non-negative decimal or integer with an optional suffix m, k, M, G, T, P, E, Ki, Mi, Gi, Ti, Pi or Ei)
  • Default: "256Mi"

How long Tempo keeps a trace block, as a Prometheus duration (y, w, d, h, m, s, and ms, largest first). Rendered as overrides.defaults.compaction.block_retention.

  • Type: string matching the pattern ([0-9]+y)?([0-9]+w)?([0-9]+d)?([0-9]+h)?([0-9]+m)?([0-9]+s)?([0-9]+ms)?
  • Default: "168h"
  • Example: "720h"

Tempo configuration (tempo.yaml keys) merged over the package’s defaults. A null removes a key; a list replaces a default list. The package locks target, multitenancy_enabled, auth_enabled, http_api_prefix, server.http_listen_port, the OTLP receiver endpoints under distributor.receivers.otlp.protocols, live_store.wal.path, live_store.shutdown_marker_dir, backend_scheduler.local_work_path, storage.trace.backend, storage.trace.local.path, and overrides.defaults.compaction.block_retention (set retention). metrics_generator.storage.path and metrics_generator.storage.remote_write are refused (set metricsGenerator.enabled). With objectStorage set, it also locks storage.trace.s3.bucket, and with endpointService, storage.trace.s3.endpoint and storage.trace.s3.insecure. S3 credential keys (access_key, secret_key, session_token, and sse.encryption_key) are refused; wire storageCredentials instead. When metricsGenerator.enabled is false, overrides.defaults.metrics_generator.processors is also refused.

Tempo runs with -config.expand-env=true, so ${NAME} expands the container environment variable NAME (write $$ for a literal $). Backslashes in values are refused because variable expansion consumes them.

  • Type: attribute set of anything

  • Default: { }

  • Example:

    {
    query_frontend = {
    search = {
    max_duration = "336h";
    };
    };
    }