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.
| Stability | Experimental |
package value | packages.experimental.tempo |
| Default software version | 3.1.1 |
| Default aliases | tempo |
| Highest availability level | none |
Dependencies
Section titled “Dependencies”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.
| Dependency | Requirement |
|---|---|
storage | Required |
endpointService | Optional |
prometheus | Optional |
prometheusServer | Optional |
storageCredentials | Optional |
Options
Section titled “Options”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:
{ }
extraArgs
Section titled “extraArgs”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:
1[2"-log.level=debug"3]
Container image for this instance. Set it from a pin file (kix.pins) so the deployed reference is committed and resolved.
-
Type:
submodule -
Default:
1{2digest = "sha256:64e2fbd56d9c2b3412a4b430a58ea59e91a670b1e75f920a0c702213ad145044";3pullPolicy = "IfNotPresent";4repository = "docker.io/grafana/tempo";5tag = "3.1.1";6}
image.digest
Section titled “image.digest”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
tagis the package’s tag, otherwise null
image.note
Section titled “image.note”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
image.promotedBy
Section titled “image.promotedBy”Who resolved this pin, for the record. Null when unknown.
- Type:
null or string - Default:
null
image.pullPolicy
Section titled “image.pullPolicy”imagePullPolicy for containers using this image. Null leaves it to Kubernetes.
- Type:
null or string - Default:
"IfNotPresent"
image.repository
Section titled “image.repository”Image repository, registry host included.
- Type:
string - Default:
"docker.io/grafana/tempo"
image.resolvedAt
Section titled “image.resolvedAt”When this pin was resolved, RFC 3339. Null when unknown.
- Type:
null or string - Default:
null
image.sourceRev
Section titled “image.sourceRev”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
Section titled “image.tag”Image tag. What was asked for.
- Type:
string - Default:
"3.1.1"
metrics.enabled
Section titled “metrics.enabled”Enable metrics endpoint and monitoring resources (ServiceMonitor, PrometheusRules) when prometheus is available.
- Type:
boolean - Default:
true
metrics.interval
Section titled “metrics.interval”Scrape interval (e.g. ”30s”). Null = use Prometheus default.
- Type:
null or string - Default:
null
metrics.requestErrorMinRate
Section titled “metrics.requestErrorMinRate”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
metrics.requestErrorRatio
Section titled “metrics.requestErrorRatio”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
metricsGenerator.enabled
Section titled “metricsGenerator.enabled”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
objectStorage
Section titled “objectStorage”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
objectStorage.bucket
Section titled “objectStorage.bucket”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"
objectStorage.credentialKeys.accessKeyId
Section titled “objectStorage.credentialKeys.accessKeyId”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
objectStorage.endpointScheme
Section titled “objectStorage.endpointScheme”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
resources
Section titled “resources”Container resource requests and limits. Each field keeps its default until set, and null removes a default.
-
Type:
submodule -
Default:
1{2limits = {3cpu = "1";4memory = "1Gi";5};6requests = {7cpu = "100m";8memory = "256Mi";9};10}
resources.claims
Section titled “resources.claims”Dynamic resource claims the container uses. Null leaves it unset.
- Type:
null or (list of (submodule)) - Default:
null
resources.claims.*.name
Section titled “resources.claims.*.name”Name of an entry in the pod’s resourceClaims.
- Type:
string
resources.claims.*.request
Section titled “resources.claims.*.request”Request within the claim to use. Null uses the whole claim.
- Type:
null or string - Default:
null
resources.limits
Section titled “resources.limits”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:
{ }
resources.limits.cpu
Section titled “resources.limits.cpu”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"
resources.limits.ephemeral-storage
Section titled “resources.limits.ephemeral-storage”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
resources.limits.memory
Section titled “resources.limits.memory”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"
resources.requests
Section titled “resources.requests”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:
{ }
resources.requests.cpu
Section titled “resources.requests.cpu”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"
resources.requests.ephemeral-storage
Section titled “resources.requests.ephemeral-storage”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
resources.requests.memory
Section titled “resources.requests.memory”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"
retention
Section titled “retention”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"
settings
Section titled “settings”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:
1{2query_frontend = {3search = {4max_duration = "336h";5};6};7}