refactor(docker): image grafana/tempo:2.10.3 (#2273)

This commit is contained in:
heihutu
2026-03-23 23:25:58 +08:00
committed by GitHub
parent e95eb92612
commit b7789c8e08
4 changed files with 57 additions and 41 deletions
+35 -2
View File
@@ -15,10 +15,11 @@
services: services:
# --- Tracing --- # --- Tracing ---
tempo: tempo:
image: grafana/tempo:latest image: grafana/tempo:2.10.3
container_name: tempo container_name: tempo
depends_on:
- redpanda
command: [ "-config.file=/etc/tempo.yaml" ] command: [ "-config.file=/etc/tempo.yaml" ]
volumes: volumes:
- ./tempo.yaml:/etc/tempo.yaml:ro - ./tempo.yaml:/etc/tempo.yaml:ro
@@ -37,6 +38,38 @@ services:
timeout: 5s timeout: 5s
retries: 3 retries: 3
start_period: 15s start_period: 15s
redpanda:
image: redpandadata/redpanda:latest
ports:
- "9092:9092" # Kafka API for clients
command: >
redpanda start --overprovisioned
--mode=dev-container
--kafka-addr=PLAINTEXT://0.0.0.0:9092
--advertise-kafka-addr=PLAINTEXT://redpanda:9092
redpanda-console:
image: docker.redpanda.com/redpandadata/console:latest
environment:
- CONFIG_FILEPATH=/etc/redpanda/redpanda-console-config.yaml
volumes:
- ./redpanda-console.yaml:/etc/redpanda/redpanda-console-config.yaml
ports:
- "8080:8080"
depends_on:
- redpanda
vulture:
image: grafana/tempo-vulture:latest
restart: always
command:
[
"-prometheus-listen-address=:8080",
"-tempo-query-url=http://tempo:3200",
"-tempo-push-url=http://tempo:4317",
]
depends_on:
- tempo
jaeger: jaeger:
image: jaegertracing/jaeger:latest image: jaegertracing/jaeger:latest
+5
View File
@@ -50,6 +50,11 @@ scrape_configs:
static_configs: static_configs:
- targets: [ 'localhost:9090' ] - targets: [ 'localhost:9090' ]
- job_name: 'vulture'
static_configs:
- targets:
- 'vulture:8080'
otlp: otlp:
promote_resource_attributes: promote_resource_attributes:
- service.instance.id - service.instance.id
@@ -0,0 +1,3 @@
kafka:
brokers:
- redpanda:9092
+14 -39
View File
@@ -25,32 +25,18 @@ memberlist:
join_members: join_members:
- tempo:7946 - tempo:7946
# Distributor configuration - receives traces and writes directly to ingesters
distributor: distributor:
ingester_write_path_enabled: true
kafka_write_path_enabled: false
receivers: receivers:
otlp: otlp:
protocols: protocols:
grpc: grpc:
endpoint: "tempo:4317" endpoint: "0.0.0.0:4317"
http: http:
endpoint: "tempo:4318" endpoint: "0.0.0.0:4318"
ring: #log_received_spans:
kvstore: # enabled: true
store: memberlist # log_discarded_spans:
# enabled: true
# Ingester configuration - consumes from Kafka and stores traces
ingester:
lifecycler:
ring:
kvstore:
store: memberlist
replication_factor: 1
tokens_file_path: /var/tempo/tokens.json
trace_idle_period: 10s
max_block_bytes: 1_000_000
max_block_duration: 5m
backend_scheduler: backend_scheduler:
provider: provider:
@@ -67,8 +53,7 @@ backend_worker:
store: memberlist store: memberlist
querier: querier:
frontend_worker: query_live_store: true
frontend_address: tempo:3200
metrics_generator: metrics_generator:
registry: registry:
@@ -90,9 +75,9 @@ storage:
trace: trace:
backend: local backend: local
wal: wal:
path: /var/tempo/wal path: /var/tempo/wal # where to store the wal locally
local: local:
path: /var/tempo/blocks path: /var/tempo/blocks # where to store the traces locally
overrides: overrides:
defaults: defaults:
@@ -101,24 +86,14 @@ overrides:
generate_native_histograms: both generate_native_histograms: both
ingest: ingest:
enabled: false enabled: true
# Disabled because using direct ingester write path kafka:
# If you want Kafka path, enable this and set: address: redpanda:9092
# kafka: topic: tempo-ingest
# brokers: [redpanda:9092]
# topic: tempo-ingest
# encoding: protobuf
# consumer_group: tempo-ingest-consumer
block_builder: block_builder:
consume_cycle_duration: 30s consume_cycle_duration: 30s
compactor:
compaction:
block_retention: 168h # 7 days
ring:
kvstore:
store: memberlist
usage_report: usage_report:
reporting_enabled: false reporting_enabled: false