Skip to content

Monitoring and alerts ​

In the dashboard ​

  • Overview: live streams, viewers, ingest and egress with the last hour's charts, how much room is left before the bandwidth cap, and Needs attention: every open problem, most serious first.
  • Streams: every stream with its measured resolution, frame rate, bitrate trend, viewers and a health dot. Streams with a problem are always listed first. Expand a row to see who is reading it and whether anyone is falling behind.
  • A stream's page: a Health card with the measured frame rate, keyframe interval, audio/video drift, bitrate against its normal level and reconnects.
  • Sessions: every player watching a stream, now and in the past. See Viewer sessions below.
  • Events: what happened, newest first: streams starting, stopping and reconnecting, viewers joining and leaving, switches to a backup encoder, restream, recording and adaptive-bitrate changes, alerts. Kept for 30 days, across restarts; a line that repeats is shown once with a count.

The Overview page: live streams, viewers, bandwidth charts for the last hour, and Needs attention

Viewer sessions ​

Sessions in the sidebar (operators and above) lists every player watching a stream over HLS, DASH, RTMP or SRT: the stream, the protocol, the viewer's address, the player (for example "Chrome 129 · Windows", "VLC 3.0.23", "Apple player (iOS)"), when it started, how long it lasted, how much it was sent and its average rate.

Sessions: every player watching now, with its address, player, start time and traffic

  • Watching now: the sessions running at the moment.
  • History: finished sessions, newest, longest or biggest first. Download CSV saves every matching session as a spreadsheet.
  • By stream and By viewer: totals per stream or per viewer address for the last hour, day, week or month: sessions, how many are watching now, how many different addresses (or streams), watch time and traffic.

Filter any view by stream, protocol, address (the start of it: 10.1. shows a whole subnet), player and minimum length. Click an address or a stream name to see all of its sessions.

A browser tab is one session, even when the player switches quality. It counts once the player starts fetching video, not when a page is only opened, and ends 30 seconds after the player's last request. If Unda runs behind a reverse proxy, list the proxy under server.trusted_proxies so sessions show the viewers' own addresses rather than the proxy's, and have it send its secret (server.trusted_proxy_secret, see the install guide's HTTPS section) so nothing else on its machine can pass for a viewer.

Sessions are kept for 30 days (sessions.retention_days, up to 365) in the server database, and survive restarts. Viewer addresses are personal data in many countries: set sessions.disabled: true to keep no history (the Watching now view still works).

Viewer figures for each channel ​

Every stream page, and every 24/7 channel's page, has a Viewers tab: how many watched the channel today, yesterday, over the last 7 or 30 days, this month, last month or the last 12 months. A client sees it for their own channels only, so you can give a channel's owner a sign-in and let them follow their audience themselves.

A channel's Viewers tab over the last 30 days: most at once, viewers, views, watch time, average watch and data sent, and the most viewers at once each day

  • Watching now (today only), split by how they watch.
  • Most at once, and when.
  • Viewers: different devices that watched. A device is known by its internet address and its player, so phones sharing one mobile-network address with the same browser count once; the real number can be a little higher. Over more than eight days it is estimated, within about 3 %.
  • Views (times someone started watching), Watch time, Average watch and Data sent.
  • A chart of the most viewers at once: every 15 minutes for one day, every hour for up to eight days, every day beyond.
  • How they watched (HLS, low latency, RTMP, SRT…) and Devices (phones and tablets, computers, TVs, player apps), as shares of watch time.
  • Day by day for longer ranges, and Download CSV.

The figures are totals only: no viewer's address or player is shown. Days run midnight to midnight on the server's clock. Unda keeps a summary of each day for 13 months, long after the sessions themselves are deleted, and after an upgrade it fills in the days whose sessions are still kept (30 days by default). A server with sessions.disabled: true keeps no figures beyond the viewers watching now.

The figures in a website or app ​

Figures for your website or app, in the tab's Use these figures elsewhere card, makes a private link to the channel's figures as a JSON file. Give it to whoever shows them: a website, an app's admin page, a report. No sign-in or key is needed, any website may read it, and nobody can guess another channel's link.

