Menu
Open source
Monitor TempoStack instances
The configuration for monitoring TempoStack
instances is exposed in the CR:
yaml
apiVersion: tempo.grafana.com/v1alpha1
kind: TempoStack
spec:
observability:
metrics:
createServiceMonitors: true
createPrometheusRules: true
tracing:
sampling_fraction: 1.0
jaeger_agent_endpoint: localhost:6831
Configure distributed tracing of operands
All Tempo components as well as the Tempo Gateway support the export of traces in thrift_compact
format.
Deploy OpenTelemetry collector sidecar
To deploy the OpenTelemetry collector, follow these steps:
- Install OpenTelemetry Operator into the cluster.
- Create an
OpenTelemetryCollector
CR that receives trace data in Jaeger Thrift format and exports data via OTLP to the desired trace backend. - Optional: Deploy tracing backend to store trace data.
yaml
apiVersion: opentelemetry.io/v1alpha1
kind: OpenTelemetryCollector
metadata:
name: sidecar-for-tempo
spec:
mode: sidecar
config: |
receivers:
jaeger:
protocols:
thrift_compact:
exporters:
otlp:
endpoint: <otlp-endpoint>:4317
tls:
insecure: true
service:
pipelines:
traces:
receivers: [jaeger]
exporters: [otlp]
Send trace data to OpenTelemetry sidecar
Finally, create a TempoStack
instance that sets jaeger_agent_endpoint
to report trace data to the localhost
.
The Tempo operator sets the OpenTelemetry inject annotation sidecar.opentelemetry.io/inject": "true
to all TempoStack
pods.
The OpenTelemetry Operator will recognize the annotation, and it will inject a sidecar into all TempoStack
pods.
yaml
apiVersion: tempo.grafana.com/v1alpha1
kind: TempoStack
metadata:
name: simple-stack
spec:
template:
queryFrontend:
jaegerQuery:
enabled:
storage:
secret:
type: s3
name: minio-test
storageSize: 200M
observability:
tracing:
sampling_fraction: "1.0"
jaeger_agent_endpoint: localhost:6831
Was this page helpful?
Related resources from Grafana Labs
Additional helpful documentation, links, and articles:

Getting started with tracing and Grafana Tempo
In this webinar, we'll show you how to get started setting up Grafana Tempo, our open source, easy-to-use and high-volume distributed tracing backend.

Scaling your distributed tracing with Grafana Tempo
In this demo, we’ll show how Grafana Tempo allows you to scale tracing as far as possible with less operational cost and complexity than ever before.

TraceQL: a first-of-its-kind query language to accelerate trace analysis in Tempo 2.0
Grafana Tempo will take a big leap in the 2.0 release with TraceQL, a first-of-its-kind query language to help you find the exact trace you're looking for.