Skip to main content
Every app that serves traffic through a domain gets request rate, error rate and latency percentiles with no setup and no change to the app. The numbers are measured at the embedded ingress, kept on the node that served the requests, and queried on demand.

What you see

Open an app and choose Traffic under Observe, or run traffic <app> in the CLI. For the window you pick (5 minutes, 1 hour, 24 hours or 7 days):

Bounded by design

Memory and storage stay flat as traffic grows.
  • Latency uses a fixed 12 bucket histogram per app and per replica. Percentiles are estimated from the buckets, so they are accurate to the bucket width.
  • Routes are normalized templates such as /api/users/:id. Ids, tokens, query strings and client addresses are never read or stored. The number of distinct routes and replicas kept per tick is capped, and the rest fall into an other bucket.
  • The sample log keeps failed requests (5xx and upstream failures) and a fraction of slow ones, capped per tick and per app, and expires with a retention period.

Settings

All settings are environment variables on the control plane or agent.

Error spikes and deploys

The window is cut into buckets (APP_TRAFFIC_SPIKE_BUCKETS, never finer than 15 seconds). A run of consecutive buckets is a spike when each bucket has at least APP_TRAFFIC_SPIKE_MIN_REQUESTS requests and a 5xx share of at least APP_TRAFFIC_SPIKE_MIN_RATE and APP_TRAFFIC_SPIKE_FACTOR times the window median, so an app that always errors a little does not light up. Each spike is tied to the latest deploy that started no more than APP_TRAFFIC_SPIKE_ATTRIBUTION before it. The match is a hint, not proof: check the deploy before rolling back. Spikes appear in the Traffic tab, in traffic <app> and in the error_spikes field of the API and the get_app_traffic MCP tool. They are computed on request from the stored per-minute counters, so nothing extra is stored.

Alerts

A threshold alert rule can watch three request metrics, so “error rate above X for Y” and “p99 above X for Y” need no new rule type: A window with no requests neither fires nor resolves a rule. For error-budget alerting use an SLO burn rule, which this page’s budget figure reads.

API

GET /api/v1/apps/{name}/traffic?window=5m|1h|24h|7d returns the totals, status_classes, latency, replicas, slow_routes, top_routes, error_spikes, samples and, when an SLO burn rule exists, slo. It needs read access to the app. Time series for the charts come from GET /api/v1/apps/{name}/requests.

CLI

With --watch --json each refresh is printed as one JSON line.

Abuse defense counters

The traffic report carries an abuse section when an app has an abuse defense: requests allowed, requests that log only mode would have blocked, requests enforce blocked (both by reason), and requests served unchecked because the defense failed. The Traffic tab shows them beside the policy.

Measured overhead

The ingress handler does one map lookup and a few counter increments per request under a short lock, and nothing is written to disk on the request path. Aggregates are drained once per tick into the node-local store. BenchmarkRequestStatsObservePath in internal/ingress measured about 410 ns and 4 allocations per request with 14 goroutines contending on one app, on an Apple M4 Max (one run, not a Linux VPS). Memory is bounded by the replica and route caps above. End to end proxy overhead under load has not been measured yet.

Limits

  • Replica figures need the request to pass through a reverse proxy upstream. Static sites and requests answered by the ingress itself have no replica.
  • Percentiles are histogram estimates. A p99 above 10 seconds reports the last bucket bound.
  • Spike detection reads per-bucket counters, so a spike shorter than a bucket is averaged out. Use a shorter window to see it.
  • The MCP server returns the same report through the get_app_traffic tool.
Last modified on October 30, 2026