json
{
  "channel": "news",
  "live": true,
  "watching_now": 132,
  "time_zone": "GMT",
  "utc_offset": "+00:00",
  "today":        { "views": 1840, "viewers": 1210, "most_at_once": 410, "most_at_once_at": "2026-10-29T20:15:03Z",
                    "watch_hours": 612.5, "average_watch_minutes": 20, "data_gb": 210.4 },
  "yesterday":    { … },
  "last_7_days":  { … },
  "last_30_days": { … },
  "this_month":   { … },
  "last_month":   { … },
  "figures_from": "2026-09-29",
  "updated_at": "2026-10-29T20:31:07Z"
}

Add ?from=2026-10-01&to=2026-10-31 to the link for that period's total and a days list (one entry a day, no_figures on days before figures began). Over more than eight days viewers_estimated is true (within about 3 %). The figures are worked out at most once a minute.

Anyone with the link can read the figures (nothing can be changed with it). If it reaches the wrong people, Make a new link: the old one stops working at once. Remove ends it. Deleting the channel, or giving it to another owner, ends it too, and it stops answering while its owner's account is disabled. A link may ask for up to 30 custom periods (?from=&to=) a minute; the usual periods are worked out at most once a minute and are not limited. Links and public counts are only for channels made on the Channels or 24/7 pages.

All channels' viewer figures, on the Channels page (admins only), makes one private link with every channel's figures in one file (channels: one entry each, as above). With ?from=&to= each channel gives its total for the period; its own link gives the days. It shows every client's figures, so keep it to yourself.

Live viewer count on your website, in the same card, lets anyone read how many watch the channel now from /api/v1/public/<channel>/viewers, for a "132 watching" on a public page. It updates every 5 seconds and shows nothing else:

json
{"stream":"news","live":true,"viewers":132,"peak_today":410,"at":"2026-10-29T19:20:05Z"}

Switched off, or for a channel that doesn't exist, it answers 404.

Alerts on the dashboard ​

Unda raises these by itself; each one clears by itself once the cause is gone.

AlertRaised when
Dropped framesa viewer, recording or restream destination could not keep up
No datanothing received from the encoder for 5 seconds
Bitrate lowthe stream fell under half its usual bitrate for 10 seconds
Keyframe intervalkeyframes further apart than 4 s (critical above 10 s)
Adaptive bitratea stream set to adaptive bitrate has none: it failed, or it can't be made (for example, a stream with no picture). Viewers still get the stream as sent
Reconnectsthe encoder reconnected 3 or more times in an hour
Near the bandwidth capegress above 80% of limits.max_egress_mbps
Diska disk Unda writes to (database, recordings, HLS segments, media) is 85% full or has under 5 GB free; critical at 95% or under 2 GB
Certificatethe HTTPS certificate is close to expiry and not being renewed
CPU highCPU above 85% for a minute (critical above 95%): streams may stutter
Memory lowthe machine has under 10% of its memory free, or under 500 MB (critical under 5% or 250 MB): the system may soon stop a program to free some (Linux)
Possible leakthe server's memory keeps growing with the same load
No sounda channel has been silent for 10 seconds (critical after a minute), or carries no sound track; see No sound
Sound sides cancela channel's left and right have cancelled each other for 30 seconds: phones and mono TVs hear almost nothing; see Sound that cancels on phones
One side of the sound silentone side of a channel's sound has been silent for 30 seconds while the other has sound; see One side of the sound silent
Picture frozena channel's picture has not moved for 20 seconds (critical a minute later); see Frozen or black picture
Picture blacka channel's picture has been black for 10 seconds (critical a minute later)
Internal errora fault inside Unda was caught: only that job (one channel, one restream) stopped and started again. Shown for an hour; please send the server log to support

Clearing an alert ​

When you have seen an alert and there is nothing more to do for now (a guest on a weak connection, a channel you know is silent for a while), clear it: the ✓ button on its Multiview tile, Clear in the Multiview list or details, or Clear under it in Needs attention on the Overview.

It is cleared for everyone. The tile goes back to its normal colours with a small grey 1 cleared mark, the alert leaves the count beside Overview in the menu, and Needs attention shows it faded, with who cleared it and when. Point at the mark to read the alert, or choose Show again from it.

A cleared alert comes back by itself when it gets worse (a warning turning critical) or when it ends and happens again. A restart of the server starts the alerts afresh, so anything still wrong is raised again. Operators and above can clear alerts; a client sees that the server's staff cleared their channel's alert. Clearing doesn't change the messages sent to Slack, Discord or your own system.

