Metrics
Nyquist serves Prometheus metrics at /metrics. It needs a user like the API does, a viewer is all it takes. Viewers and analytics shows a scrape config.
Bitrates are in bits per second and bytes are plain counts.
For every stream
Section titled “For every stream”Each of these has a stream label with the stream’s name.
| Metric | Type | What it counts |
|---|---|---|
nyquist_stream_live |
gauge | 1 while someone is publishing to the stream, 0 otherwise. |
nyquist_stream_received_bytes_total |
counter | Media bytes received from publishers. |
nyquist_stream_received_frames_total |
counter | Media frames received from publishers. |
nyquist_stream_publishes_total |
counter | How many times someone started publishing. |
nyquist_stream_viewers |
gauge | Playback sessions watching the stream right now. Has a protocol label too, hls, dash or mpegts. |
nyquist_stream_mpegts_viewers |
gauge | Viewers watching the MPEG-TS output right now. |
nyquist_stream_sent_bytes_total |
counter | Playback bytes sent to viewers over every protocol. |
nyquist_stream_input_bitrate |
gauge | Bits per second coming in from the publisher. |
nyquist_stream_output_bitrate |
gauge | Bits per second going out to viewers, measured over the [history] interval. |
For the whole server
Section titled “For the whole server”| Metric | Type | What it counts |
|---|---|---|
nyquist_build_info |
gauge | Always 1, with the running version in its version label. |
nyquist_streams |
gauge | Streams the server knows about. |
nyquist_viewers |
gauge | Playback sessions right now across every stream and protocol. |
nyquist_input_bitrate |
gauge | Bits per second coming in from every publisher. |
nyquist_output_bitrate |
gauge | Bits per second going out to every viewer, measured over the [history] interval. |
nyquist_untracked_sessions_total |
counter | Playback sessions left uncounted because max_sessions was reached. |