Dashboards have one job: surface the right signal at the right time to the right audience. They fail in two ways. They show too little (the team has to dig through subpages for routine answers) or too much (the team learns to ignore the dashboard because every chart is the same color and importance). The middle ground is hard.
ZopNight ships four dashboard presets out of the box: Executive, Engineering, FinOps, All Widgets. Each is composed from the same registry of 10 widget types but tuned for a different audience. Executives see budget health and trend at a glance. Engineers see schedule execution and upcoming actions. FinOps sees cost breakdowns and recommendations. The presets are not the whole story, they are the starting point.
This article covers the design choices behind the dashboard system: the slot-based 6-column grid, per-widget RBAC, the org-shared default pointer, and the explicit non-goals (per-user dashboards, free-form grid with resize handles). The goal is not feature parity with Grafana. The goal is fast time-to-signal for the audiences ZopNight serves.
This guide keeps the theory short and spends most of its length on what you can actually do. Every recommendation here is one ZopNight can help you execute, starting from a read-only connection.
The widget registry
10 widget types ship in v1: stat_cards, cost_trend, cloud_spend, top_costly, recommendations, quick_insights, budget_health, showback, schedule_execution, upcoming_actions. Each entry declares defaultSize, allowedSizes, an optional singleton flag (blocks duplicate adds), and a requiredPolicy for frontend gating. All widgets re-use existing components from features/dashboard, features/budgets, and features/showback. Slots map to a 6-column Tailwind grid: full=6, half=3, third=2.
Presets and the org default
Four system presets served from memory (not stored in the dashboards table): Executive, Engineering, FinOps, All Widgets. Stable IDs: executive, engineering, finops, all_widgets. Returned with IsSystem=true and a category label. PUT/PATCH/DELETE on a preset id returns 405. Admins clone-to-customise via POST /dashboards. The org-wide default lives in org_settings under default_dashboard. Absent or empty falls back to all_widgets.
RBAC and tenant cascade
Four policies: dashboard:view, dashboard:create, dashboard:update, dashboard:delete. Viewer gets view only. Editor and Admin get all four. Per-widget gating uses requiredPolicy via usePermission(). Tenant cascade calls dashboard.Store.DeleteByOrgID so deleting an org soft-deletes every dashboard it owns; org_settings is wiped wholesale so the default_dashboard pointer goes with it.
What is explicitly out of scope
Per-user dashboards and per-user default pointer (everything is org-shared). Free-form grid with resize handles. Grafana-style template variables, ad-hoc custom queries, public share links, JSON import/export, dashboard versioning/history, cross-dashboard drill-through. A dashboard-data BFF endpoint (widget data keeps coming from each widget native backend). The non-goals are deliberate: a tighter feature set ships faster and stays maintainable.
Key takeaways
- 10 widget types and 4 presets cover most operational audiences without per-user customization.
- Slot-based 6-column grid is simple, predictable, and fast to render.
- Per-widget RBAC and per-slot WidgetErrorBoundary mean a denied or throwing widget falls back gracefully.
- Org-shared dashboards are deliberate, per-user dashboards are out of scope to keep the system maintainable.
Where ZopNight fits
ZopNight turns this from reading into doing. It ships 490 built-in audit rules across AWS (216), GCP (127), and Azure (147), 124 of those recommendations are wired to act end to end, 28 one-click and 96 guided, and it starts read-only so you can see the opportunity before you act on any of it. The most direct place to begin is scheduling non-production resources to your working hours, which is covered in the FinOps guide and shown concretely for AWS EC2.
How ZopNight schedules non-production resources
The loop that does this is deliberately mechanical, and it starts read-only. You connect your cloud provider with a read-only role, and ZopNight discovers every non-production resources across your regions and accounts. It records a per-action permission verdict for each one, so you can see where it can list a resource but not yet stop it, and you review that inventory, filter it by status or type, and search for the specific resources you care about before anything is scheduled.
Scheduling itself is a cron you write once in plain terms, stop at 7 PM, start at 8 AM on weekdays, pinned to your timezone so the jobs fire at local business hours rather than UTC. A weekly 24-hour grid shows the schedule visually so you catch gaps and overlaps before you save, and an estimate of active versus inactive hours appears before you commit. Resources attach individually or bundle into groups like “dev-cluster” or “staging-db” so a whole environment follows one cadence.
Actions run in dependency order, so a database comes up before the app server that depends on it. When something needs to stay up, an override forces a non-production resources ON or OFF for a defined window, carries a reason so teammates understand why it exists, and expires automatically so nothing is left running by accident. If a start or stop fails, ZopNight retries up to three times and falls back to a dead-letter queue rather than silently dropping the action, and every state change lands in an audit trail that records whether a schedule, an override, or a specific user triggered it.
Beyond the schedule: recommendations, rightsizing, and showback
Scheduling is the fastest lever, but it is one of several. ZopNight ships 490 built-in audit rules across AWS (216), GCP (127), and Azure (147) that flag idle, oversized, and orphaned resources, and each recommendation shows the current monthly cost next to the estimated optimized cost so you act on the largest first. 124 of those recommendations are wired to act end to end, 28 one-click and 96 guided: one-click actions run immediately behind an admin-approval gate, and guided actions add a type-to-confirm review so you check the change before it lands. You mark a recommendation applied once you act, or dismiss the ones that do not fit.
Idle detection reads CPU, network, and connection metrics over a rolling window to separate a genuinely idle resource from one with real but intermittent traffic. Rightsizing is guided and computed from measured utilization over a real window, never a flat 24/7 assumption, so the projected figure matches the bill you actually see. For steady-state fleets, VM autoscaling runs in one of three modes derived from the credential’s permissions: monitor, recommend, or autopilot.
What is left after optimization gets attributed rather than hidden. Showback splits shared cost across owning teams and rolls up by cloud tag, GCP label, or Azure tag, with a Sankey cost-flow view that traces spend across provider, account, type, and team and a savings overlay that points straight at the reclaimable flows. A daily anomaly job writes root-cause markers onto the cost trend, an instance resize, a new resource, a reservation expiry, a failed schedule, so a spike explains itself instead of prompting a manual hunt. And 43 read-only tools expose the same data to an AI assistant over MCP, so you can ask an assistant in Claude, Cursor, or Codex for the same numbers.
Best practices that keep the savings
A few habits separate teams that hold onto the savings from teams that watch them drift back:
- Start with non-production and prove it there. Development, staging, QA, and demo environments carry almost no risk and the largest idle share, so they are the right place to build confidence before anyone considers production.
- Schedule by group, not by hand. Bundling an environment into a group like “staging” means one cadence covers every resource in it, and resources you add later inherit the schedule instead of being quietly forgotten.
- Use overrides instead of disabling schedules. When a late deploy needs a box overnight, a time-boxed override with a written reason keeps the schedule intact and expires on its own, so a one-off exception never becomes a permanent leak.
- Watch the audit trail and notifications. Every start, stop, and failure is logged and can post to Slack, Teams, or Google Chat, so a failed action is visible the moment it happens rather than discovered on the next invoice.
- Treat it as an operating rhythm, not a cleanup. The teams that keep the bill down review recommendations on a cadence and let the automation run continuously, instead of a one-off spring-clean that snaps back the moment attention moves on.
Getting started
Getting started is intentionally low-stakes:
- Connect your cloud provider with a read-only role. Nothing is scheduled or changed at this stage.
- Let ZopNight discover your non-production resources and review exactly what it found, filtered by account, region, and status.
- Create a schedule in your timezone and attach the non-production resources or groups you want it to cover.
- Watch the first cycle run, with Slack, Teams, or Google Chat notifications on every start, stop, and failure, then layer in idle cleanup and guided rightsizing.
Production stays excluded by default throughout, and because discovery and recommendations are read-only, you can prove the value before you enable a single action.
Questions we get a lot.
If yours isn't here, email us and we'll answer directly.
Can I clone a preset and customise it?
Yes. POST /dashboards with the preset layout in the body. Presets themselves are immutable (PUT/PATCH/DELETE on a preset id returns 405).
What are the dashboard quotas?
MaxDashboardsPerOrg=50, MaxWidgetsPerDash=50, MaxWidgetConfigBytes=4 KiB, MaxLayoutBytes=64 KiB. Race conditions on duplicate names hit ER_DUP_ENTRY (1062) which the service maps to a 409 with code DUP_NAME.
Does stopping a resource delete my data?
No. A scheduled stop preserves attached storage exactly as a normal power-off would; ZopNight stops compute, it never terminates or deletes resources. Your data is intact when the resource starts again.
What access does ZopNight need to begin?
A read-only role. Discovery, cost reporting, and recommendations all run read-only, and ZopNight records a per-action permission verdict so you can see exactly what a credential can and cannot do before you grant anything more.
What happens if a start or stop action fails?
ZopNight retries automatically up to three times, then falls back to a dead-letter queue rather than dropping the action silently. The failure surfaces in the action status and can notify your Slack, Teams, or Google Chat channel.
Which clouds are supported?
AWS, GCP, and Azure from one platform, including Databricks across all three. Schedules, groups, overrides, and recommendations work the same way regardless of provider.