Grafana Tempo stores distributed traces and answers trace ID lookups and TraceQL searches. On Rocky Linux 10 or AlmaLinux 10 it installs from Grafana’s own RPM repository in one command. The catch is the config. Tempo 3 removed the ingester and the compactor, so a 2.x tempo.yaml copied from an older guide stops the service before it opens a single port.
This guide installs Tempo from the RPM, writes a config that the current release accepts, opens OTLP over gRPC and HTTP, sends a real trace and reads it back in Grafana. It also covers the errors we hit on the way and how much memory and disk 100,000 spans cost. Every command below was run on Rocky Linux 10.2 with SELinux enforcing in November 2026, against Tempo 3.1.1.
Prerequisites
Tempo runs as a single binary in monolithic mode here, which is the right shape for one server and a few million spans a day. You don’t need Kafka for this mode; that’s only for the microservices layout.
- Rocky Linux 10 or AlmaLinux 10 with a sudo user, SELinux left enforcing
- 2 vCPU and 4 GB RAM as a floor for a lab; the test box had 2 vCPU and 7.6 GB
- Disk sized from your span rate and retention (the measurements later give you the numbers to do that)
- Ports 3200 (HTTP API), 4317 (OTLP gRPC) and 4318 (OTLP HTTP) reachable from your apps or collector
For production, memory follows how many traces are live at once and disk follows spans per second times retention. A service pushing 1,000 spans a second keeps about 86 million spans a day, which works out to roughly 4.8 GB a day at the block size we measured, so a 31 day retention wants 150 GB or more before you add headroom.
Add the Grafana repository
Tempo ships in the same RPM repository as Grafana, Loki, Mimir and Alloy, so there’s no tarball to download and dnf upgrade keeps it current. Create the repo file:
sudo vim /etc/yum.repos.d/grafana.repo
Paste the repository definition from Grafana’s install docs; the sslcacert line is our addition and optional. The repo_gpgcheck line makes dnf verify the repository metadata as well as each package.
[grafana]
name=grafana
baseurl=https://rpm.grafana.com
repo_gpgcheck=1
enabled=1
gpgcheck=1
gpgkey=https://rpm.grafana.com/gpg.key
sslverify=1
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
Save the file, then install the package. dnf asks to import the Grafana Labs key on first use; its fingerprint is B53A E77B ADB6 30A6 8304 6005 963F A277 1045 8545.
Install Tempo
One package gives you the server, tempo-cli and tempo-query, plus a systemd unit and a tempo system user.
sudo dnf install -y tempo
The install finishes cleanly, but the RPM scriptlet prints a shell error in the middle of it, which is easy to mistake for a failed install on the lab box.

The integer expression expected line comes from the post-install script comparing the systemd version as a number. Rocky’s systemd reports 257 (257-23.el10_2.2...), the test chokes on the extra text, and the script carries on. The unit still gets enabled, as the symlink line right after it shows, so you can ignore it.
Confirm which release landed. The repository always serves the newest build, so this is the number to compare against the release notes before you reuse any config from elsewhere.
tempo --version
The first line carries the release and the Git revision it was built from.
tempo, version 3.1.1 (branch: HEAD, revision: 9db7df79d)
build user:
build date:
go version: go1.27.3
platform: linux/amd64
tags: unknown
The package starts Tempo straight away with its stock /etc/tempo/config.yml. That file only enables the OTLP gRPC receiver on 4317 and points the metrics generator at a Prometheus host called prometheus:9090 that won’t exist on your box, so replace it before you send anything.
Write the Tempo configuration
A working Tempo 3 config for one server needs four blocks: the HTTP server, the OTLP receivers, local storage and a retention override. Keep a copy of the stock file first, then open it:
sudo cp /etc/tempo/config.yml /etc/tempo/config.yml.rpm
sudo vim /etc/tempo/config.yml
Replace the contents with this. It’s the exact file that ran on the lab server.
stream_over_http_enabled: true
server:
http_listen_port: 3200
grpc_listen_port: 9095
log_level: info
distributor:
receivers:
otlp:
protocols:
grpc:
endpoint: "0.0.0.0:4317"
http:
endpoint: "0.0.0.0:4318"
storage:
trace:
backend: local
wal:
path: /var/tempo/wal
local:
path: /var/tempo/blocks
overrides:
defaults:
compaction:
block_retention: 744h
There’s no ingester or compactor block because Tempo 3 removed both. The live store now holds recent traces and cuts blocks, and a backend scheduler and worker do compaction and retention. Both run inside the single binary with their defaults. Retention moved too: the overrides.defaults.compaction.block_retention value applies to every tenant and replaces the old compactor.compaction.block_retention. Here it’s 744 hours, 31 days, instead of the 14 day default.
The metrics generator is left out on purpose. With no metrics_generator.storage.path set, Tempo logs a warning and skips it. Add it back once you have a remote write target such as Grafana Mimir on Rocky Linux or Prometheus with its remote write receiver turned on.
Start Tempo and confirm it’s ready
Restart the service so it loads the new file, then check the unit, the readiness endpoint and the sockets in one pass.
sudo systemctl restart tempo
systemctl status tempo --no-pager | head -10
curl -s http://localhost:3200/ready
sudo ss -tlnp | grep tempo
Eight seconds after the restart Tempo answered ready, and systemd counted 24.7 MB of memory for it before any traces arrived:

