DevOps Fortgeschritten
Grafana Tempo — Distributed Tracing¶
TempoTracingGrafanaObservability 5 min Lesezeit
Grafana Tempo für Distributed Tracing. Object-Storage-Backend, TraceQL-Abfragen und Integration mit dem Grafana-Stack.
Was ist Tempo¶
Grafana Tempo ist ein hochskalierbares Tracing-Backend. Es speichert Traces direkt im Object Storage — kein Elasticsearch/Cassandra.
- Nur Object Storage — geringe Kosten
- TraceQL — Abfragesprache für Traces
- Native Integration mit Grafana, Loki, Mimir
Deployment¶
tempo:
image: grafana/tempo:2.4.0
command: ["-config.file=/etc/tempo.yaml"]
ports:
- "4317:4317" # OTLP gRPC
- "3200:3200" # Tempo API
# tempo.yaml
server:
http_listen_port: 3200
distributor:
receivers:
otlp:
protocols:
grpc:
http:
storage:
trace:
backend: s3
s3:
bucket: tempo-traces
endpoint: s3.eu-west-1.amazonaws.com
TraceQL¶
# Traces mit Fehler
{ resource.service.name = "order-service" && status = error }
# Traces länger als 2 Sekunden
{ duration > 2s }
# HTTP-500-Fehler
{ span.http.status_code >= 500 }
# Pipeline
{ resource.service.name = "api-gateway" } | avg(duration) > 500ms
Zusammenfassung¶
Grafana Tempo bietet kosteneffektives Distributed Tracing mit einfachem Betrieb. TraceQL und die native Grafana-Integration sind konkurrenzlos.
Brauchen Sie Hilfe bei der Implementierung?¶
Unser Team hat Erfahrung mit dem Entwurf und der Implementierung moderner Architekturen. Wir helfen Ihnen gerne.