Files
Work-configuration-file/tempo/cos-tempo.yaml
2026-01-09 17:50:32 +08:00

59 lines
1.6 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

server:
http_listen_port: 3200 # HTTP 接口监听端口
grpc_listen_port: 9095 # gRPC 接口监听端口
distributor:
receivers:
otlp:
protocols:
grpc:
endpoint: 0.0.0.0:4317 # OTLP gRPC 接口监听地址
http:
endpoint: 0.0.0.0:4318 # OTLP HTTP 接口监听地址
ingester:
lifecycler:
ring:
replication_factor: 1 # 数据的副本数
max_block_duration: 5m # 最大数据块时长
trace_idle_period: 10s # 如果某个 Trace 长时间未活动,自动清理
compactor:
compaction:
block_retention: 720h # 数据块保留时间720小时30天
compacted_block_retention: 168h # 压缩后的数据块保留时间168小时7天
max_compaction_objects: 1000000 # 每次压缩的最大对象数
metrics_generator:
registry:
external_labels:
source: tempo
cluster: linux-microservices
storage:
path: /data/tempo/data/wal
remote_write:
- url: http://127.0.0.1:9090/api/v1/write
send_exemplars: true
storage:
trace:
backend: s3
s3:
endpoint: outscalelink-1324597558.cos.na-siliconvalley.myqcloud.com
bucket: outscalelink-1324597558
prefix: tempo-data/
forcepathstyle: true
enable_dual_stack: false
insecure: true
access_key: AKIDkgR4lHvU1QfieR7cxBLLTaUCh0S0dDev
secret_key: fAWjldKuPhz4wb6RedPzPccOwGOet9Ug
wal:
path: /data/tempo/data/wal
local:
path: /data/tempo/blocks
overrides:
metrics_generator_processors: [service-graphs, span-metrics]