Four ports should be listening, and only three of them belong in the firewall. If 4318 is missing, the HTTP receiver isn’t in your config.
3200: the HTTP API that Grafana queries4317and4318: OTLP over gRPC and HTTP9095: internal gRPC between the backend worker and scheduler, kept closed
The unit the RPM installs lives in /etc/systemd/system/tempo.service, not under /usr/lib. It runs as User=tempo with Restart=on-failure. A bad config therefore shows up as a restart loop in journalctl -u tempo, not as a single clean failure. On the lab box the file the package shipped contains this:
[Unit]
Description=Tempo service
After=network.target
[Service]
Type=simple
User=tempo
ExecStart=/usr/bin/tempo -config.file /etc/tempo/config.yml
# Give a reasonable amount of time for the server to start up/shut down
TimeoutSec = 120
Restart = on-failure
RestartSec = 2
[Install]
WantedBy=multi-user.target
The package owns this file, so leave it alone. Put your own changes, such as a LimitNOFILE raise or extra environment variables, in a drop-in created with sudo systemctl edit tempo, which keeps them separate from whatever the next package version ships.
Open the firewall
Open the API and both OTLP ports in the default zone, which is public on a stock Rocky install.
sudo firewall-cmd --permanent --add-port={3200,4317,4318}/tcp
sudo firewall-cmd --reload
sudo firewall-cmd --list-ports
The list should show the three ports and nothing for 9095.
3200/tcp 4317/tcp 4318/tcp
Only open 4317 and 4318 to the networks your apps and collectors live on. Tempo accepts traces from anyone who can reach those ports, with no authentication in this config. On a host with a public interface, use a rich rule with a source subnet, or put an OpenTelemetry collector in front and keep Tempo on a private address.
Check SELinux
Tempo needs no SELinux port labels or booleans on Rocky Linux 10. The RPM doesn’t ship a policy module, so systemd starts it in the unconfined_service_t domain, and an unconfined domain can bind any port. Older guides that add 3200, 4317 and 4318 to http_port_t with semanage are doing work that changes nothing.
getenforce
ps -eZ | grep tempo
sudo ls -ldZ /var/tempo
sudo ausearch -m avc,user_avc -ts today
After the whole session of installs, restarts, a 100,000 span load test and Grafana queries, the audit log held no denials at all:
Enforcing
system_u:system_r:unconfined_service_t:s0 7446 ? 00:00:13 tempo
drwx------. 6 tempo root unconfined_u:object_r:var_t:s0 12288 Nov 29 08:32 /var/tempo
<no matches>
Unconfined isn’t the same as unprotected. Tempo still runs as the unprivileged tempo user, and /var/tempo is mode 700, so regular file permissions are what actually stop it. That’s also why the storage error later in this guide is a plain permission problem and not an AVC.
Send a test trace
A single OTLP JSON request over HTTP proves the receiver, the live store and the query path all work before you wire up a real app. Create a small script that builds a fresh trace ID each run:
vim send-trace.sh
The IDs come from od on /dev/urandom because the openssl command isn’t installed on a minimal Rocky 10 image:
TRACE_ID=$(od -An -tx1 -N16 /dev/urandom | tr -d " \n")
SPAN_ID=$(od -An -tx1 -N8 /dev/urandom | tr -d " \n")
NOW=$(date +%s%N)
END=$((NOW + 250000000))
curl -s -w "\nHTTP %{http_code}\n" -X POST http://localhost:4318/v1/traces \
-H "Content-Type: application/json" \
-d '{"resourceSpans":[{"resource":{"attributes":[{"key":"service.name","value":{"stringValue":"checkout-api"}}]},"scopeSpans":[{"spans":[{"traceId":"'"$TRACE_ID"'","spanId":"'"$SPAN_ID"'","name":"POST /checkout","kind":2,"startTimeUnixNano":"'"$NOW"'","endTimeUnixNano":"'"$END"'","attributes":[{"key":"http.request.method","value":{"stringValue":"POST"}},{"key":"http.response.status_code","value":{"intValue":"200"}}]}]}]}]}'
echo "Trace ID: $TRACE_ID"
Run it, then fetch the trace by ID and search for it with TraceQL. Replace the trace ID with the one your run prints.
bash send-trace.sh
sudo dnf install -y jq
curl -s http://localhost:3200/api/v2/traces/43ba40e702d1c24748a837e49edc2ab4 | jq '.trace.resourceSpans[0].scopeSpans[0].spans[0] | {traceId, name, kind}'
curl -s -G http://localhost:3200/api/search --data-urlencode 'q={ resource.service.name = "checkout-api" && span.http.response.status_code = 200 }' | jq '.traces[] | {traceID, rootServiceName, rootTraceName, durationMs}'
An empty partialSuccess object with HTTP 200 means Tempo accepted every span. The search found the trace with its 250 ms duration:

Two things surprised us here. The lookup by ID worked the moment the request returned, but TraceQL search came back empty for about 30 seconds. Search reads blocks, and the live store only cuts one every 30 seconds by default (max_block_duration). Also, the v2 trace endpoint returns traceId base64 encoded (Q7pA5wLRwkdIqDfkntwqtA==), not as the hex string you sent:
{
"traceId": "Q7pA5wLRwkdIqDfkntwqtA==",
"name": "POST /checkout",
"kind": "SPAN_KIND_SERVER"
}
For real services, point the OpenTelemetry SDK or a collector at http://10.0.1.50:4318 (HTTP) or 10.0.1.50:4317 (gRPC). If you already run Grafana Alloy on Rocky Linux 10, its otelcol.exporter.otlp component pointed at port 4317 does the same job and batches spans for you.
Connect Grafana to Tempo
Grafana reads Tempo through a data source pointed at port 3200. Grafana comes from the repo you already added. Install it and provision the data source from a file, so it survives a rebuild:
sudo dnf install -y grafana
sudo systemctl enable --now grafana-server
sudo vim /etc/grafana/provisioning/datasources/tempo.yaml
Add the data source. streamingEnabled makes Grafana stream search results as they arrive, and the node graph draws the service map in Explore:
apiVersion: 1
datasources:
- name: Tempo
type: tempo
uid: tempo
access: proxy
url: http://localhost:3200
isDefault: true
jsonData:
streamingEnabled:
search: true
metrics: true
nodeGraph:
enabled: true
Give the file to the grafana group so the service can read it, then restart Grafana. Provisioned files are read only at startup, so an edit to this file does nothing until the restart.
sudo chown root:grafana /etc/grafana/provisioning/datasources/tempo.yaml
sudo chmod 640 /etc/grafana/provisioning/datasources/tempo.yaml
sudo systemctl restart grafana-server
Grafana listens on port 3000, and this guide doesn’t open it in the firewall. Reach it through an SSH tunnel (ssh -L 3000:localhost:3000 [email protected]) and browse to http://localhost:3000. If other people need the UI, publish it behind a reverse proxy with a TLS certificate, never as plain HTTP.
Open Connections, then Data sources, then Tempo. A provisioned data source is read only, so there’s no Save button. Scroll to the bottom of the page and click Test. The green banner should read Data source is working:

