otel collector metrics generator

This commit is contained in:
royalcat 2024-06-04 17:06:39 +03:00
parent 2d3ba05ef0
commit beea88e795
2 changed files with 7 additions and 13 deletions
otel-collector
tempo

View file

@ -31,6 +31,11 @@ exporters:
otlphttp/loki:
endpoint: http://loki:3100/otlp
connectors:
spanmetrics:
histogram:
explicit:
service:
extensions:
- health_check
@ -40,10 +45,9 @@ service:
traces:
receivers: [otlp]
processors: [batch]
exporters:
- otlp/tempo
exporters: [otlp/tempo, spanmetrics]
metrics:
receivers: [otlp, prometheus/self]
receivers: [otlp, prometheus/self, spanmetrics]
processors: [batch]
exporters:
- otlphttp/mimir

View file

@ -13,16 +13,6 @@ distributor:
ingester:
max_block_bytes: 131072000 # 128mb
metrics_generator:
registry:
external_labels:
source: trace
storage:
path: /tempo-data/generator/wal
remote_write:
- url: http://mimir:9009/api/v1/push
send_exemplars: true
compactor:
compaction:
block_retention: 672h # 28 days