Skip to content

Commit 49337f4

Browse files
authored
Update Graphana Tempo config for latest version (#10055)
## What changed? Updates the Graphana Tempo configuration used for the service when running locally. (Simply copying a more recent version of the single-binary setup.) Fixes #10053. ## Why? Previously, the Tempo container would fail on startup. Preventing any collection of OTel traces. It appeared to stem from breaking changes in the Tempo service itself, as it modified the schema of its configuration file. I'll admit I am out of my depth here. But some of the field changes are called out in their upgrade guide here: https://grafana.com/docs/tempo/latest/set-up-for-tracing/setup-tempo/upgrade/ ## How did you test it? - [x] built - [x] run locally and tested manually - [ ] ~covered by existing tests~ - NA? - [ ] ~added new unit test(s)~ - NA? - [ ] ~added new functional test(s)~ - NA? I ran the https://github.com/temporalio/samples-go/tree/main/opentelemetry sample, and within the Graphana UI on http://localhost:3000/ I saw data showing up. <img width="1244" height="620" alt="image" src="https://github.com/user-attachments/assets/320642a8-1b91-4428-bb6d-1f2b090016b8" />
1 parent 66083d0 commit 49337f4

1 file changed

Lines changed: 16 additions & 51 deletions

File tree

  • develop/docker-compose/grafana/provisioning/tempo
Lines changed: 16 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,18 @@
1-
# Copied from https://github.com/grafana/tempo/blob/main/example/docker-compose/local/tempo.yaml
2-
1+
# Copied from https://github.com/grafana/tempo/blob/main/example/docker-compose/single-binary/tempo.yaml
32
stream_over_http_enabled: true
3+
44
server:
55
http_listen_port: 3200
66
log_level: info
77

8-
cache:
9-
background:
10-
writeback_goroutines: 5
11-
caches:
12-
- roles:
13-
- frontend-search
14-
memcached:
15-
host: memcached:11211
16-
17-
query_frontend:
18-
search:
19-
duration_slo: 5s
20-
throughput_bytes_slo: 1.073741824e+09
21-
metadata_slo:
22-
duration_slo: 5s
23-
throughput_bytes_slo: 1.073741824e+09
24-
trace_by_id:
25-
duration_slo: 100ms
26-
metrics:
27-
max_duration: 120h # maximum duration of a metrics query, increase for local setups
28-
query_backend_after: 5m
29-
duration_slo: 5s
30-
throughput_bytes_slo: 1.073741824e+09
31-
328
distributor:
33-
receivers: # this configuration will listen on all ports and protocols that tempo is capable of.
34-
jaeger: # the receives all come from the OpenTelemetry collector. more configuration information can
35-
protocols: # be found there: https://github.com/open-telemetry/opentelemetry-collector/tree/main/receiver
36-
thrift_http: #
37-
grpc: # for a production deployment you should only enable the receivers you need!
38-
thrift_binary:
39-
thrift_compact:
40-
zipkin:
9+
receivers:
4110
otlp:
4211
protocols:
43-
http:
4412
grpc:
45-
opencensus:
46-
47-
ingester:
48-
max_block_duration: 5m # cut the headblock when this much time passes. this is being set for demo purposes and should probably be left alone normally
49-
50-
compactor:
51-
compaction:
52-
block_retention: 24h # overall Tempo trace retention. set for demo purposes
13+
endpoint: "tempo:4317"
14+
http:
15+
endpoint: "tempo:4318"
5316

5417
metrics_generator:
5518
registry:
@@ -61,16 +24,14 @@ metrics_generator:
6124
remote_write:
6225
- url: http://prometheus:9090/api/v1/write
6326
send_exemplars: true
64-
traces_storage:
65-
path: /var/tempo/generator/traces
66-
processor:
67-
local_blocks:
68-
filter_server_spans: false
69-
flush_to_storage: true
27+
28+
query_frontend:
29+
mcp_server:
30+
enabled: true
7031

7132
storage:
7233
trace:
73-
backend: local # backend configuration to use
34+
backend: local
7435
wal:
7536
path: /var/tempo/wal # where to store the wal locally
7637
local:
@@ -79,5 +40,9 @@ storage:
7940
overrides:
8041
defaults:
8142
metrics_generator:
82-
processors: [service-graphs, span-metrics, local-blocks] # enables metrics generator
43+
processors: ["span-metrics", "service-graphs"]
8344
generate_native_histograms: both
45+
46+
47+
usage_report:
48+
reporting_enabled: false

0 commit comments

Comments
 (0)