Ops monitoring dashboard
An operations page from plain data: uptime per service, latency percentiles against a limit, the error rate, requests per second as they arrive, open incidents and capacity. Feed it from your metrics store and drop it into an admin area; for a business overview pick the overview dashboard instead.
Install
npx shadcn@latest add @thrum-pro/ops-monitoring-dashboardThis is a Pro component. The command works once your project has a licence key: set up Pro or see pricing.
Data shape
type OpsMonitoringData = {
uptime?: readonly { name: string; blocks: readonly { label: string; status: "ok" | "warn" | "alarm" | null; detail?: string }[] }[];
latency?: { labels: readonly string[]; p50: readonly (number | null)[]; p95: readonly (number | null)[]; p99: readonly (number | null)[]; limit?: number; format?: Intl.NumberFormatOptions };
errors?: { data: readonly { label: string; value: number | null }[]; format?: Intl.NumberFormatOptions }; // fractions: 0.012 is 1.2%
requests?: { data: readonly { time: number; value: number | null }[]; window?: number; threshold?: number; format?: Intl.NumberFormatOptions };
incidents?: readonly { id: string; title: string; service?: string; severity: "critical" | "major" | "minor"; status: "investigating" | "identified" | "monitoring" | "resolved"; time: string; dateTime?: string }[];
capacity?: readonly { name: string; used: number; limit: number; format?: Intl.NumberFormatOptions; warnAt?: number; alarmAt?: number }[];
};{
uptime: [{ name: "API", blocks: [{ label: "09:00", status: "ok" }, { label: "10:00", status: "warn", detail: "12 min degraded" }] }],
latency: { labels: ["09:00", "10:00"], p50: [118, 124], p95: [260, 281], p99: [402, 455], limit: 500 },
incidents: [{ id: "inc_88", title: "Elevated 5xx on checkout", severity: "major", status: "monitoring", time: "12 min ago" }],
capacity: [{ name: "CPU", used: 64, limit: 100, format: { style: "unit", unit: "percent" } }],
}Props
| Prop | Type | Default | Description |
|---|---|---|---|
title | string | Required | The heading of the dashboard. It also names the dashboard's region for screen readers. |
data | OpsMonitoringData | Required | The data for the chosen range, one key per section. A section whose key is left out is not drawn, and the grid closes up. |
loading | boolean | Default false | Draw every section as a skeleton and mark the dashboard busy while the data loads. |
periods | readonly { value: string; label: string }[] | Default 24 hours, 7 days, 30 days | Time ranges offered in the header. Pass fewer than two to hide the control. |
period | string | – | The selected range, when the parent holds it. Use it with onPeriodChange. |
defaultPeriod | string | – | The range selected at first, when the control holds it itself. Defaults to the first range. |
onPeriodChange | (period: string) => void | – | Called with the new range. Answer it by passing the data for that range; the dashboard does not fetch or filter anything itself. |
actions | ReactNode | – | Buttons at the end of the header row, after the time range. |
titles | Partial<Record<keyof OpsMonitoringData, string>> | – | Section headings to use in place of the English defaults: Uptime, Latency, Error rate, Requests per second, Incidents, Capacity. |
headingLevel | 1 | 2 | 3 | 4 | 5 | Default 2 | The level of the dashboard's heading. Section headings are one level below it. |
paused | boolean | Default false | Freeze the requests chart and the loading shimmer where they are. The requests chart then says Paused and steps to new samples at once. |
locale | string | Default "en-US" | Locale for every number on the dashboard. |
sound | boolean | Default true | Let the parts make their sounds, if the visitor has sound on. Set it to false to silence the whole dashboard. |
className | string | – | Sets the size. The layout follows the width of the dashboard itself, so it also works in a narrow column. |
Motion and sound
Motion
- First draw, every time the dashboard mounts: the uptime blocks rise one after another, the latency lines and the error area are drawn left to right, the capacity bars fill, the requests line is drawn in and the incidents fade in one by one. All of it ends within about one second.
- New data: every chart moves from its old values to the new ones in about 400 ms with no overshoot.
- Each new request sample slides the requests line one step to the left at constant speed. Nothing moves between samples, and nothing loops.
- The layout itself never animates. Panels keep their size while their contents change.
- Reduced motion: everything appears complete and changes instantly. The demo's sample timer does not run.
Sound
- The dashboard has no sounds of its own; its parts play theirs.
- A soft click when the time range changes, a tick as a chart cursor moves from point to point, and a two-tone signal when requests or a capacity bar climb over their limit.
- Nothing plays when the dashboard first appears.
Sound is off until the visitor turns it on. Pass sound={false} to keep this component silent. How sound works
Accessibility
- The dashboard is a region named by its title. Each panel is a section with its own heading, one level below the title, so a screen reader can jump from panel to panel.
- Every chart keeps its own hidden data table and its own spoken cursor. The capacity bars are meters that say their state in words (Near limit, At limit), and incidents name their severity and status in text, never by colour alone.
- The layout is one column when the dashboard is narrow, two from 42rem and three from 64rem, measured on the dashboard itself. The reading order is the same in all three.
- Each panel is a panel surface: under frosted glass it turns translucent, and nothing inside it paints a solid fill over the glass.
- The words “Time range” on the control are English and fixed in this version; change them in the file.
| Keys | Action |
|---|---|
| Tab | Move through the time range, the actions, each uptime tracker, the latency legend and chart, the requests chart and the error chart, in reading order. |
| ← → | On the time range: pick the next range. On a chart or tracker: move the cursor one point. |
| Home / End | On the time range or a chart: jump to the first or last. |
| Esc | On a chart: hide the cursor. |
Source
The source comes with Pro
TypeScript source · Copy-paste ready · MIT-compatible for client projects · Includes all dependencies
Files and dependencies
- Adds
components/ops-monitoring-dashboard.tsx- Packages
- None
- Brings along
- Dashboard foundationsStatus trackerLine chartArea chartLive chartTimelineStatus dotBadgeUsage meterSegmented controlSkeletonChart foundationsMotion tokens
Changelog
- 1.0.0 · 2026-12-03First release.