Skip to main content

Metrics explained

This page defines the metrics you see in nanoStream Analytics, in the dashboards and in the Analytics API. Read the How to read the numbers section before you compare figures or report them: most "wrong" numbers come from timing, filters or units.

Server-side and player-side metrics​

KindMetricsNeeds
Server sideUsage (bytes), playback starts and start errors, concurrent viewers, playouts and ingests per country, ingest health, alertsNothing. Counted for every stream.
Player sidePlaytime, latency, startup time, buffering ratio, stop reasons, player error codes, browser and OSThe player must send metrics
WebcasterPublish counts, encoder bitrates, ingest timeWebcaster metrics enabled

Player metrics​

Player-side metrics only exist for players configured to send them. A player without metrics plays perfectly but leaves these metrics empty. Add a metrics block to the nanoStream Player config:

var config = {
source: { /* ... */ },
playback: { /* ... */ },
metrics: {
accountId: "YOUR-METRICS-ACCOUNT-ID",
accountKey: "YOUR-METRICS-ACCOUNT-KEY",
userId: "viewer1", // optional, per viewer: enables troubleshooting by user ID
eventId: "event1", // optional, per event: enables the Event filter
statsInterval: 10, // optional, statistics interval in seconds
customField1: "info" // optional
}
};

accountId and accountKey are a different credential from your dashboard login. They are not shown in any settings page: request them from nanocosmos support or sales if you don't have them yet. See Player configuration reference.

Player metrics start on the day the player was instrumented. Before comparing months, check the daily playtime for zero days: a jump can be nothing but instrumentation coverage.

Viewers and playback​

MetricDefinitionUnit
Concurrent viewersPlayers connected to your streams at the same time. Dashboards show the maximum per interval.count
Peak viewersThe highest concurrent viewer count in a period (Builder Hub Home: last 24 hours)count
Playback starts / playsAttempts to start playback, counted on the servercount
Playback start success ratioShare of playback starts that succeeded%
Playback start errorsFailed starts, by error code and message, per stream, country, tag or other breakdowncount
Player loading countPlayer initialisations: clients that attempt to play a stream, per countrycount
Views by browser / OSPlaybacks per browser or operating systemcount, %
note

A paused player keeps its connection and still counts as a viewer. Only a disconnect (destroy(), closing the tab, a dropped connection) ends a session.

Common start error: 2001 ("The requested stream can not be found") means players request a stream that isn't live, usually a page linking to an ended or renamed stream. Offer only streams that are live.

Viewer experience​

MetricDefinitionUnit
PlaytimeHow long viewers watch. Reported as total, average and median per playback.seconds (dashboards show hours)
LatencyDelay from ingest to playback at the viewer, as average and median. On H5Live it follows the player's buffer length.seconds
Startup timeTime from starting playback until the first frame is rendered, usually as medianseconds
Buffering ratio (play buffering ratio)Buffering time relative to playback time. 0 % means no buffering, 100 % means no playback was possible.%
Stop reasonsWhy playback paused or stopped, by reasoncount
Player error codesStatus and error codes during playbackcount
info

What the API calls stop reasons are the player's pause reasons, not stream-ending events. A frequent one is interactionrequired: the browser blocked autoplay with sound until the viewer interacts. Muted autoplay (playback.automute) fixes it. See Events & error codes.

Higher buffering ratios are expected in regions with many mobile and unstable connections.

Quality ratings in the Builder Hub​

Three Builder Hub panels rate the median of the range on screen:

PanelRatings
LatencySub-second latency (under 500 ms) · Ultra-low latency (up to 1 s) · Low latency (up to 2 s)
Startup timeInstant start (under 1 s) · Slow start (from 2 s) · Viewers give up here (from 4 s)
Buffering ratioSmooth playback (under 0.5 %) · Viewers see stalls (from 1 %) · Heavy buffering (from 3 %)

Latency depends on the player's latency mode: a player on the default mode sits higher than one on an adaptive mode. See Latency & latency control modes.

Usage​

