Skip to content

Commit

Permalink
feat(localenv): add span metric generation
Browse files Browse the repository at this point in the history
- adds configuration that generates span metrics from tempo traces
- can see new `traces_spanmetrics_bucket` etc. in local grafana dashboard
  • Loading branch information
BlairCurrey committed Aug 7, 2024
1 parent 2c8887d commit 6124ebf
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
5 changes: 4 additions & 1 deletion localenv/telemetry/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ services:

prometheus:
image: prom/prometheus:latest
command: "--config.file=/etc/prometheus/prometheus.yaml --log.level=debug"
command:
- --config.file=/etc/prometheus/prometheus.yaml
- --log.level=debug
- --web.enable-remote-write-receiver
networks:
- rafiki
volumes:
Expand Down
10 changes: 10 additions & 0 deletions localenv/telemetry/tempo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,13 @@ storage:
path: /var/tempo/blocks
wal:
path: /var/tempo/wal

metrics_generator:
storage:
path: /tmp/tempo/wal
remote_write:
- url: http://prometheus:9090/api/v1/write
send_exemplars: true

overrides:
metrics_generator_processors: [span-metrics]

0 comments on commit 6124ebf

Please sign in to comment.