Admin UI

Admin UI

A read-only browser dashboard for a cluster's nodes, streams, buckets, queues, cleanup, and records.

Every node can serve a read-only dashboard for the whole cluster at /admin/ on its metrics listener. It shows the nodes and their load, streams and their leaders, buckets, queues, credentials, and pending cleanup, and it can read records. Any node shows the same cluster. In the Compose stack it is at http://localhost:9191/admin/.

The dashboard reads through a JSON bridge you can call yourself. Here, a queue with three messages, one of them claimed:

curl -s localhost:9191/admin/api/GetQueueStats -d '{"bucket":"apps","key":"emails"}'
{
  "oldestMessageUnixMs": "1795375012254",
  "backlog": "3",
  "oldestClaimUnixMs": "1795375024552",
  "claims": 1,
  "dealingSeats": 1
}

Turn it on

The dashboard is on by default but needs --metrics-listen; without a metrics listener there is no dashboard.

--admin-uiNOVAD_ADMIN_UIDefaulttrue
Serve the dashboard and its JSON bridge at /admin/ on the metrics listener.
--admin-ui-readerNOVAD_ADMIN_UI_READERDefaulttrue
Let the dashboard read record bodies; off keeps the metadata views and leaves record reads to authenticated gRPC.
--metrics-listenNOVAD_METRICS_LISTENDefaultdisabled
The listener the dashboard, /metrics, and profiling share.

The metrics listener has no authentication

Anyone who reaches it sees every stream's metadata and, with the reader on, its records. Keep it on a private network. Make changes with nova over the authenticated admin service instead.

Pages

PageShows
OverviewEach node's liveness and load, cluster totals, and the auditor's health
StreamsEach stream's address (nova://bucket/key), ID, class, producer policy, and leader, with a bucket filter
Stream detailThe descriptor, its reference rows, the trim watermark, its pending cleanup jobs, the leader's live figures, and the record reader
BucketsEach bucket's address, create-on-append settings, defaults for new streams, and pending deletions
QueuesOne bucket's queues, 25 a page: kind, claims mode, ranges, isolated ranges, backlog age, oldest claim, due lag, and dead letters
AuditsSeven of the auditor's queues: each one's depth, its oldest ready age where its jobs carry one, and a short look at its entries
CredentialsEach API key's name, key ID, state, grants, and creation time; never the key or its hash

The Streams page labels a stream Idle when no node holds its writer lease. Elsewhere these docs call that a vacant stream; there, idle means a stream whose last producer closed while its idle timer runs.

A figure shown as N+, or with ≥, is a lower bound: the count stopped at its cap, the queue has more than 64 ranges, or a node did not answer.

Queue figures

The Queues page and GetQueueStats compute each figure on request and store nothing. Each request makes a bounded number of point reads and asks each node that delivers the queue once.

FieldMeaning
backlogUnsettled messages, counted from each range's saved progress to its end
partialThe queue has more than 64 ranges, and backlog covers the 64 read
oldestMessageUnixMsWhen the oldest unsettled message was first sent
oldestClaimUnixMs, claimsThe oldest claim a worker holds, and how many are out
oldestDueUnixMsWhen the earliest pending retry or delay is ready; in the past, it is the due lag
deadLettersDead letters the queue holds
dealingSeats, parkedSeatsRanges with a seat delivering them, and ranges a node delivers with no seat open right now
unreachedNodes delivering the queue that did not answer; the other figures leave them out

Ages are as fresh as the last progress save, at most 250 ms old. When no range of the queue is being read, the backlog age comes from one stored message in each of up to 16 ranges, fullest first. A queue nobody consumes has no seat, so this page is the only place its backlog age shows.

The record reader

The Stream detail page has a record reader. It makes no request until you click Start.

  • Start from a sequence number, a timestamp, or the tail. From the tail, it shows about 50 recent records and then follows new ones. The URL keeps the start, so a refresh or a shared link resumes there.
  • A stream without a leader serves its stored records without taking a lease. Another node's recent records come through one proxy hop. When a stream's newest records still need ledger recovery, the read runs it and retries until it finishes.
  • The browser calls ReadStreamRecords about once a second while following, and back to back while catching up. Scrolling up pauses it; leaving the page stops it. The server keeps no reader state.
  • A page holds at most 500 records or 1 MiB, and a browser tab at most 1,000 records or 16 MiB, dropping the oldest. Bodies over 4 KiB collapse. You can view a body as text, formatted JSON, or hex.

Where the figures come from

  • Stream metadata, reference rows, watermarks, and cleanup jobs come from the metadata store, so any node can show them.
  • Node figures come from each node's stats record, a small fixed-size record it refreshes while its session lives: leaders, append and read rates, saturation, drain state, utilization and its resource, metadata p99, and version. The overview marks a missing, stale, or partial record.
  • A stream's live figures come from its leader, through at most one hop. If the leader does not answer, the stored metadata still shows.

The overview refreshes about every 2 seconds and detail pages every 5. Lists page through results and every scan has a limit.

Cleanup views

Three views show the auditor's work, all through read-only admin queries:

  • The Audits page calls ListAuditQueues for the age and depth of retention, reap, gc, denorm, teardown, teardown-final, and orphan, with each depth counted up to 1,000. It calls PeekAuditQueue for up to 50 of a queue's entries: key, time, subject, and the streams it concerns. The recovery, trimcheck, star-reclaim, and range queues are not listed; read their age from nova_auditor_due_age_seconds (see Auditor delays).
  • A stream's detail page calls GetStreamDetail, which lists the stream's pending jobs from the by-stream index: job type, due key for matching log lines, ready time, and object.
  • The Overview page shows the auditor's health beside the node table.

They show pending work only. A finished job disappears, and the dashboard keeps no history.

Bounds

What could growIts bound
Node statsA fixed-size record per node, never per-stream maps
The overviewOne prefix scan over the nodes
Stream lists, queue peeks, pending jobsA limit and a cursor
Queue depthCounted to a cap, shown as N+
Live figuresOne call to one leader, on demand
The reader500 records or 1 MiB a page; 1,000 records or 16 MiB a tab

If it goes wrong

SymptomLikely causeWhat to do
Nothing answers at /admin/The node runs without --metrics-listen, or with --admin-ui=falseSet --metrics-listen; the dashboard is on by default
The record reader fails, and the bridge answers 404: ReadStreamRecords is not mirrored on the admin bridgeThe node runs with --admin-ui-reader=falseExpected; read records with nova read, which goes through authentication
The overview marks a node's stats missing or staleThe node stopped, or its metadata session endedCheck the node with nova health
A queue's figures leave out a node, listed in unreachedA node delivering the queue did not answerCheck that node; the other figures are still right for the nodes that answered

See also

On this page