AWS Builder Center
Can Apache SkyWalking Replace Tempo on Amazon EKS?

Can Apache SkyWalking Replace Tempo on Amazon EKS?

I sent the same 51,628 spans to Grafana Tempo and Apache SkyWalking on Amazon EKS. One backend threw my traces away, one lied about p95 by 50%, and the Helm chart put a database on the internet.

Cloud Architect
We run tracing in production on a multi-tenant platform on AWS: OpenTelemetry, Grafana Tempo, and Amazon Managed Grafana. It works. It also cost us OOMKilled pods, a hand-built setup in every namespace, and an extra component just to get p95.
So the question came up, as it always does: is there one backend that does all of it? Apache SkyWalking is the obvious candidate. It is an open-source APM that builds service metrics, topology and percentiles by design.
Reading the documentation was not going to answer it. So I built a lab on Amazon EKS, sent the same traffic to both backends for about half an hour, and wrote down everything that happened.
TL;DR
  • With default settings, SkyWalking 10.4 accepted OpenTelemetry traces and threw every one away ( receiver-zipkin missing ). The applications kept answering 200. Only the collector's log knew.
  • With Zipkin enabled, the traces were stored, but SkyWalking built no services, no topology and no metrics from them.
  • With its own agent, SkyWalking gave a complete APM view out of the box. Without the tenant.
  • Grafana showed tenant B's p95 at 440 ms. The real value was 289 ms. Histogram buckets, not the backend.
  • Under identical traffic, the SkyWalking stack used ~2 GiB of memory; Tempo, Prometheus and Grafana together used ~0.45 GiB.
  • The BanyanDB Helm chart created a public AWS load balancer in front of the database.  helm upgrade  undid my fix.

Where we are today

Architecture of a ROSA cluster. Three .NET services with Dapr send metrics, logs and traces to a pro

Production stack on ROSA: .NET services send to an OpenTelemetry Collector, which forwards to Prometheus, Tempo and Loki; Amazon Managed Grafana reads all three Our production stack on ROSA, with the OpenTelemetry Collector we proposed in the middle.
The platform is a set of .NET APIs with Dapr sidecars on Red Hat OpenShift Service on AWS (ROSA). Several customers, and inside each customer environment, all tenants share one namespace.
We started with AWS X-Ray. It worked, but we wanted traces in the same Grafana as our logs and metrics, so one click takes you from a slow trace to its logs.
Then we moved to OpenTelemetry and Grafana Tempo, with Prometheus and Loki in each customer namespace and Amazon Managed Grafana on top. Three things hurt in production:
  • The observability stack ran out of memory before the application did. Prometheus, Loki and Tempo were OOMKilled at 1024, 512 and 512 MiB. We raised them to 2 GiB, 1 GiB and 2 GiB.
  • Traces do not give you p95 by themselves. To alert on p95, p99 and error rate, we had to enable Tempo's metrics-generator.
  • Everything was built by hand, per namespace. Every difference between namespaces is a future incident.
The fix we proposed was an OpenTelemetry Collector per namespace, so services send to one place and the routing happens in the collector.
Two panels. Without a collector, three .NET services each send directly to Prometheus, Tempo and Lok

Without a collector, every service talks to every backend; with one, services send to a single collector With a collector in the middle, changing the backend is one more exporter.
That collector is what made the experiment possible. If the services only talk to the collector, I can send the same spans to two backends at once and compare them honestly.

The lab

Piece
Version / setting
Amazon EKS
Kubernetes 1.34, 2 × t3.large, eu-west-1
Apache SkyWalking OAP
10.4.0, Helm chart 4.9.0, 1 replica, 1.5 GiB heap
BanyanDB
0.10.1, standalone
OpenTelemetry Collector
contrib 0.164.0, exports to both backends, computes span metrics
Grafana stack
Tempo, Prometheus, Grafana (latest images on the test day)
Demo app
Flask frontend → Flask backend → Redis, deployed twice: OpenTelemetry auto-instrumentation, and the SkyWalking Python agent
Tenants
every request carries  tenant.id : tenant-a, tenant-b, tenant-c. tenant-b is slower on purpose
Errors
5% of backend calls return 500
Load
2, 5 and 10 requests per second per app, about 10 minutes each