MetricDefinitionUnit
Ingest bytesData sent to the platform by your encodersbytes (dashboards show GB)
Playout bytesData delivered to viewersbytes (dashboards show GB)
Usage by stream, referrer, IP, tokenTop lists of playout or ingest bytesbytes
Usage by countryTraffic per country on the world mapbytes
Usage by protocolPlayout traffic per method: H5Live, MOQ, HLS, RTMP, H5Live Token; ingest per method: RTMP, Webcasterbytes

Usage shows delivered volume, not invoice amounts. For what your package includes, see nanocosmos pricing.

Ingest health​

MetricDefinition
Video / audio bitrateBitrate of the ingested stream, in kbit/s. A drop or a swing of more than half the average points to network or encoder problems.
Stream time ratio (STR)Stream time relative to real time in a 15-second window. Ideal is a steady 1; small fluctuations are normal. Large deviations point to limited bandwidth or high CPU load, and raise latency for viewers.
Max frame delayHighest frame buffering delay measured at the ingest server, in ms. Rough reference: under 500 ms good, 500–1200 ms may indicate issues, above 1200 ms critical; aim for under 200 ms.
SRT metricsBitrate, round-trip time, lost and dropped packets per sample, for the last completed minute
Latest RTMP metricsThe newest values of one RTMP stream, from about the last minute
WebRTC ingestFrame rate, average frame encode time (long times mean high encoder load) and packet loss detections

The STR in the first 30 seconds of a stream often rises as the ingest settles. That is expected and doesn't raise an alert.

ABR​

MetricDefinition
Playtime per profilePlaytime per ABR rendition, named by video height (e.g. 480p)
Viewers per profileViewers per rendition (not concurrent)
ABR switchesQuality switches up and down, with success rate

AI Live Captions​

MetricDefinitionUnit
UptimeDuration of caption sessions, from start to end, per ASR engineseconds (dashboards show hours)
Source / target languageUptime per spoken or translated language. Each target language counts on its own.seconds
Uptime by streamCaption hours per streamseconds

How to read the numbers​

Timing​

  • Usage is booked when a session ends. Bytes and playtime are logged when a stream or playout stops or restarts, and attributed to that moment. A stream live for six hours shows nothing until it stops, then lands in one bucket. Sum a usage series over a range; never read a bucket as throughput. "Today so far" keeps rising afterwards.
  • The same applies to session aggregates such as playtime per country and buffering ratio. For a real-time "who is watching" check, use concurrent viewers or playouts per country, which count connections as they happen.
  • Concurrent viewers arrive about 3 minutes late, backdated. The last few minutes look empty and fill in later. A recent zero is "not yet", not a measurement.
  • All times are UTC. Convert local times first. Ranges are rounded to the minute.

Filters​

FilterCombines as
StreamsOR: any of the streams
CountriesOR
EventsOR
TagsAND: only streams with all the tags
  • No streams filter means all streams of your organisation.
  • The streams filter takes stream names (XXXXX-YYYYY). A stream group ID (UUID) is ignored, and you get organisation-wide data. Resolve the group to its stream names first.
  • Some routes ignore some filters. A filtered answer that looks too big may not be filtered.

Empty and approximate results​

  • An empty player metric can mean no viewers, or a player without metrics. Cross-check with server-side metrics such as ingest or playback starts.
  • Top lists are capped at 1,000 entries and approximate, more so over long ranges. Good for ranking; for exact figures, query explicit streams or a shorter range. A stream missing from a top list is not proof of no traffic.
  • The world map total is a few percent lower than the usage total, because traffic without a resolvable country isn't on the map. Quote totals from the usage series and shares from the map.
  • "Top country" depends on the measure: playouts (many short sessions), watch time (long sessions) and traffic rank countries differently. Name the measure next to a share.

Units​

The API returns base units: bytes and seconds. The dashboards convert them to GB and hours. Convert before you put an API figure next to a dashboard figure, and state the unit when you report a number.

tip

Try it in the Builder Hub: see these metrics on Analytics with sample data, or on your own streams with View analytics. See the Builder Hub guide. Start for Free

Next steps​