No sound ​

Unda listens to every live channel all the time: the sound viewers get, not a channel's separate inputs. A channel is silent when its loudest moments stay below -60 dBFS on both left and right (true silence reads about -91; quiet speech and room noise are well above -60). After 10 seconds of silence it raises No sound, which turns critical after a minute and clears as soon as there is sound again. The Multiview shows each channel's level as it happens.

Multiview with sound meters: the field camera has been silent for over five minutes and is marked No sound

yaml
monitoring:
  silence_alarm_seconds: 10      # 3 to 3600
  # disable_audio_levels: true   # no sound meters and no alarm

It needs FFmpeg on the server (as the Multiview pictures do). Each channel costs a small sound decoder: about 0.5% of a CPU core and 15 MB of memory.

Sound that cancels on phones ​

Sometimes a channel's sound plays on headphones but is almost silent, or thin and far away, on phones, many TVs and set-top boxes. The usual cause is one side of the stereo sound arriving upside down (out of phase), often a cable wired the wrong way round at the source. Stereo playback still sounds nearly normal, but a device that plays in mono adds the two sides together, and they cancel.

Unda compares the two sides of every live channel's sound over the last 10 seconds and shows the result on the channel's Sound & picture tab, in the Sound fix card: +1 means both sides are the same, around 0 is normal stereo, and −1 means one side is the other upside down. When the sides cancel for 30 seconds, Unda raises Sound sides cancel.

The real fix is at the source: the phase button (Ø) on one side of the mixer's input, or the cable. Until that is done, choose in the same card:

  • Flip one side: Unda turns the right side back the right way up for everything that leaves the server (HLS, RTMP, SRT, recordings, restreams, TV outputs). Choose Off once the source is fixed: the alarm says so if the sound cancels again with the flip on.
  • Automatic: Unda flips only while the two sides cancel, starting about 5 seconds after it hears them cancel, and stops by itself about 8 seconds after the source is fixed. Use it when you don't know when the source will be fixed. Each change is written to Events.

The picture is not touched, and the channel reaches viewers about a tenth of a second later while the sound is flipped. A channel's owner can change it for their own channels. It needs FFmpeg on the server; each flipped channel runs one sound encoder (about a tenth of a CPU core and 20 MB of memory), and channels that aren't flipped cost nothing.

One side of the sound silent ​

When one side of the stereo sound arrives empty (a cable, or a setting at the source), stereo listeners hear only one speaker and mono devices hear the sound quieter. The One side silent card on the Sound & picture tab shows each side, and Unda raises One side of the sound silent after 30 seconds. Choose:

  • Use left on both or Use right on both: that side goes out on both sides.
  • Automatic: Unda puts the side with sound on both about 5 seconds after the other goes silent, and stops by itself about 8 seconds after the source has both sides again. Each change is written to Events.

It uses the same sound encoder as the sound fix (one per channel, even with both on). When a side is copied, the flip is not used: a flipped copy would cancel.

Lip sync ​

When a channel's sound arrives ahead of or behind its picture (a radio desk's sound beside studio cameras, a sound processor or a delay unit on the sound's path), set Sound delay in the Lip sync card on the Sound & picture tab, in milliseconds: positive sends the sound later (use it when you hear words before the lips move), negative earlier (the lips move before you hear the words), up to 10 seconds either way.

Nothing is encoded again: only the sound's timing changes, for every output. With a negative delay the picture waits, so the channel is that much later. Changing it restarts HLS viewers' playback for a moment. To measure how far off a feed is, film a clap, or send a test signal with a flash and a beep.

Frozen or black picture ​

Unda also watches every live channel's picture. Every few seconds it compares the newest keyframe with the one before. When the picture stops moving (a camera or capture card that froze, a stuck player while the sound goes on) it raises Picture frozen after 20 seconds; a black picture raises Picture black after 10 seconds. Both turn critical a minute later, show red in the Multiview, and clear as soon as the picture moves again.

