Skip to content

fix(k8s): Tempo starts again with config keys of its version - #6733

Merged
dan-petty merged 4 commits into
mainfrom
fix/6730-tempo-config-keys
Nov 22, 2026
Merged

dan-petty merged 4 commits into
mainfrom
fix/6730-tempo-config-keys

Conversation

@dan-petty

@dan-petty dan-petty commented Nov 22, 2026 •

Copy link
Copy Markdown
Owner

Pod otel/tempo-0 (Tempo 3.1.1) stopped at start: the limits of #6616
put max_bytes_per_trace and target_bytes_per_second in the search
block of the query frontend, which Tempo 3.1.1 does not have. The trace
size limit moves to tempo.overrides.defaults.global, which the chart
renders; it did not render tempo.global_overrides. Tempo has no byte
rate limit, so that key goes. search.max_duration is the largest time
range of a search, so 30s becomes api_timeout: 30s.

A new row charts of devops ci renders the chart of the Application
tempo with helm template and starts the Tempo image of the chart on
the rendered config with -config.verify=true and no network. The check
of the query limits moves to this row, reads the rendered config and
asserts only the bounds under the memory limit. The Static Analysis job
runs the new row. The k8s row needs only kubectl and the files of
the checkout, because a plan can name it as a verification command that
the implement Job runs, and a Job pod has no container engine. The
helm and docker reasons of NOT_IN_RUNNER name the charts row and
tell a plan not to name it in a verification command.

Closes #6730

Change: openspec/changes/archive/2026-11-22-6730-tempo-config-keys/

@dan-petty dan-petty added type/bug Type bug: the code does not do what it must scope/k8s Kubernetes commands, Helm charts, pods, services, and policies labels Nov 22, 2026
@dan-petty

Copy link
Copy Markdown
Owner Author

Proof: the rendered config parses with the pinned Tempo binary

  • The live pod runs docker.io/grafana/tempo@sha256:64e2fbd56d9c2b3412a4b430a58ea59e91a670b1e75f920a0c702213ad145044 (read-only kubectl -n otel get pod tempo-0, 95 restarts at 03:00 UTC). skopeo inspect docker://docker.io/grafana/tempo:3.1.1 gives the same digest.
  • Render: helm template tempo tempo --repo https://grafana-community.github.io/helm-charts --version 3.2.1 --namespace otel --skip-tests --values k8s/otel/tempo-values.yaml (the chart version of k8s/argocd/apps/tempo.yaml). The files of ConfigMap tempo go to a folder that the container mounts read-only at /conf.
  • Run: podman run --rm --network none -v <folder>:/conf:ro docker.io/grafana/tempo:3.1.1@sha256:64e2fbd5... -config.file=/conf/tempo.yaml -config.verify=true
    • main (235fea04b): exit 1, the error of the pod:
      failed parsing config: failed to parse configFile /conf/tempo.yaml: yaml: unmarshal errors:
        line 47: field max_bytes_per_trace not found in type frontend.SearchConfig
        line 50: field target_bytes_per_second not found in type frontend.SearchConfig
      
    • this branch: exit 0, no output (no parse error and no configuration warning).
  • Full start of the config of this branch (no -config.verify, --tmpfs /var/tempo, no network):
    level=info caller=main.go:105 msg="Starting Tempo" version="(version=v3.1.1, branch=HEAD, revision=9db7df79d)" target=all
    level=info caller=app.go:218 msg="Tempo started"
    
    I removed the container and the image after the runs.
  • Rendered blocks of this branch:
    querier:
          max_concurrent_queries: 4
    query_frontend:
          api_timeout: 30s
          max_outstanding_per_tenant: 10
          search:
            max_result_limit: 50
    overrides:
          defaults:
            global:
              max_bytes_per_trace: 1000000
          per_tenant_override_config: /conf/overrides.yaml
  • uv run devops ci fail-to-pass --base origin/main:
    failed on base, passed on head: k8s tempo_config.check_the_rendered_tempo_config_parses_with_the_tempo_image_of_the_chart
    failed on base, passed on head: k8s tempo_query_limits.check_the_tempo_query_limits_stay_under_the_memory_limit
    k8s gate row: 2 of 222 cases failed on base, 0 of 222 on head
    