The collector does three jobs: exports traces to Tempo, exports traces to SkyWalking, and turns spans into RED metrics with the  spanmetrics  connector, with  tenant.id  as a dimension. That last part replaces Tempo's metrics-generator, and puts the metrics where the collector already is.

connectors:
spanmetrics:
histogram:
explicit:
buckets: [5ms, 10ms, 25ms, 50ms, 100ms, 250ms, 500ms, 1s, 2s]
dimensions:
- name: tenant.id
exporters:
otlp/tempo: { endpoint: tempo.observability:4317, tls: { insecure: true } }
otlp/skywalking: { endpoint: skywalking-skywalking-helm-oap.skywalking:11800, tls: { insecure: true } }
service:
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [otlp/tempo, otlp/skywalking, spanmetrics, servicegraph]

Remember that bucket list. It comes back.
Over the whole test, the collector's own counters reported 51,628 spans sent to Tempo and 51,628 sent to SkyWalking, with no failed exports: about 8, 19 and 35 spans per second in the three phases. Every difference below is the backend, not the data.

Finding 1: SkyWalking accepted the traces, then threw them away

My first run used the Helm chart defaults. Within minutes the collector's log filled up:
error Exporting failed. Dropping data.
otelcol.component.id: otlp/skywalking
error: "not retryable error: Permanent error: rpc error:
code = Unknown desc = Application error processing RPC"
dropped_items: 20

The OAP's log said why:
ModuleNotFoundRuntimeException: receiver-zipkin missing.
at ...otel.otlp.OpenTelemetryTraceHandler.getForwardService(OpenTelemetryTraceHandler.java:406)

In SkyWalking 10.4 the OTLP trace handler is on by default. It converts every span to Zipkin format and forwards it to the Zipkin receiver, which is off by default. The gRPC call fails inside the OAP, the collector treats the error as permanent, and drops the batch. No retry.
I counted 31 dropped batches in the first minutes. The applications answered 200 the whole time. Nothing looked wrong, unless you happened to read the collector's log.

Finding 2: with Zipkin on, the traces arrive, and that is all

Two environment variables fix the drops:
oap:
env:
SW_RECEIVER_ZIPKIN: default
SW_QUERY_ZIPKIN: default

After that: zero dropped batches. The Zipkin query API listed  frontend-otel  and  backend-otel  and returned complete traces.
Then I asked SkyWalking which services it knew, in every relevant layer. The answer was the same each time:
{"data":{"listServices":[]}}

No services means no topology, no p95, no error rate in SkyWalking. On 10.4, OpenTelemetry traces become stored Zipkin traces. They do not become APM.
For us, that was the whole point. We added Tempo's metrics-generator exactly to get p95 from traces. Swapping Tempo for SkyWalking 10.4 and keeping OpenTelemetry would have given that up.

Finding 3: with its own agent, SkyWalking is impressive

The other half of the demo used SkyWalking's own Python agent. The first version I tried, 1.3.0, failed on startup with  No module named 'skywalking.protocol' , and the app quietly ran without it. Version 1.1.0 worked, and the result is the best argument for SkyWalking:

SkyWalking topology: User, frontend-sw, backend-sw and redis connected left to right; frontend-sw an



SkyWalking dashboard for backend-sw: Apdex 0.947, success rate 94.75%, load 111.7 calls per minute,

SkyWalking topology: User to frontend-sw to backend-sw to Redis, services marked red below 95% success Topology with no configuration. Both services are red because success rate dropped below 95%: our deliberate 5% errors.
SkyWalking service overview for backend-sw: Apdex 0.947, success rate 94.7%, load, and response time percentiles Apdex, success rate, load and p50 to p99, out of the box.
Then I opened one failed request:

SkyWalking trace detail of a failed 210 ms request with four spans: frontend 210 ms, frontend call t

