Grafana-Style Cloud Infrastructure Dashboards
Introduction:
Engineering teams running distributed cloud infrastructure lose an average of 23% of their sprint capacity to context-switching between AWS CloudWatch, Kubernetes dashboards, CI/CD pipelines, and incident queues that never talk to each other. When your observability stack is fragmented, outages compound silently and SLAs slip before an alert fire.
A Grafana-style DevOps Command Center solves this by collapsing your entire cloud infrastructure signal metrics, logs, deployments, and cost anomalies into a single, real-time operations layer. This report breaks down the integration architecture, the toolchain decisions that matter, and what a production-grade Command Center looks like when it’s built to scale across multi-cloud and hybrid environments.
Blog Executive Summary:
The DevOps Command Center is a single-process Node.js/Express dashboard that unifies Microsoft Graph, GitHub, Jira, AWS and Kubernetes operations into one surface. As the number of AWS accounts and services grew, engineers kept flipping between a dozen pages to answer one question: “what is the current state of our cloud?”
The Cloud Dashboard module adds a Grafana-style, user-composable dashboard builder directly inside the Command Center. Users create named dashboards, pick an AWS account (profile) + region, and compose panels from any live data endpoint the app already exposes — EC2, RDS, EKS, ECR, Lambda, S3, DynamoDB, Route53, CloudFront, SQS, SNS, AWS cost, account alerts, Patch Management hosts, and SSL certificate expiry.
A “one-click add all active services” flow reads a cached account census, detects which services exist in the selected account, and drops a panel for each turning “build me an overview” into a single click.
Why We Needed It?
Every individual service already had a page (EC2, S3, SQS, …), but there was no single view that put them together. A Grafana-style dashboard is the natural answer: a wall of small panels, each showing one service, all bound to the same account.
No user-defined composition
The app was built around fixed pages. There was no way for an operator to say “I care about EC2 + cost + S3 risk — show me only those, at the width I want”. Dashboards are inherently personal/team-specific; a builder was required, not another fixed page.
Manual “which services do we even have?” checks
Across cx-dev, cx-hr, cx-infra, cx-training and others, the active service mix differs. The dashboard needed to know which services are running in a given account to present a meaningful picker — a pure catalog of widgets isn’t useful if it lists services the account doesn’t have.
Consistency with the “one pane of glass” goal
The Command Center’s whole value is consolidation. A cloud overview dashboard is the flagship example: account selector + region selector + live panels = one pane of glass for all infrastructure.
How We Integrated It?
Architecture
| Component | File | File |
| Dashboard backend | routes/dashboards.js | Dashboard CRUD, widget catalog, active-service detection, normalized panel data, caching |
| Fast S3 list endpoint | routes/s3.js | Lightweight bucket inventory (/api/aws/s3/list) for dashboard panels |
| Frontend | public/index.html | page-cdboard — Grafana-style topbar, panel grid, picker modal, stat/table renderers |
Registered in server.js:
require(‘./routes/dashboards’)(app);
State persists to .dashboards.json (auto-created, gitignored).
Backend — CRUD + catalog + data
Dashboard CRUD
- GET/POST /api/dashboards — list / create (name, profile)
- GET/PUT/DELETE /api/dashboards/:id — fetch / save (name, profile, panels) / delete
Widget catalog (GET /api/dashboards/catalog?profile=X)
The catalog is the heart of the feature. It defines 17 widgets, each declaring:
{ id: 'ec2', name: 'EC2 Instances', icon: '[EC2]', category: 'Compute',
endpoint: '/api/aws/ec2', params: ['profile','region'],
censusTotalKey: 'ec2.total', columns: [...] } Each widget also declares how to detect whether the service is active in an account:
- censusKey → looked up in account-summary.services map (e.g. sqs, route53)
- censusTotalKey → top-level counter (e.g. ec2.total)
- censusAlways → always available (cost, patch hosts, SSL, alerts)
The catalog fetches GET /api/aws/account-summary (itself cached ~6h) and returns widgets with active: true/false + a live count — so the picker and the “Add All Active” button know exactly what exists in the selected profile.
Normalized panel data (GET /api/dashboards/data?widget=..&profile=..®ion=..)
Every widget’s raw endpoint is reduced to one of two contracts:
// stat — big number panels
{ type: 'stat', value: 348.59, prefix: '$', suffix: '', source: '/api/aws/account-summary' }
// table — row panels
{ type: 'table', rows: [{...}], columns: [{k,label}], count: 10, source: '...' } The frontend renders any widget generically from this contract, so adding a new widget is one entry in the catalog — no frontend changes needed.
Frontend — Grafana-style
The Cloud Dashboards page (nav-cdboard → page-cdboard) mirrors Grafana’s chrome:
-
Topbar —
dashboard tab buttons, New/Delete, Account + Region dropdowns, Refresh, Auto-refresh (30s / 1m / 5m), primary Save
-
Table panels —
sticky uppercase headers, status badges (running/active/healthy → green, stopped/error/failed → red, degraded/pending → amber), mono numeric
The hardest part of a dashboard is that a wall of panels must not take 15–90s to load. We layered three fixes:
-
Per-widget data cache (5 min) —
every /api/dashboards/data response is cached in memory, so re-renders, refreshes, and dashboard switches are near-instant.
-
Background warming —
loading the catalog kicks off background fetches of every active widget, so by the time a user opens a dashboard, the panels are already cached. Verified: all 13 test widgets dropped from 15–90s cold to ~2–30 ms warm.
-
Fast S3 list endpoint —
the original /api/aws/s3 does deep per-bucket security scans (>90s). A new /api/aws/s3/list (list + region only, 1h route cache) gives the dashboard a bucket table in seconds instead of minutes, while the deep scanner stays on the S3 page.
Problems We Hit and Resolved
Blank dashboards after adding panels
Issue:
panels were rendered into the grid and then the whole content area was re-rendered, wiping the grid dashboards “came back blank” most of the time.
Resolution:
render order is now cdRender() (creates the grid) then cdRenderPanels() (fills it) everywhere add panel, remove panel, add-all-active all follow the same order.
Slow “fetching details”
Issue:
Each panel hit its live AWS endpoint with no caching; EC2 ~15s, S3 >90s, SQS ~15s. Sixteen panels meant a genuinely painful first paint.
Resolution:
The 5-minute data cache + background warming + fast S3 endpoint above. After warming, all panels are rendered in milliseconds.
Profile list came from saved dashboards, not AWS
Issue:
The Account dropdown was populated only from profiles that happened to be on existing dashboards.
Resolution:
cdInit now loads real profiles from GET /api/aws/profiles and real regions from GET /api/monitoring/regions?profile=X, exactly like the other AWS pages.
Route shadowing in Express
Issue:
/api/dashboards/catalog and /api/dashboards/data were shadowed by the /:id route, returning “dashboard not found”.
Resolution:
Static catalog/data routes are declared before the parameterized /:id routes — the standard Express ordering fix.
Overloading AWS with parallel CLI calls
Issue:
16 simultaneous panel fetches each shell out to the AWS CLI; slow endpoints overlapped and pushed each other past timeouts.
Resolution:
Panel data fetches are staggered (120 ms) client-side, and the shared data cache collapses repeat calls to a single upstream fetch.
Benefits We Got
| Area | Before | After |
| Cloud overview | Flip between 10+ pages | One dashboard with all services briefly |
| Composition | Fixed pages only | User-defined dashboards, per-panel width (2–12 cols) |
| Account awareness | Manual knowledge of each account | Catalog auto-detects which services are active per profile |
| Speed to build | N/A | “Add All Active” — one click adds every active service for an account |
| Panel rendering | N/A | Grafana-style stat cards, status badges, sticky tables, auto-refresh |
| Performance | Endpoints 15–90s | Panels ~2–30ms after warm; 5-min cache + background warm |
| Persistence | None | Saved dashboards survive restarts (.dashboards.json) |
| Extensibility | New page = frontend + backend | New widget = one catalog entry in routes/dashboards.js |
Verified on cx-infra (account 932837816830): 16 active services detected; all 16 panels returned live data with 0 failures; S3, EC2, SQS, Lambda, Route53, CloudFront, DynamoDB, ECR, SNS, cost MTD/yesterday, account alerts, patch hosts and SSL domains all rendered.
What It Cost (and What It Didn’t)
No added infrastructure cost
- The dashboard is pure app code with no new databases, message queues, agents, or third-party services.
- State is a single JSON file (.dashboards.json); caches are in-memory and bounded (200 entries max).
- No cloud cost: it reads the same AWS endpoints the app already calls; the census and panel data reuse the app’s existing caches.
Operational cost (the real trade-off)
Cost it did NOT add
- No new npm dependencies for the backend (the frontend uses the already-present Chart.js only for other pages; panels are pure DOM/CSS).
- No per-user licensing, no SaaS, no external dashboard tooling to maintain alongside the app.
Key Takeaways
-
Caching is the dashboard’s superpower —
a wall of panels is only usable if repeat loads are instant; cache + warm + stagger turned a 15–90s wall into a ~2–30ms render.
Conclusion:
A Grafana-style DevOps Command Center is not a dashboard project it is an infrastructure maturity decision. The teams that invest in unified observability, GitOps-driven deployments, and zero-trust networking don’t just respond to incidents faster; they eliminate entire categories of operational failure before they reach production. The technical depth required to build this right spans Kubernetes orchestration, Terraform-provisioned IaC, CI/CD pipeline telemetry, and multi-cloud cost signal integration disciplines that take 5+ years of production-grade experience to wire together without fragility.
At Codelogicx, our DevOps engineers have architected exactly this across hybrid and multi-cloud environments delivering zero-downtime deployments, measurable SRE outcomes, and infrastructure that scale without scaling your incident queue. If your cloud operations still live across five tools and three Teams channels, the Command Center architecture outlined in this report is your starting point.