A channel whose picture stands still on purpose, such as a radio station showing its logo or a channel of slides, can switch the frozen-picture alarm off: on the channel's Sound & picture tab, turn on A still picture is normal. Black still raises its alarm. A channel showing its slate (backup sources) or its filler between programmes (24/7 channels) raises neither: the backup and playout alerts already say so. The stream page's Overview shows the picture as Moving, Not moving or Black.

yaml
monitoring:
  frozen_alarm_seconds: 20       # 5 to 3600
  black_alarm_seconds: 10        # 3 to 3600
  # disable_picture_check: true  # no picture alarms

It needs FFmpeg on the server. Each channel costs one small decoder that reads one keyframe every few seconds.

History and channel reports ​

Server → History draws the server's figures over the last 24 hours, 7 days, 30 days or 13 months: viewers, what it sends and receives, streams on air, CPU and memory. Each point is a period's average, and the peak shown is the highest moment. Unda keeps a figure every minute for 2 days, every 15 minutes for a month and every hour for 13 months, in its database (so the daily backups carry them). A year of figures for a server with 30 channels takes about 45 MB.

Below the charts, the Channel report gives each channel's record for the last 7 or 30 days, this month or last month: how long it was on air, its interruptions (the encoder's connection dropped and came back within 5 minutes, with the time lost and the longest), its stops (away longer, or stopped on purpose), its average bitrate and its most viewers at once. Download CSV gives the same as a file. A graceful restart of the server is not counted against any channel. Clients see their own channels' on-air time and interruptions on each channel's Viewers tab.

Logs ​

When something doesn't work and the dashboard's message isn't enough, the server's own log lines say what happened, second by second. You can download them from the dashboard, without signing in to the server:

  • One channel: the Logs button on the channel's page.
  • The whole server, or any channel: Server → Status → Logs.

Pick the period (the last minute up to the last 24 hours) and, if you like, text the lines must contain, such as a port or an address. You get a text file with one line per event, its time on the server's clock first.

A channel's file holds the lines about the channel itself, its inputs (main and backup encoders, pull, playlist), the MPTS bundles that carry it, and anything about an address it sends to, such as an analysis of one of its destinations. Lines about other channels are left out, even when they send to the same platform.

The server keeps the last 24 hours of lines in memory. After a restart the file starts from the restart; older lines are still in the system's own log (journalctl -u unda, or docker compose logs unda in Docker). Operators, admins and owners can download logs; each download is noted in the audit log.

Messages to Slack, Discord or your own system ​

Unda can post to webhooks when a stream drops, comes back, or its bitrate falls below a threshold:

yaml
alerts:
  min_input_kbps: 1500          # alert under this bitrate; 0 = no bitrate alerts
  bitrate_grace_seconds: 20     # it must stay low this long
  cooldown_seconds: 60          # the same alert for the same stream at most once a minute
  webhooks:
    - name: ops
      url_env: UNDA_ALERT_OPS_URL   # the webhook URL, kept out of this file

Put UNDA_ALERT_OPS_URL=https://hooks.slack.com/… in /etc/unda/unda.env. Each alert is a JSON POST with event (stream_down, stream_up, bitrate_low, bitrate_recovered), stream, time and a readable text.

stream_down means the encoder's connection ended; Unda cannot tell a network failure from someone pressing Stop. Stopping a stream from the dashboard and restarting the server never alert.

Prometheus and Grafana ​

/metrics serves Prometheus metrics to an operator API key:

yaml
# prometheus.yml
scrape_configs:
  - job_name: unda
    scheme: https
    authorization:
      credentials_file: /etc/prometheus/unda_token   # an operator API key (gsk_…)
    static_configs:
      - targets: ['tv.example.com']

Main metrics: unda_streams_active, unda_stream_viewers{stream,protocol}, unda_stream_input_bitrate_bps{stream}, unda_egress_bitrate_bps, unda_dropped_frames_total, unda_restream_target_up{stream,target}, unda_ffmpeg_restarts_total, plus memory and CPU (process_*, go_*). TR 101 290 errors by check: unda_udp_input_tr101290_errors_total{input,check}, unda_srt_publisher_tr101290_errors_total{stream,check}, unda_restream_tr101290_errors_total{stream,target,check} (MPEG-TS destinations and TV outputs) and the bundles' unda_mpts_*tr101290* series.

Health check ​

GET /api/v1/health answers {"status":"ok"} without signing in, for uptime monitors and load balancers.