OpenTelemetry in load testing: closer to the root cause
A load test tells you how the system looks from outside: p95 went up, the error rate rose. The real question is inside: which service, which database, which resource? Spitfire aligns your systems' own traces, metrics and logs with the run's load stages and writes the measured change with its numbers. No proprietary agent, the standard OpenTelemetry SDK.
Open standards, open tools
Spitfire's APM connections are open standards and open tools; the monitoring events add-on adds Zabbix, Datadog, New Relic, Dynatrace and Instana. An admin defines the connections on the APM page; Spitfire talks only to the systems listed there, and tokens and passwords are stored encrypted like connection secrets.
| Source | Direction | What Spitfire uses |
|---|---|---|
| OTLP | your Collector → Spitfire | traces, metrics, error and warning logs |
| Prometheus | Spitfire → query_range | your PromQL: p95, error ratio, resources per service |
| Tempo · Jaeger | Spitfire → trace API | a sample of each stage's traces |
| Loki | Spitfire → query_range | error lines per service (LogQL) |
Prometheus-compatible backends are read through one Prometheus connection: Grafana Mimir (with its /prometheus prefix and the X-Scope-OrgID tenant), Thanos and VictoriaMetrics. The queries are your PromQL; $__interval is replaced with the query step. Every connection has a Test button.
The OTLP receiver: one exporter on the Collector
Spitfire serves OTLP/HTTP on its own HTTP port (/otlp/v1/traces, /otlp/v1/metrics, /otlp/v1/logs; protobuf or JSON). Add one exporter to your OpenTelemetry Collector, next to the ones it already has:
exporters:
otlphttp/spitfire:
endpoint: https://spitfire.example.com/otlp
headers:
Authorization: "Bearer sfotlp_…"
compression: gzip
service:
pipelines:
traces:
receivers: [otlp]
processors: [batch]
exporters: [otlphttp/spitfire] # + your existing exporters
metrics:
receivers: [otlp]
processors: [batch]
exporters: [otlphttp/spitfire]
logs:
receivers: [otlp]
processors: [batch]
exporters: [otlphttp/spitfire]With APM off, the receiver keeps only what falls inside a run window (30 s before the start to 60 s after the end) and applies per-run caps; everything else is answered as rejected, so your Collector does not retry it. Once an admin turns APM on, data is kept regardless of runs, for the retention period. The token is shown once; only its hash is stored.
Check: with APM on, tick your service on the left of APM → Logs; the last minute's logs show in the list. If it is empty, check that the Collector's logs pipeline has the otlphttp/spitfire exporter, or the OTEL_LOGS_EXPORTER=otlp line when you send from the SDK.
Spitfire APM: outside tests too, on your own servers
With admin consent, the same OTLP data is kept regardless of runs, in the ClickHouse of your installation. Under the APM menu:
- Overview: every service and every host a card, the troubled ones first; a wall screen for the TV
- Services: requests, errors, duration (avg/p95/p99); endpoints, exceptions, releases
- Traces: search, filters with counts and grouping, waterfall; Why did it break? ranks the likely causes with a score
- Errors: every error in one place, from an error to its span; Top requests and Top errors rank all services in one list
- DB queries: normalized queries with total time, calls, latency and errors; from the slowest call to its trace
- End users: websites and mobile apps; Web Vitals, sessions, crashes, one trace from the page to the database
- Logs: every log that arrives over OTLP on one screen, linked to its trace
- Alerts, SLOs and anomalies: a notice when a threshold is crossed, the error budget burns fast or a service leaves its usual
- Topology, Hosts and Kubernetes: who calls whom, which app runs on which host or pod
Retention follows your plan: free 1 day, Starter 30, Growth 60, Scale 180, Enterprise 365 days; data per day 1 GB, 5, 25, 100 GB, Enterprise unlimited (pricing). Nothing is stored without admin consent. The Add a service wizard walks you through Java, .NET, Python, Node.js, PHP, Go, Rust and Ruby; websites (HTML, React) and React Native, Flutter, Android and iOS apps connect with an sfrum_ key.
Agent: one command, it finds the apps by itself
APM › App Agents › Install Agent: the wizard gives one command, or on Windows and macOS an installer and a connection code if you prefer. The Agent finds the Java, .NET, .NET Framework, Node.js, Python and PHP apps on Linux, Windows and macOS by itself and switches auto-trace on in the apps it finds; tracing starts with the app's next restart, and no app is restarted without your consent. Switch tracing on and off per app on the same page. It uses the official OpenTelemetry kits, opens no inbound port and only talks to Spitfire; for apps in Docker and Kubernetes it shows a settings block to copy.
The same page shows each Agent's state, CPU/RAM and live log. Change its log level (optionally back to info after a while), stop it and start it again; a change reaches the Agent with its next report.
End users: websites and mobile apps
APM › End users: first paint and Web Vitals (with good/needs-work/poor bands), page and resource timings, slow pages, JS errors and mobile crash/ANR groups, cold start; device brand/model, OS, browser, country/region/city. Each session's timeline shows the steps before a crash. A request that starts from a page or a tap is one trace down to the backend and the DB query; the trace page says where it started. Copy-paste guides for HTML, React, React Native, Flutter, Android and iOS. IP addresses are not kept; query values in addresses are masked.
DB queries
APM › DB queries: the queries your services send to their databases are normalized (values become ?, nothing is kept) and listed with total time, calls, latency, errors and rows, the most time-consuming first. A query's slowest and failed calls open their trace. The DB queries tab on the service page shows the same list for that service.
Alerts, SLOs and anomalies
APM › Alerts: rules with warning and critical thresholds on a service's (optionally an environment's and an endpoint's) p95, p99, p50, average duration, error rate, request rate drop or spike, and new or reopened error groups. They are evaluated every minute: an alert fires when the value stays over the threshold for the set minutes and resolves when it is back under. Add alert on the service page fills the thresholds from the last 24 hours (warning p95 × 1.5, critical p95 × 3). The notice reaches the channels you pick with the value, threshold, chart, slowest and failed traces and a Why did it break? link; issue trackers get an issue and a comment when it resolves. Silences and maintenance windows, for a rule, an SLO, a service or all alerts, mute the notice, not the evaluation.
APM › SLOs: an availability or latency (threshold 25 ms – 10 s) SLI, an objective (%) and a 7, 28 or 30 day window. Error budget left and burn rate charts; fast (1 h + 5 m, 14.4×) and slow (6 h + 30 m, 6×) burn rate alerts. On a capacity (breaking point) run, Make an SLO from this p95 makes the p95 of the highest step that held a latency SLO's threshold. Before a deploy or a load test, spitfire cloud apm alerts --fail-on-firing and spitfire cloud apm slos --fail-on-firing exit 99 when a rule fires or an SLO burns.
Anomalies need no rule: Spitfire learns each service's requests/min, average latency, p95 and error rate from the same times of day over the last 7 days. When a value rises or drops more than 15% and stays outside the learned band for 5 minutes, it opens an event, fires an alert and notifies the owner and channels; traffic stopping altogether is critical. It closes by itself when things are back to normal. It starts on its own after at least 4 learned days; the settings are on the service page's Anomaly tab.
Plan limits: free 3 alert rules + 1 SLO, Starter 20 + 5, Growth and up unlimited. After a downgrade no rule is deleted; the oldest ones keep being evaluated.
Logs
APM › Logs: every log that arrives over OTLP on one screen. The search box finds text inside the message; a trace id or span id brings that trace's logs. Level, service, environment and host on the left; attribute filters key=value, key!=value, key=* and key!=*. On the chart stacked by level, click a level to add it to the filter, drag to narrow the range. A log row's trace badge opens the waterfall with that span picked; the service page has a Logs tab, an error group See logs, a trace Open in Logs.
Patterns show logs of the same shape (numbers, ids and addresses masked) on one row, the biggest first. Live adds new logs on top every two seconds. Saved searches are shared in the workspace, and Copy link opens with the same range and filters. CSV and JSON export is at most 10,000 rows, and every export goes to the audit log. The logs stay in the ClickHouse of your installation for the APM retention.
Tower and Collector: servers and databases during the test
No OpenTelemetry yet, or you only want the servers and the database: a Tower is a small gateway in your network and the Collector is the official OpenTelemetry Collector image. On the Towers & metrics page the Collector config for a server (CPU, memory, disk, network) and PostgreSQL (connections, commits, deadlocks) takes a few clicks; the token and the password stay out of it and are read from the environment. The Tower forwards the data over one outgoing link and never holds up your services: data waits only in a small in-memory queue, never on disk, and is dropped if the controller is unreachable for 60 s. Nothing connects into your network. The run report's Backend tab shows these series with the load stages, with no connection added to the test.
How long metrics are kept and for how many servers, monitored systems (databases, queues, search, caches, web servers) and cloud accounts/Kubernetes clusters follows your plan: the free key includes 1 server + 1 monitored system and 7 days, Enterprise unlimited and 365 days (pricing). Each Docker host, SNMP device and server agent counts as one server; each Kafka, Cassandra, ZooKeeper, etcd or Consul cluster as one monitored system; each AWS account, Azure subscription, Google Cloud project, vCenter and Kubernetes cluster as one cloud account/cluster. Metrics take space in your database, so storage consent comes first.
The Backend tab: the inside, stage by stage
Query connections are read once the run has ended (after 90 s, for late data), for the run's window only. The run page's Backend tab shows, for each load stage: p95 and error rate of every service, database and called system; a load and latency chart; the slowest operations with their trace ids; resource measurements; error log counts.
With the test's traceparent option on, every HTTP request carries a W3C traceparent header; runners keep the trace ids of each step's slowest and first failed requests, and the Backend tab finds those requests in your traces: the service's own time and the slowest span under it. It is off by default, because keeping every request's trace at load-test volume can cost storage on your tracing backend.
Click a trace id and that request's spans open as a waterfall: service, operation, start, duration, error and the database statement if there is one. Spans come from Spitfire's OTLP receiver first, otherwise from the run's Tempo or Jaeger connection; when the trace is not found, it says so.
The Where the time went card shows, from the test requests' traces, which service and database the time was spent in at each load stage, as a share (each span's own time, its children subtracted); the request's time outside the trace (network, load balancer) is its own row. Shares are computed from the sampled requests, the slowest and failed ones: they describe the slow end.
On the run page, Show resource metrics on the charts draws one resource series (a Prometheus query or an OTLP metric) on the run's own charts, on its own axis, with lines where each load stage begins.
Zabbix, Datadog, New Relic, Dynatrace and Instana alerts on the load stages
The run report tells you at which stage the system broke; your monitoring knows what fired at that moment. With the monitoring events add-on, Spitfire reads, after the run, the Zabbix problems, Datadog monitor alerts, New Relic incidents, Dynatrace problems and Instana events that opened in the run's window (from a little before its start to a little after its end) over their APIs, and places each one on the load stage it opened in: when it opened, on which host, its severity or state, how many seconds before or after the break, and when it recovered.
The ones at the break are listed first, the closest to the break on top; those already open before the run are kept apart. When an alert's host or service tag matches a service the Backend tab measured, the row says so, so a CPU alert on db01 and the rise of orders-db's share of the time can be read side by side. The alerts also show on the run's charts with the load stages.
Zabbix: a problem on db01 opened 18 s before the break. The closest before the break: High CPU on db01 (High, opened at 1:10), 18 s before the run broke at the 450 VU stage (at 1:28).
This is an estimate: an alert that opened just before the break coincides with it in time; it shows where to look first and is not a proven cause. Access is read-only: in Zabbix, the API token of a user with a read-only role (Zabbix 5.4 and later); in Datadog, an Application key with only the monitors_read and events_read scopes; in New Relic, a User key; in Dynatrace, an API token with only the problems.read scope; in Instana, an API token. You filter by host group, host, tags and lowest severity or state; only an alert's time, host, name, severity and tags are kept.
Monitoring events come with Enterprise. On every other edition, the free one included, each installation can try the add-on once for 7 days inside the product, then buy it as an add-on. When the trial ends the connections are kept, and what was read for past runs stays on those runs.
Findings: only what the data shows
Backend findings follow the same rule as run findings: they write only what was measured, with its numbers, and say so when data is missing. They never say "because", only "at the same time": they report that two measured changes happened in the same stage without claiming one caused the other.
At the 450 VU stage orders-db (database) p95 rose from 18 ms to 410 ms (240 spans). At the same time the checkout step crossed its threshold: p95 520 ms, limit 300 ms. Slowest operation: SELECT … FROM order_items.
Ranking resources at the breaking point
When the run broke (a p95 or error-rate threshold was crossed, or a step of a breakpoint run failed), Spitfire takes the stage it broke in and the stage before, and ranks every resource series from the connected sources: first absolute saturation (CPU at 95% of its limit or more, memory at 90% or more, a connection pool with rising waiting requests, a queue that at least doubled), then the largest relative jump against the stage before. The top three go into one finding. The ranking is deterministic: the same data always gives the same finding.
The system broke at 560 VUs (the p95 threshold was crossed: 900 ms, limit 500 ms); at the same time the orders-db connection pool filled up (waiting connections 0 → 48) and checkout CPU went from 41% to 97%.
When the test requests' traces were found, the finding also names the component whose share of the time grew most, with the measured values: Share of the time in the sampled test requests: orders-db 12% → 71% (40 traces).
Frequently asked
Do I need to install an agent?
Does Spitfire tell me the cause of the slowdown?
Are values in database statements stored?
SELECT … FROM order_items); values are never stored. Raw data is pruned with the run logs; the computed result stays with the run.How long are traces and logs kept?
Does it work with Zabbix, Datadog, New Relic, Dynatrace or Instana?
Spitfire installs on Docker or Kubernetes with one command; every testing feature and protocol is open in the free edition.