Sources at tag v3.1.1 of grafana/tempo

  • modules/frontend/search_sharder.go:32: SearchSharderConfig has concurrent_jobs, target_bytes_per_job, default_result_limit, max_result_limit, max_duration, query_backend_after, ingester_shards, most_recent_shards, default_spans_per_span_set, max_spans_per_span_set. No byte rate and no trace size key.
  • modules/frontend/search_sharder.go:104: a search with End-Start over max_duration gets HTTP 400 ("range specified by start and end exceeds"). Docs: "The maximum allowed time range for a search."
  • modules/frontend/config.go:33: api_timeout. Docs: "Set a maximum timeout for all api queries at which point the frontend will cancel queued jobs and return cleanly."
  • modules/overrides/config.go:207: global.max_bytes_per_trace, "enforced in the Ingester, Compactor, Querier (Search)". Default 5000000.
  • Chart 3.2.1 README: "global_overrides => overrides".

Points for the owner

  1. search.max_duration: 30s of fix(k8s): a trace search OOM-kills Tempo #6616 would refuse each Grafana search over more than 30 s of time (for example the last hour) once Tempo parses it. The PR puts the 30 s under api_timeout, the key for the time that a read runs. It applies to all API reads (search, tags, TraceQL metrics). The default max_duration (168h, the retention) applies again.
  2. The trace size limit of 1000000 bytes takes effect for the first time: the chart never rendered tempo.global_overrides. Tempo now refuses the spans of a trace past 1000000 bytes as it receives them (the Tempo default is 5000000).
  3. tempo_query_limits.py no longer asserts exact values. It asserts the bounds of fix(k8s): a trace search OOM-kills Tempo #6616 on the rendered config (docs/TESTING.md, test(k8s): Drop the tests that repeat third-party version pins #6060). Tell me if you want the exact values back.
  4. The k8s row now needs helm, the docker command and access to the chart repository and Docker Hub. It took 26 s to 35 s here (23 s before); the first run on a host pulls the Tempo image. A runner Job has no container engine, and no step of a Job runs this row.

Person steps after the merge

  • After Argo CD syncs main: otel/tempo-0 is Running and Ready, Application tempo is Synced and Healthy, and a TraceQL search through Grafana (for example over the last hour) returns traces.

The Tempo checks start helm and docker and need the network, and the
implement Job runs `uv run devops ci --check --only k8s` when a plan
names it as a verification command. A Job pod has no container engine.
So the checks move to a new `charts` row, and the `k8s` row needs only
kubectl and the files of the checkout again. The helm and docker
reasons of NOT_IN_RUNNER name the new row.
@dan-petty
dan-petty force-pushed the fix/6730-tempo-config-keys branch from a047862 to c32bda7 Compare November 22, 2026 03:57
@dan-petty

Copy link
Copy Markdown
Owner Author

Review points for the owner (P0: Tempo is down until this merges)

  1. queryFrontend.api_timeout: 30s now bounds each Tempo API read (search, tags and TraceQL metrics), in place of search.max_duration: 30s, which was the largest time range of a search and would refuse each search over more than 30 s of data.
  2. The trace size limit of 1000000 bytes takes effect for the first time (overrides.defaults.global.max_bytes_per_trace; the chart never rendered global_overrides). Tempo drops the spans of a trace past 1 MB at ingest; the Tempo default is 5000000.
  3. The parse check of the rendered config is the new charts row of devops ci: it needs helm, a container engine and network access to the chart repository and Docker Hub, so it runs in the Static Analysis job of CI and on a workstation, not in an implement Job.

After the merge, the coordinator checks that otel/tempo-0 is Running and Ready, that Application tempo is Synced and Healthy, and that a TraceQL search returns traces.

@dan-petty
dan-petty marked this pull request as ready for review November 22, 2026 04:06
@dan-petty
dan-petty merged commit 0cdd324 into main Nov 22, 2026
33 checks passed
@dan-petty
dan-petty deleted the fix/6730-tempo-config-keys branch November 22, 2026 04:08
dan-petty pushed a commit that referenced this pull request Nov 22, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.192.2](v0.192.1...v0.192.2)
(2026-11-22)


### Bug Fixes

* **ai:** rag index skips data fixtures and survives a failed batch
([#6719](#6719))
([568475e](568475e)),
closes [#6717](#6717)
* **k8s:** Tempo starts again with config keys of its version
([#6733](#6733))
([0cdd324](0cdd324)),
closes [#6730](#6730)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/k8s Kubernetes commands, Helm charts, pods, services, and policies type/bug Type bug: the code does not do what it must

Projects

None yet

Development

Successfully merging this pull request may close these issues.

fix(k8s): Tempo starts again with config keys of its version

1 participant