Skip to content

Dashboard overview

cheshmhayash serve runs a React panel and the JSON API behind it. Pick a cluster at the top, then a tab. The tab is kept in the URL hash, so #health links straight to the Health tab and survives a reload.

Tab What it shows Demo
Servers Every server of the cluster, with traffic totals and the raw monitoring endpoints. open
Accounts Account-scoped endpoints for one account. open
JetStream Accounts, streams and consumers of the whole cluster, updated live. open
Health What misbehaves, most severe first. open
Topology Raft groups across the servers: who leads, who follows, who is behind. open
Tap Live, decoded messages of a subject. Off by default. open

The server keeps one JetStream overview per cluster in a cache. It asks every server for its JSZ report ($SYS.REQ.SERVER.PING.JSZ) every 10 seconds, and pushes each new snapshot to the browser over Server-Sent Events. A small pill shows the state: live, polling (the SSE stream failed and the panel polls), connecting or disconnected.

Change the period with serve --overview-period or CHESHMHAYASH_OVERVIEW_PERIOD. The Health tab reads the same cache, so it adds no NATS traffic.

With authentication off, everyone has full access. With it on, each signed-in user is either:

  • admin: read and write. The user matches the [auth.access.admin] allowlist, or that list is empty.
  • readonly: read only. The panel hides every button that changes something, and the API refuses every POST, PUT, PATCH and DELETE under /api/ with 403.

Destructive calls also need ?confirm=true. Without it the API answers 428 Precondition Required. The panel asks you to confirm and then adds it.