Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add local tempo #14

Merged
merged 2 commits into from
Apr 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 37 additions & 0 deletions devenv/tempo.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
stream_over_http_enabled: true
server:
http_listen_port: 3200
log_level: info

distributor:
receivers:
otlp:
protocols:
http:
grpc:

ingester:
max_block_duration: 5m

compactor:
compaction:
block_retention: 1h

metrics_generator:
storage:
path: /tmp/tempo/generator/wal
traces_storage:
path: /tmp/tempo/generator/traces

storage:
trace:
backend: local # backend configuration to use
wal:
path: /tmp/tempo/wal # where to store the the wal locally
local:
path: /tmp/tempo/blocks

overrides:
defaults:
metrics_generator:
processors: [local-blocks] # enables metrics generator
16 changes: 16 additions & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,19 @@ services:
volumes:
- ./dist:/var/lib/grafana/plugins/grafana-explore-traces
- ./provisioning:/etc/grafana/provisioning

tempo:
image: grafana/tempo:main-5e26604
command: [ "-config.file=/etc/tempo.yaml" ]
volumes:
- ./devenv/tempo.yaml:/etc/tempo.yaml
ports:
- "3200:3200" # tempo

k6-tracing:
image: ghcr.io/grafana/xk6-client-tracing:latest
environment:
- ENDPOINT=tempo:4317
restart: always
depends_on:
- tempo
12 changes: 12 additions & 0 deletions provisioning/datasources/default.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,15 @@ datasources:
uid: gdev-tempo
access: proxy
url: http://host.docker.internal:3200

- name: Tempo
type: tempo
access: proxy
orgId: 1
url: http://tempo:3200
basicAuth: false
isDefault: true
version: 1
editable: false
apiVersion: 1
uid: tempo
Loading