Run Grafana Tempo locally for testing integration with your app.
For more extensive examples, see: https://github.com/grafana/tempo/tree/main/example
docker-compose up -d
docker-compose ps
NAME IMAGE COMMAND SERVICE CREATED STATUS PORTS
grafana grafana/grafana:10.1.1 "/run.sh" grafana 8 seconds ago Up 7 seconds 0.0.0.0:3000->3000/tcp
tempo grafana/tempo:latest "/tempo -config.file=/etc/tempo.yaml" tempo 8 seconds ago Up 7 seconds 0.0.0.0:3200->3200/tcp, 0.0.0.0:4317->4317/tcp
All data is stored locally in the tempo-data
directory.
- Add code instrumentation.
- Export traces to
localhost:4317
via OTEL grpc exporter. Ref: https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc - Perform operations that exercise required the code path.
Navigate to Grafana, select the Tempo data source and use the "Search" tab to find traces.
docker-compose down -v