Why I built this
Cloud teams juggle two problems that rarely live in the same tool: "is everything healthy right now?" and "why is the bill so high?" CloudOps Insight is a hackathon MVP that tackles both — a single dashboard for infrastructure health, cost analysis, and optimization recommendations, backed by a real MongoDB dataset instead of static mock data.
What it does
The app is organized into modules that mirror how an ops or FinOps engineer actually works through a day:
- Dashboard — 8 KPI cards, resource distribution donuts, per-type health bars, and a live activity feed that refreshes every 30 seconds.
- Resource Monitoring — a searchable, filterable table (type, provider, region, status) with 15-second polling and alert badges when CPU or memory crosses 85%.
- Resource Detail — four time-series charts (CPU + memory, disk, network I/O) with a 1–30 day range selector and period summary stats.
- Cost Analysis — stacked bar breakdowns by service, multi-line trends per provider, and a forecast area chart with a ±10% confidence band, plus a top-5 costliest resources view.
- Reports & Analytics — date-range comparisons (this period vs. last), with CSV and PDF export via jsPDF.
- Optimization Recommendations — expandable cards with Apply/Dismiss actions, type filters, and a running total of potential savings.
- AI Insights — anomaly detection for cost spikes and high utilization, a next-month forecast, and a natural-language Q&A chatbot.
That last piece is worth calling out: the "AI Assistant" doesn't call an external LLM at all. The /api/insights/ask endpoint lowercases the question, pattern-matches it against known intents (cost spikes, most expensive resource, total spend, provider breakdown, idle resources, savings, region, warnings), runs the corresponding MongoDB aggregation against live data, and returns a plain-English answer with real numbers. It's a nice illustration of how far intent-matching plus real aggregation queries can get you before you need a model in the loop — and the code leaves an obvious seam ( server/src/routes/insights.ts ) for dropping in an OpenAI or Anthropic call later.
Tech stack
Frontend: React 18 + TypeScript + Vite, Tailwind CSS, Recharts for charting, React Router v6, lucide-react icons, react-hot-toast, jsPDF, and Axios for API calls.
Backend: Node.js + Express + TypeScript, Mongoose for schema modeling, JWT ( jsonwebtoken ) for auth, and bcryptjs for password hashing.
Database: MongoDB, defaulting to a local instance at mongodb://localhost:27017/cloudops_insight , with a one-line swap to MongoDB Atlas if you'd rather not run Mongo locally.
Auth is straightforward JWT-based login/register/logout with bcrypt-hashed passwords and protected routes, and the UI ships with both a dark, Datadog/AWS-inspired theme and a light mode, toggled from the topbar and persisted to localStorage .
Loading article