Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.tenbyte.io/llms.txt

Use this file to discover all available pages before exploring further.

The Analytics tab shows real-time and historical metrics for a distribution. Use it to validate cache tuning, monitor traffic, and catch error spikes early.

Metrics at a glance

MetricWhy it mattersPage
Traffic servedBandwidth out — drives bill and capacity planning.Traffic served
Requests servedVolume — sizes infra and tracks adoption.Requests served
Cache hit ratioEfficiency — high HIT% = low origin cost and latency.Cache hit ratio
Response classesHealth — non-2xx counts catch outages and bad deploys.Response classes

Healthy baselines

MetricGoodInvestigate
Cache hit ratio (static)≥ 95%< 90%
Cache hit ratio (mixed)≥ 80%< 70%
4xx rate< 1% of totalsustained > 2%
5xx rate< 0.1% of totalany sustained spike
Traffic week-over-weekwithin ±20%sudden 2× without launch
These are starting points; tune to your workload.

Pull metrics via API

curl -sS "https://api.tenbyte.io/cdn/distributions/$DISTRIBUTION_ID/analytics?from=2026-05-01T00:00:00Z&to=2026-05-09T00:00:00Z" \
  -H "Authorization: Bearer $TENBYTE_API_TOKEN" | jq
Common response fields:
{
  "bandwidth_bytes": 12834567890,
  "requests": 4501234,
  "cache_hit_ratio": 0.92,
  "responses": {"2xx": 4456012, "3xx": 12000, "4xx": 33000, "5xx": 222}
}
See the CDN API reference for the canonical endpoint and filters.

Wire into your stack

DestinationHow
GrafanaUse the Tenbyte API as a JSON datasource; chart bandwidth_bytes, requests, cache_hit_ratio.
DatadogCron a small lambda that pulls the API and pushes custom metrics.
Slack alertsConfigure webhook on response-class spike via the distribution settings.
SpreadsheetPipe daily totals to a CSV for finance / capacity reporting.

Operational tips

  • Compare deploys, not days. A weekday/weekend baseline beats raw deltas.
  • Alert on ratios, not absolutes. Traffic doubles, errors stay flat — that’s healthy growth, not an incident.
  • Drill in by path. Filter by URL prefix to find the noisy 4xx contributor before it becomes a 5xx.
  • Pair with origin metrics. Edge 5xx plus origin 5xx = origin issue; edge 5xx only = networking or config.