Graph work

TigerFinOps

Live demo, synthetic data

Which cloud spend is waste, and who actually owns it?

Graph-native cloud cost optimization built on FOCUS, the open billing standard. TigerFinOps joins billing data with a resource inventory into one property graph, then produces costed, auditable recommendations. The graph database is embedded, so there is no server to stand up.

Visit tigerfinops.com

TigerFinOps explorer overview: spend by cloud across AWS, Azure and GCP, a savings waterfall, and savings ranked by opportunity.

Case study

How it was built, tested, and where it stops

The problem

Billing data tells you what things cost. It cannot tell you that a NAT gateway is serving an empty subnet, that a snapshot outlived the volume it was taken from, or that an untagged disk belongs to the payments team because of what it is attached to. Those are questions about relationships, and every answer has to be costed and checkable before anyone acts on it.

How it works

  1. Reads billing in FOCUS, the open billing standard, or native AWS, Azure and GCP exports normalized to it, alongside a resource inventory.
  2. Runs as separate stages (generate, validate, build, analyze), each reading only the files the previous stage wrote.
  3. Loads billing and inventory into one property graph in LadybugDB, an embedded graph database, and runs Cypher detectors for waste, commitments, rightsizing, scheduling and storage tiering.
  4. Infers owners for untagged resources by following relationships, through six resolvers. Every ownership claim carries a confidence, a method and its evidence.
  5. Publishes a versioned output contract (a Parquet star schema, GraphML, Cytoscape JSON and HTML) and serves the same engine through a FastAPI explorer with a what-if view, deployed on Cloud Run.

Decisions, and why

An embedded graph database.
It runs on a VM in any cloud, on-premises or on a laptop, with no database server to stand up.
No code that branches on the cloud provider.
Provider service names are mapped to shared archetypes when data is loaded, so one detector covers all three clouds.
Anomalies never count as savings.
A spike is money already spent. A test enforces that gross savings equal waste plus rate savings, with anomalies nowhere in the sum.
Discounts come from observed rates, and commitments are sized to the 10th percentile of daily spend.
A hard-coded "typical savings" percentage produces a number nobody can check, and sizing to the mean overcommits.
No language model anywhere in the numbers.
Savings figures must be reproducible. Every input file and the detector ruleset are hashed into a manifest.

Testing and validation

  • 525 automated tests across 30 modules, run with pytest. There is no CI pipeline.
  • The synthetic estate has waste planted in it. The detectors must find all of it, with precision of at least 0.9. Inferred owners are 97.4% accurate against the generated ground truth.
  • The GCP adapter was run against a real detailed billing export (216,000 rows, 19 services, 1,798 resources). Costs reconcile with BigQuery's own totals to six decimal places. The bugs that run found are pinned by tests that use invented data in the real file structure.
  • A test checks that the command line and the API report the same savings figures.

Limitations

  • The detector and ownership scores are a closed loop: the generator and the detectors were written together, so the scores validate the harness and catch regressions. They are not evidence of real-world accuracy.
  • AWS and Azure inventory importers and importers for real utilization metrics are not built yet, so rightsizing, scheduling and tiering run on synthetic exports.
  • The service has no authentication. The public demo runs with the query console off.
  • Anomaly thresholds are reasonable defaults, not tuned ones.

Built by directing AI coding agents, with acceptance testing done by hand. How I build

What it does

  • Finds what a bill cannot: a NAT gateway serving an empty subnet, a snapshot that outlived its volume, an untagged disk that belongs to payments because of what it is attached to.
  • Infers ownership of untagged resources by following relationships, with a confidence score and evidence trail on every claim.
  • Allocates shared infrastructure such as NAT gateways, load balancers and shared databases to the teams that actually use it.
  • Explains anomalies through the graph ("8 of 8 contributing resources share one subnet") and keeps them out of savings figures.
  • Covers rate and commitment optimization, rightsizing, off-hours scheduling and storage tiering alongside waste elimination.

The demo runs on a generated enterprise estate of about 14,000 resources across three clouds. Figures shown in it are synthetic.

A question, in Cypher

The NAT gateways that are billing but serve no workloads. From the TigerFinOps source.

MATCH (nat:Resource)-[:IN_SUBNET]->(s:Resource)
WHERE nat.archetype = 'nat_gateway' AND nat.monthly_cost > 0
OPTIONAL MATCH (w:Resource)-[:IN_SUBNET]->(s)
WHERE w.archetype IN ['vm', 'database']
WITH nat, s, count(w) AS workloads
WHERE workloads = 0
RETURN nat.name, s.name, nat.monthly_cost