CloudOps Insight, layer by layer

CloudOps Insight, layer by layer

A guided tour of a live, multi-tenant cloud monitoring and FinOps platform. It starts with the whole system on one screen and works down to the database tables and backups. Each diagram was traced from the code in the project's three repositories.

Start the tour

Inside any diagram, press Live to watch data move along the arrows, or click a part to see what it does and the code behind it.

    OverviewDetail

    The big picture

    What the product does and every part it is made of.

    01

    Every technology and why it's there

    Start here. Every technology in the project, grouped by layer, with what it is in general, what it does in this project, and the file where it is set up.

    It is the longest chapter, running from the React frontend down to backups and recovery. Use the chapter list to skip ahead to the diagrams.

    Loading diagram
    02

    The live system on one screen

    How a visitor reaches the app, how background jobs read customer AWS accounts, and how new code reaches the cluster.

    There is no load balancer or open inbound port. Cloudflare Tunnel dials out from the cluster instead.

    Loading diagram

    Shipping code

    How a change is tested, built and deployed.

    03

    From pull request to OKE

    What GitHub Actions does on every pull request and merge: quality checks, image builds for two CPU types, Trivy security scans, publishing to GHCR and the hand-off to GitOps.

    A fixable HIGH or CRITICAL finding stops the release. Promotion to OCI is a separate, reviewed edit in the GitOps repo.

    Loading diagram
    04

    What Argo CD deploys to OKE

    Every Kubernetes object Argo CD creates from the Helm chart, grouped by what the OCI settings switch on and off.

    Ingress, autoscaling and NetworkPolicy are off here. The Tunnel talks straight to the frontend Service.

    Loading diagram

    Where it runs

    The Oracle Cloud resources underneath.

    05

    The Oracle Cloud infrastructure

    What Terraform builds in Oracle Cloud: the network and firewalls, the Kubernetes cluster on one ARM server, the database disk, backups and the recovery vault.

    The operator's kubectl path and visitor traffic never share a route.

    Loading diagram

    Inside the app

    How the code handles users, tenants and AWS data.

    06

    Inside the FastAPI backend

    How the backend code is organised into routers, services, repositories and models, and which layer talks to PostgreSQL, Redis and AWS.

    Only the AWS provider module calls AWS. Everything else goes through it.

    Loading diagram
    07

    Connecting a customer AWS account

    Step by step, how a customer grants read-only access with an IAM role and an External ID. The customer never hands over access keys, and the temporary keys AWS issues are never saved.

    The dashed messages are the failure paths: a bad role ARN, a refused AssumeRole, or the wrong AWS account.

    Loading diagram
    08

    Login and keeping tenants apart

    What happens from typing a password to loading one workspace's data: two tokens, rate limits in Redis, and the membership check on every request.

    A request for another tenant's data gets the same 404 as a record that does not exist.

    Loading diagram
    09

    How monitoring data moves

    Three schedules pull inventory, metrics and costs from AWS. The worker scores each resource, opens or resolves incidents, and the API serves it all to the dashboard.

    Budgets are not part of the schedule. The API works them out from saved costs when the page asks.

    Loading diagram

    Data and safety

    What is stored and how it is backed up.

    10

    The database, all 14 tables

    Every table, column and key, grouped by domain, including how each row is tied back to its tenant.

    Only cloud_accounts and budgets carry organization_id. Everything else reaches its tenant through cloud_accounts.

    Loading diagram
    11

    PostgreSQL backups and restore

    The nightly database dump, the private Object Storage bucket it lands in, the separate disk snapshots, and the manual restore drill.

    Each container gets exactly one credential: the dump step can read the database but not upload, and the uploader cannot log in to the database.

    Loading diagram

    How it got here

    Why the repos still mention AWS EKS.

    12

    From AWS EKS to Oracle OKE

    The infrastructure repository's history: about two weeks on AWS EKS, the move to Oracle Cloud, the hardening work, and the certified launch.

    Every time on the timeline is a real commit time from the repository.

    Loading diagram