SkyWalking trace detail: 210 ms total, 200 ms self time in backend /order, Redis INCRBY 0 ms The  Self(ms)  column answers "where did the time go" instantly: 200 of 210 ms in the backend handler, 0 ms in Redis.
That  Self(ms)  column is a small thing that saves real time. You see immediately that the backend handler, not Redis, holds the time.
What is missing: the tenant. The backend's p95 in SkyWalking, around 250 ms, mixes all three tenants. Our code added  tenant.id  through the OpenTelemetry API; the SkyWalking agent does not know about it. In SkyWalking you would add it again, with its own API or tag configuration. The tenant on the span does not travel between approaches for free.

Finding 4: the tenant works in Grafana, and the p95 lies

On the OpenTelemetry side, Grafana and Tempo gave the same shape of request, and the service graph from the collector:

Grafana node graph: user to frontend-otel, frontend-otel to backend-otel and to an unknown node, bac



Grafana Tempo trace: frontend-otel GET / 148 ms with four spans, including backend-otel GET /order 1

Grafana service graph from the collector: user, frontend-otel, backend-otel, redis, and an unknown node Service graph built by the collector. The  unknown  node is client spans the collector could not pair with a server span within its 5-second window: a tuning artefact, not a service.
Tempo trace in Grafana: frontend-otel GET / 148 ms, backend-otel GET /order 139 ms, Redis INCRBY 1.62 ms The same request shape as in SkyWalking: frontend, backend, Redis.
And because  tenant.id  is a dimension of the span metrics, this is one query away:

Grafana line chart of p95 latency per tenant: tenant-b between 400 and 450 ms, tenant-a and tenant-c

Grafana: p95 latency of backend-otel per tenant, tenant-b around 440 ms, tenant-a and tenant-c around 90 ms p95 per tenant. tenant-b clearly stands out. But not by 440 ms.
This is the per-customer view our management asked for, and SkyWalking's agent could not give me. tenant-b is clearly the slow one.
But I wrote the code, so I know the truth. tenant-b sleeps a uniform 50 to 300 ms. Its real p95 is about 289 ms, not 440. tenant-a's is about 60 ms, not 90.
The cause is the bucket list from the collector config. Between 250 ms and 500 ms there is no boundary, so  histogram_quantile  assumes the requests are spread evenly across that range and interpolates. I computed what interpolation gives for these distributions: 440 ms for tenant-b, 90 to 95 ms for tenant-a and tenant-c. Exactly what the graph shows.
An alert on "p95 above 400 ms" would page someone for a problem that only exists in the buckets. Your p95 is only as accurate as your bucket boundaries. Put boundaries where your SLOs are.
Error rate per tenant had its own lesson:
Grafana line chart of error rate per tenant, the three tenants moving between about 1.5% and 9.5%.

Grafana: error rate per tenant varying between about 1.5% and 9.5% In the code, every tenant has the same 5% error probability. The graph swings from 1.5% to 9.5%.
At under one request per second per tenant, a 5-minute window holds too few requests for a stable rate. Per-tenant error alerts need a minimum volume or a longer window, or they will fire on noise.

Finding 5: what it costs to run

Same spans, same cluster, three load levels:

Bar chart of backend memory at 2, 5 and 10 requests per second: SkyWalking 1,906, 1,993 and 2,022 Mi



Line chart of memory over time: SkyWalking OAP flat at about 1,500 MiB, Tempo between about 100 and



Bar chart of backend CPU at 2, 5 and 10 requests per second: SkyWalking 132, 134 and 186 millicores;

Bar chart: SkyWalking stack about 1,906 to 2,022 MiB, Grafana stack 374 to 462 MiB across 2, 5 and 10 req/s Backend memory, median per phase. The collector, shared by both, is not included.
Line chart: SkyWalking OAP memory flat at about 1.5 GiB for the whole test, Tempo between 100 and 260 MiB growing with load The OAP is a JVM: it takes its heap up front and keeps it. Tempo grows with traffic.
Bar chart: SkyWalking stack CPU 132 to 186 millicores, Grafana stack 23 to 26 millicores Backend CPU. SkyWalking computes metrics continuously; Tempo mostly stores.
Two honest caveats. The OAP's footprint is mostly the heap I gave it (1.5 GiB; the chart default is two replicas with 2 GiB each), and it would not grow 5× with 5× the traffic. And my Prometheus only held span metrics, so the Grafana side is small here. Still, at this scale the SkyWalking stack needed about four times the memory and six to seven times the CPU, and it does more work for that: metrics, topology and percentiles are computed in the backend.
The agents cost the application too:

Bar chart of application CPU at 2, 5 and 10 requests per second: with the SkyWalking agent 41, 64 an

Bar chart: application CPU with SkyWalking agent 41, 64, 102 millicores vs OpenTelemetry 20, 46, 84 Frontend plus backend CPU, same code, same requests.
The SkyWalking agent used more CPU than OpenTelemetry at every load level (102 vs 84 millicores at 10 req/s) and less memory (about 47 vs 65 MiB per pod).

Finding 6: the Helm chart put the database on the internet

The first time I listed the services, one of them had a public address:
skywalking-banyandb-http LoadBalancer ... ac975f8...eu-west-1.elb.amazonaws.com 17913:30436/TCP

I had not asked for it. The BanyanDB chart created a public AWS load balancer in front of the database's HTTP API, and BanyanDB authentication is off by default in the chart. I patched it to  ClusterIP . After the next  helm upgrade , it was a  LoadBalancer  again.
A  kubectl patch  is not a fix. Put the service type in the values file, and on a real AWS account add a guardrail that refuses public load balancers you did not intend.

The comparison


OpenTelemetry → Tempo + Grafana
OpenTelemetry → SkyWalking 10.4
SkyWalking agent → SkyWalking
Traces stored
yes
only with Zipkin enabled; dropped by default
yes
Topology
service graph from the collector
none
yes, out of the box
p95, error rate
from span metrics; accuracy depends on buckets
none
yes, out of the box
Per-tenant view
yes, one dimension
no
not without extra work
"Where did the time go"
read the waterfall
–
 Self(ms)  column
Backend memory (10 req/s)
~0.46 GiB
~2 GiB
~2 GiB
Failure mode I hit
p95 off by 50%
silent drop of every trace
agent 1.3.0 silently not loaded

What I am taking from this

  1. "Supports OpenTelemetry" is three different promises. It can mean drops it, stores it, or analyses it. In my lab, SkyWalking 10.4 kept the first two.
  1. Alert on the collector's dropped spans. Every silent failure in this lab was visible in exactly one place: the collector's log.
  1. Set histogram buckets at your SLO boundaries. Otherwise p95 is an interpolation, not a measurement.
  1. Put the tenant on the span, and know it is not portable. It worked end to end with OpenTelemetry; the SkyWalking agent ignored it.
  1. Never trust a chart's defaults for services. Check every  LoadBalancer  after every install and every upgrade.
  1. A collector in the middle makes comparisons cheap. Sending the same spans to two backends cost one exporter and no developer time.
For our platform, the decision is made: Tempo stays. We are rolling out the OpenTelemetry Collector per namespace, moving our histogram buckets to our SLO boundaries, and adding an alert on dropped spans. SkyWalking is not replacing anything for now.

The one thing to remember

Every number in this lab looked trustworthy. The apps returned 200 while traces were dropped. Grafana drew a confident p95 that was 50% off. A database got a public address nobody asked for.
Every tool will show you a number. Only you can check whether it is true.
Have you ever compared your p95 with a value you knew for sure? I would like to know how far off yours was.

Sources

  1. SkyWalking 10.4.0 – OpenTelemetry trace format:  https://skywalking.apache.org/docs/main/v10.4.0/en/setup/backend/otlp-trace/ 
  1. SkyWalking (next) – OpenTelemetry trace format and analysis:  https://skywalking.apache.org/docs/main/next/en/setup/backend/otlp-trace 
  1. Prometheus – histograms and summaries (histogram_quantile):  https://prometheus.io/docs/practices/histograms/ 
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article