- 1Test
- 2Data source is working
Now go to Explore, pick Tempo, choose the TraceQL query type and run { resource.service.name = "checkout-api" }. Each trace you sent shows up as a row with its root span and duration:

Click a trace ID to open the waterfall. For this screenshot we sent a five span trace across two services, checkout-api and payment-svc, with a database call and a Kafka publish. Grafana shows the 128 ms payment call taking most of the 182 ms request:

That waterfall is the reason to run Tempo at all: one glance says the slow part is the card gateway behind payment-svc, not the database. To jump from a span to its logs and metrics, link this data source to Loki and Prometheus under Trace to logs and Trace to metrics on the same settings page.
Measure memory and disk per 1,000 spans
On this box, 1,000 spans cost about 55 KB of block storage on disk. Memory rose by about 2 MB of RSS per 1,000 spans while they sat in the live store, and much of that came back after the block flush. We sent 10,000 traces of 10 spans each (100,000 spans, three attributes per span, one of them a random user ID) over OTLP HTTP. The sender was a short Python loop, load.py, that posts batches of 50 traces in the same JSON shape as the test script above to port 4318, so any OTLP load tool does the same job.
ps -o rss= -C tempo
python3 load.py 10000
sudo du -sh /var/tempo/blocks
All 100,000 spans went in within 2.4 seconds. Less than 20 seconds later the live store cut one block holding all 10,000 traces. The block metadata gives the exact size:

We sampled RSS every 15 seconds while the block was cut and flushed. The table has the figures that matter for sizing.
| Moment | Tempo RSS | On disk |
|---|---|---|
| Idle, before the test | 101.6 MB | 1.4 MB in /var/tempo |
| Right after 100,000 spans | 204.9 MB | 140 KB live store, 152 KB blocks |
| Block cut, 18 seconds later | 312.5 MB | 15,716 KB live store, 5,672 KB blocks |
| Peak, two minutes later | 314.6 MB | 15,716 KB live store, 5,672 KB blocks |
| Live store trimmed | 226.4 MB | 5,664 KB live store, 5,672 KB blocks |
| Later, idle again | 126.3 MB | 5,535,103 bytes in the block |
Disk is the number to plan with: 5,535,103 bytes for 100,000 spans is 55 KB per 1,000 spans in the vParquet5 block. Spans from real SDKs carry more attributes than ours, so plan on 1.5 to 2 times that. The live store WAL briefly holds about three times the block size, then trims it. Memory tracks live traces and query load, not total spans stored. It dropped to 126 MB after the flush, but climbed back to 290 MB once we ran Grafana searches over the block, so plan for about 3x idle as the working figure, not the post flush low.
Fix the errors we hit
Every error below came up on the lab server while writing this guide, with the exact message Tempo or curl printed and the fix that cleared it.
field ingester not found in type app.Config
Tempo 3 rejects any config that still has 2.x blocks, and systemd then restarts it in a loop. We loaded the config from the earlier version of this guide to see exactly what breaks:

