Repository navigation
feat(estate)!: redesign the estate Dashboard as an operations overview - #330
Merged
Merged
Conversation
Design for a redesigned estate Dashboard: an attention-first panel grid, estate throughput and backlog over a chosen range from one bounded cached per-caller read, per-system facts from the digest, and the most severe health cause first. ADR-0242 (proposed) supersedes ADR-0238 decisions 1 and 4. Includes a static mockup rendered from the real tokens. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The cause shown for a Kafka or RabbitMQ cluster could be a degraded note when a critical one existed, because the checks appended notes in the order they ran. Notes are now ordered critical first, then degraded, then what could not be read, for Kafka, RabbitMQ and Artemis, so the first cause on the Clusters page and the Dashboard is the one that matters most. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… 1 minute buckets A metric chart now draws every bucket of its window, so a stretch with no samples at all shows as a break in the line instead of the line running straight across it. The 15 minute range asks for 1 minute buckets, the sample floor, so its reads are no longer reported as adjusted. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ters it is given Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…re formatters Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ns can offer the same windows Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Dashboard changes only the text of what is already on screen when it refreshes. A finding that appears is no longer animated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ers they do not report Kafka and RabbitMQ do not report messages added, acknowledged or expired (and Kafka does not report messages in flight), but Rahdar stored those as 0, so the throughput sparklines drew a flat zero line as if traffic were nil. A metric a system's drivers do not declare is no longer stored, and the chart for it says "Not reported" instead of drawing a false zero. Old zero rows age out with retention. BREAKING CHANGE: recreate the database when upgrading. The cluster kind table gains a metrics column, edited in the baseline changeset until the first stable release, so an existing database does not migrate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The retention, minimum-step and point-cap rule moves to MetricWindow so the estate's charts can use the same rule as a cluster's metrics. No behaviour change for the metrics API. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…panel
Needs attention opens with a verdict sentence ("3 clusters need attention: 1 critical, 1 unreachable, 1 warning"),
then one row per finding with its cause, environment and how long it has stood. A state this server only first saw
reads "Seen 12m", and one with no known start reads "Since unknown". Eight rows show, with "Show N more" that keeps
focus on its control. A finding that arrives is announced politely and marked New; nothing animates. Every Dashboard
panel gets one header: a keyboard-reachable "About" explanation, its age, how much of the whole it shows and a link to
the full view. The panel is not on the page yet.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
MetricSamples gains rateSeriesByCluster and gaugeTotalByCluster, which return each cluster's rate or gauge total per bucket for a list of clusters in one query (an empty list asks the database nothing). The one-cluster gauge total now delegates to the batched read, so both give the same figures. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GET /api/v1/alerts/firing/counts gains `since` on every entry: when the earliest open firing of that cluster (or of the installation) started. It is null when the caller may see only some of the firings, because the earliest could be one they may not see. The Dashboard uses it to say how long an alert has been firing. Also adds ClusterEnvironmentIndex.environmentNames, a one-query lookup of environment names by id. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd an estate history GET /api/v1/estate/overview now carries what the redesigned Dashboard needs: every cluster row lists its health causes most severe first (`healthNotes`, at most five, with the count left out), totals gain health counts, nodes, dead letters and firing alerts (the installation's own included), attention items say since when (an exact start for alerts and held operations, "first seen by this server" for health), and the environments of the listed clusters are named. The 200 clusters listed are the ones that most need attention, worst first, so a critical cluster is never cut for its name. New: GET /api/v1/estate/series?range=15m|1h|6h|24h|7d returns the estate's messages added, acknowledged and backlog per bucket with a previous-window baseline, the top five clusters, the rest summed, coverage, and every cluster left out with its cause (withheld, not reported, no samples, unreadable, beyond the 200 listed). One cached read serves every viewer of a range; an unknown range is a 400 `range-unknown`. BREAKING CHANGE: API clients of /api/v1/estate/overview must handle two changed shapes. `systems[].clusters[].inFlight` is now a Measure object (value, accuracy, reason) instead of a number or null, and is "unavailable: not reported" for a system that does not report messages in flight. `rate.state` has a new value, `NOT_REPORTED`, for a system that does not report messages added. The overview also gains new fields (`healthNotes`, `healthNotesTruncated`, `totals.health`, `totals.nodes`, `totals.deadLetters`, `totals.firingAlerts`, `environments`, `attention.items[].sinceKind`). The generated TypeScript and Java clients are regenerated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ashboard-redesign Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ange in step with the picker Adds the estate history read (one request per range, refreshed no faster than its bucket, the old chart kept while another range loads), the Dashboard search hook that writes only the keys it is given, and a figure formatter that reads a measure the system does not report as that fact. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… a lazy slot reserve its exact shape ChartPanel gains a bare mode that keeps the plot's loading, error and empty states at the one chart height but leaves the frame and title to the screen around it. A lazy slot can now name the fallback it shows while its code loads, so a screen that knows its layout holds the space instead of a generic block. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…asks first The Dashboard now reads top to bottom as the questions an on-call operator asks: what needs attention and since when, the estate in seven figures, throughput and backlog over the range you pick, the clusters by system, the deepest backlogs and the recent changes. - A refresh changes text and never animates, and the page holds its shape while it loads. - Throughput and backlog have a range picker held in the address (15m to 7d), a dashed line for the previous window, a shaded stretch where nobody sampled, and notes for what was left out and why. The comparison appears only when both windows are well sampled. - Clusters are grouped by system with the ones that need attention first, as cards with their cause, since when and every figure. A cluster whose figures are stale says so beside its health and never shows a bare OK. Kafka says it has no dead letters and does not report messages in flight or added, never 0. - Healthy clusters are quiet one-line tiles, folded into one line per system above 96 (`?healthy=show` or `hide`). Filters for system, environment and health narrow only this panel and say so; `?view=table` is the full table with the environment column. - Totals now include cluster health, nodes that answer, dead letters and firing alerts. Alerting that is off says Off, never a count. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…-cluster stub the new overview shape The Dashboard states the seed does not reach (healthy, mixed, 212 clusters, partial, history error, alerting off, Kafka only, filtered-empty, split by cluster, table view, 7 days) are captured on the real page with stated bodies. The unreachable Kafka cluster stub carries the causes and the in-flight measure the overview now has. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…rd-redesign Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The rule sends exploration to an explorer agent on Haiku, but none existed, so sessions fell back to a model override. Add it as a read-only agent with no shell, beside the other four, and point the rule at it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…y 30 seconds A cluster that was never contacted has no kinds in the database, and every metric check and every Dashboard digest asked the database again. The empty answer is now kept for 30 seconds, and replaced as soon as the cluster's kinds arrive, so the database is spared a query per read while such a cluster waits for its first contact. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…hows The Dashboard used to read the cache of every cluster you can see before keeping the 200 that most need attention, so an estate of several hundred clusters took many seconds to open cold. Clusters are now ranked from what is cheap to read (node reachability, the stored health level and the firing alert counts), the 200 that most need attention are kept, and only those are read in full, then ranked again with their staleness. A cluster past the cut still counts in the health and node totals, from the same cheap inputs, and in the backlog total as a named estimate. Reads run side by side up to half the database pool, and the cheap standings are kept for 15 seconds so the Dashboard and its charts share them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…chine with one script scripts/qa-shots.sh starts the isolated QA stack with the demo's brokers and traffic, runs the estate sweep at 1920, 1440, 1280 and a 1024 tablet width, takes the README and site screenshots, takes the Dashboard again with one Kafka broker stopped, packs everything and can copy the archive to another host. The README and site shots are all 1440x900 now, so every picture has the same shape; a shot of a lower part of a page scrolls to its heading instead of growing. They are written under web/.shots by default (--out to change it). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…RabbitMQ registration QA_NO_BUILD=1 makes just qa-up reuse the image an earlier run built, and scripts/qa-shots.sh sets it unless QA_REBUILD=1, so a second run does not build again. A run that fails now leaves the stack up and the next run carries on from it. The seed's RabbitMQ registration is tried up to six times, because the nodes may still be joining when the stack reports healthy, and Rahdar's answer is printed when it never succeeds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…d it The demo and QA seeds register their Artemis, Kafka and RabbitMQ clusters through one helper, register_cluster in scripts/lib/signin.sh. It replaces a previous registration of the same name, tries a refused registration again for two minutes (the brokers may still be starting, or the previous registration still being removed) and prints Rahdar's answer when it never succeeds, instead of a Python KeyError. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ironment Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ka, RabbitMQ and Artemis The rahdar.dev home now follows one made-up order down a scroll-driven road through the three brokers: a Kafka record and its lag as an estimate, a RabbitMQ disk alarm that blocks every publisher, an Artemis request that got no reply and the SQL console that finds it. The reader then presses and holds the product's real 1.5 s button to delete the backlog, sees the audit rows it wrote, and the page pulls back to the estate Dashboard. A reader who scrolls past the hold sees the order still waiting. What changes for a reader of the site: - The home is built from VitePress components (layout road) instead of one static file, so it shares fonts, tokens and the light and dark switch with the docs. - Motion is CSS scroll-driven animation with an IntersectionObserver fallback and a designed still page under prefers-reduced-motion. No library, no third-party origin. - Docs links and buttons use one teal that passes AA on white (#0b7285; the old #0c8599 was 4.35:1), and the docs dark scheme moves to the home's night palette. - The Chinese and Persian homes say the same new things. - The MCP guide says that a confirmed message_action delete or retry is held where the approval gate is on. The build now runs scripts/check-home.ts first: it fails on an internal link of the home that resolves to no page, a quickstart that differs from the README line for line, an origin outside the allowlist, or an em dash, en dash or middle dot in copy. The product captures on the home are placeholders (the existing 16:10 set) until the redesigned captures replace them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… built from VitePress components ADR-0243 supersedes the story of ADR-0217 and the single hand-written file of ADR-0121, and keeps ADR-0217's rules: no third-party origin, self-hosted fonts, a complete still page under reduced motion, and the 1.5 s hold in every tier. Both older records point to it and the index lists it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The README now opens with the pitch for Kafka, RabbitMQ and Artemis, one row of three links (Quickstart, Follow one message, Docs), the five badges that prove the project is alive and secure, and the Dashboard capture. The old "Play the story" badge, which described a story that no longer exists, is gone, and the Sonar badges moved to Contributing. What it does is a grid of captures that covers every system (Kafka lag and groups, offset reset, transactions, RabbitMQ and Artemis topology) and comes before Why. The Kafka registration capture moved into the Kafka section, the hardware requirements moved below Why, and Contributing links the Q&A discussions and the engineering blog. The stack line now says Spring Boot 4.2 and the bare container example uses the latest image. README.zh.md and README.fa.md follow the same order, links and images. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The three READMEs (English, Chinese, Persian) still opened Why with the 02:51 on-call story that the new home page replaced. Why now runs from the meaning of the name straight into what Rahdar does with every cluster in one estate. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…on table
The seven totals now sit in one row from a 1280px window and wrap four and
three only below it, with tiles sized to their content. A long caption keeps
its key words ("Estimate: see why", "Excludes 1 cluster") and the full
per-cluster detail is behind those words, a button a keyboard reaches and a
screen reader hears in full.
The Dashboard description is one line. The selected range reads clearly in
both colour schemes (selection tint inside an accent edge, contrast-tested).
In Needs attention a finding's cluster carries its system mark and links to
the cluster. The "largest contributors" switch moved into the header of a new
"Over time" section; its URL parameter is unchanged.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Renumbers the Dashboard, site home and blog ADRs to 0245, 0246 and 0247, after the dead-letter, log transfer and declared views ADRs that main took as 0242 to 0244. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…alias Docker Hub now has two channels. `sudoit1/rahdar:nightly` is main as it stood that night, rebuilt at 02:17 UTC when the application changed since the last nightly, for trying what the next release holds. A stable release is `:<YYYY.MM.N>` (immutable), `:<YYYY.MM>` (the month's newest) and `:latest`, and its GitHub Release is titled "Rahdar <version>". The operator compose files and `.env.example` now default to `:latest` instead of the moving build, and the build cache leaves the image's tag list for its own repository. BREAKING CHANGE: `:dev` and `:stable` are no longer updated. Replace `sudoit1/rahdar:dev` with `sudoit1/rahdar:nightly`, and `sudoit1/rahdar:stable` with `sudoit1/rahdar:latest` or, for an install that must not move, a version tag such as `sudoit1/rahdar:2026.12.1`. Verify the nightly with `--signer-workflow sudoitir/rahdar/.github/workflows/nightly.yml`. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A manual run from another branch would have pushed that branch as :nightly and into the shared build cache. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…it as a tag Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
minimatch 11.0.1 compiled long wildcard patterns in quadratic time and its escape() could match more than the literal input; ws 8.21 answered pings without bound and could exhaust memory. Both were build tooling of the web app and the plugin template, not code that ships in the image; npm audit now reports nothing for either. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…th the healthy clusters only The range converter parses 15m or 1h from the query and names no queue. The cap test asserted that its unreachable cluster was first of all, which other tests' clusters in the shared database can precede by name. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…e server sends The charts looked the series up as ENQUEUED, ACKNOWLEDGED and BACKLOG while the server names them openbroker.enqueued, openbroker.acknowledged and openbroker.backlog, so a real estate always showed "Nothing to plot in this window". The API now lists the three names as the metric's allowed values, and the web takes its names from that type. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…mes on one line A panel's caption now sits under its title and holds its line before the first read, and the charts' headline figure keeps its row, so nothing moves when the data arrives. The chart's hidden tooltip no longer reads Invalid Date. In the top lists a long subscription name is cut with an ellipsis, the cluster and figure keep their columns and a cause reads under the row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A broker outside the cluster, such as a shovel's remote end, was drawn at a full box's height while its frame had room for a compact one, so the box ran out of the dashed frame. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nd the guides The set shows the Dashboard on a full 15 minute window, the topology of Artemis and RabbitMQ, an offset reset and a transaction abort before they run, a Kafka dead-letter re-drive, a topic followed live, the flow graph, a query in the SQL Console and the broker configuration views. The registration shot is gone: its live check can only reach clusters the stack has registered. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… as int Sonar flagged a ternary that gave the same text either way and an int subtraction widened to long. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…edging The scheduled delivery job could deliver and remove the gap between the purge and the assertion, so the sum came back null on CI. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Piped into grep -q, docker compose got SIGPIPE once grep matched, and under pipefail the test came out false, so the QA and demo seeds sometimes took a three-node RabbitMQ stack for the dev stack's single node and registered http://rabbitmq:15672, which does not resolve there. The Kafka and schema registry checks had the same pipeline. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…t is off The Dashboard's "Show the largest contributors" switch was 20px tall, under the 24px target size, and when it was off it said "Only one cluster" on an estate of three: it now says only one cluster reports throughput. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…essages shot The SQL shot typed into the editor's example query, the follow shot showed an empty table once traffic stopped, the recommended-configuration shot repeated the first-run one and the config diff had nothing to show. The re-drive stub now names the page's cluster instead of reading as another cluster. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…he plan from shots.ts The SQL shot runs the guide's query, a wildcard with a pushdown predicate, so the guide can show it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… bends under them At 1600x1000 the road crossed "Apache ActiveMQ Artemis 2.33.0+" in the line under the hero; each item now sits on the page's ground above the road. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…README, site and Docker Hub One 16:10 set in light and dark, from a QA stack with traffic, feeds the README in three languages, the Docker Hub page, the site home and the guides: the Dashboard and its charts, clusters by system, offset reset, transaction abort, dead-letter re-drive, the SQL Console, both topologies, Flow and the messages browse. The registration and group-lag shots are dropped, the guides' PNGs are replaced, the README's site preview is recaptured from the new home, and every alt text describes its new picture. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The subscription links in Top backlogs and Stalled subscriptions sat on 21px lines, under the 24px target size; the rows now use 24px lines. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… shares Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



What this changes
The estate Dashboard is redesigned as an operations overview (OpenSpec change
estate-dashboard-redesign, ADR-0245):A new read,
GET /api/v1/estate/series?range=15m|1h|6h|24h|7d, serves the charts from stored samples:Other overview fixes:
15mrange steps at one minute.RabbitMQ: a refused connection check is logged with its cause chain, and "does not resolve" is reported only when a host name really did not resolve.
Images and releases (ADR-0248, breaking):
:nightly, rebuilt at 02:17 UTC bynightly.ymlwhen the application changed;:devand:stableare no longer updated;:YYYY.MM.N,:YYYY.MMand:latest, titled "Rahdar ";sudoit1/rahdar-cache.Site and docs:
Tooling:
scripts/qa-shots.shruns the isolated QA stack and the capture;readme-shots.tstakes 16:10 captures;register_clusterretries a refused registration.Breaking: the OpenAPI change to the estate payloads is marked
feat(estate)!, and the image tags are markedfeat(release)!. Each commit body carries its migration steps.Verification
OpenApiSnapshotTest,EstateOverviewServiceTest,EstateSeriesServiceTest,ClusterKindsTest,ClusterViewsTest.SchemaLintTestpasses on a freshly migrated Postgres after the merge withmain. The nightly workflow's scripts pass shellcheck, and the workflows parse as YAML.2ce496c5(totals row, range picker contrast, attention rows, the "Over time" section).Final round
scripts/qa-shots.sh): the shell and estate sweep (396 captures at 1920/1440/1280/1024, light and dark, axe, overflow, CLS) and the README set (13 shots × 2 schemes, plus the Dashboard with one Kafka broker stopped). Each shot was opened and judged. The charts draw real data; the stopped broker is named, never shown as zero.AuditStoreTest;🤖 Generated with Claude Code