Six keys fail: ingester, compactor, analytics, the metrics generator’s traces_storage, and the block settings v2_index_downsample_bytes and v2_encoding. Delete all of them, then move retention to overrides.defaults.compaction.block_retention as in the config above. The Jaeger receivers in that old file parsed without complaint, so you can keep them if you still have Jaeger clients.
tempo-cli migrate config: migrated config failed validation
Grafana’s Tempo 3 migration guide points to tempo-cli migrate config, and it handles the ingester and compactor blocks. On the same old file it still stopped:
tempo-cli migrate config --mode=monolithic /tmp/old-config.yml
It printed no config at all, only the three keys it doesn’t strip.
tempo-cli: error: migrated config failed validation: yaml: unmarshal errors:
line 34: field traces_storage not found in type generator.Config
line 52: field v2_encoding not found in type common.BlockConfig
line 53: field v2_index_downsample_bytes not found in type common.BlockConfig
Remove those three lines from the old file by hand and run the command again. Read what it outputs before you use it: a short config like the one in this guide is usually easier to maintain than a converted 2.x file.
Failed to connect to localhost port 4318
The stock config.yml from the RPM only enables the gRPC receiver, so anything that speaks OTLP over HTTP is refused:
curl: (7) Failed to connect to localhost port 4318 after 0 ms: Could not connect to server
Add the http protocol under distributor.receivers.otlp.protocols with endpoint: "0.0.0.0:4318" and restart. Don’t leave http: bare with no endpoint. The receiver then binds to localhost:4318 only, and remote clients fail even with the firewall open.
mkdir /data/tempo/blocks: permission denied
Moving storage to a bigger disk is common, and the new directory is owned by root when mkdir creates it. We pointed both paths at /data/tempo, and Tempo exited on start:
level=error caller=main.go:112 msg="error running Tempo" err="failed to init module services: error initialising module: usage-report: failed to initialize usage report: mkdir /data/tempo/blocks: permission denied"
Give the directory to the tempo user, close it to everyone else, and clear the failed state before you restart.
sudo chown -R tempo:tempo /data/tempo
sudo chmod 700 /data/tempo
sudo systemctl reset-failed tempo
sudo systemctl restart tempo
Tempo came up ready on the new path, with the directories labelled default_t and still no AVC denials. That’s because the process is unconfined, as the SELinux section showed. If you’re stuck at this step, read the error string: permission denied from mkdir is file ownership, and an SELinux block would also log an AVC record that ausearch shows.
trace ids must be 128 bit, received 0 bits
Our first test trace came back with HTTP 400, and the two lines above the JSON give the cause away.
/tmp/send-trace.sh: line 1: openssl: command not found
/tmp/send-trace.sh: line 2: openssl: command not found
{"code":3,"message":"trace ids must be 128 bit, received 0 bits"}
HTTP 400
The script used openssl rand -hex 16 for the IDs, and a minimal Rocky 10 install has no openssl command, so the trace ID was empty. Tempo rejects any ID that isn’t exactly 16 bytes. Generate IDs with od as the script above does, or install the openssl package.
error calling scheduler: nil job received
With nothing to compact, the journal fills with lines like these every few seconds:
level=error caller=backendworker.go:543 msg="error calling scheduler" err="error getting next job: rpc error: code = Internal desc = nil job received" backoff=8.206369962s
level=error caller=backendworker.go:543 msg="error calling scheduler" err="rpc error: code = NotFound desc = no jobs found" backoff=112.663133ms
That’s the backend worker asking the scheduler for compaction work and getting none. Across our whole session it logged 88 of them, while ingest and queries kept working and /ready stayed green. Leave them alone, or raise log_level to warn if they bury the messages you care about.
TraceQL search returns no traces right after ingest
A search for a trace you sent seconds ago returns {"traces":[]}, even though /api/v2/traces/<id> finds it. Wait 30 seconds and search again. Search reads blocks, and the live store cuts them on its max_block_duration timer. In the lab, the first search hit came roughly 30 to 35 seconds after the push.
Harden it for production
The setup above is a complete single node. Before real traffic hits it, change the four things that hurt first:
- Put
/var/tempoon its own volume sized from the per 1,000 span figure, so a traffic spike can’t fill the root filesystem - Move blocks to S3 compatible object storage once retention passes a few hundred GB; only the
storage.traceblock changes - Limit 4317 and 4318 to your collector subnets and send apps through one collector that batches and retries
- Turn the metrics generator back on with a real remote write target, so you get RED metrics and the service graph
Scrape Tempo’s own metrics on :3200/metrics with Prometheus 3 on Rocky Linux 10, and alert on the distributor’s refused spans and on disk usage under /var/tempo. If you’re building the full stack, send logs to Grafana Loki on the same host family. The open source observability stack with SLOs shows how traces, metrics and logs feed one error budget alert. Our verdict: on one Rocky or Alma server, the RPM plus a short Tempo 3 config is the easiest tracing backend to keep running. Start it small, measure your own spans per 1,000, and only reach for object storage and microservices mode when the disk numbers tell you to.