Context & constraints
Cloud bills rarely spike from one obvious mistake. They drift upward quietly: Kubernetes CPU requests copied from templates and never revisited, GitHub Actions retaining heavy build artifacts for 90 days across hundreds of repositories, aggressive Prometheus scrape intervals, and verbose production logs nobody queries.
The hard part isn’t spotting waste once — it’s removing it without degrading tail latency or reliability, and putting automated guardrails in place so costs don’t creep back a quarter later.
Execution across two production estates
1. O.xyz — Kubernetes & CI Estate Audit
- Measured real vs. requested compute: Queried actual GKE usage against manifests and uncovered extreme over-allocation (0.49 CPUs actually used against 16.74 CPUs requested).
- Right-sized with attribution: Added Terraform cost attribution, halved CPU requests on key over-provisioned services, and tuned Prometheus scrape intervals to cut telemetry overhead.
- CI artifact audit at scale: Audited 219 repositories, 3,168 GitHub Actions runs, and 335 Terraform files; reduced CI artifact retention from 90 days to 1–3 days (~97% less artifact storage).
- Policy enforcement: Restored Kyverno policies across dev, staging, and production so resource guardrails stay enforced automatically.
2. Mercurie — FinOps Product & Internal Estate Cleanup
- Built a cloud cost tracking product from scratch for customers.
- Applied the same measurement-first discipline internally across unused cloud resources, noisy log pipelines, and idle capacity — putting the monthly cloud bill on track to drop by roughly a third with zero customer-facing downtime.
Audit workflow
1. Instrument & Measure ──► Real p95/p99 CPU, memory, CI retention, log volume
2. Attribute Ownership ──► Terraform labels & service-level cost mapping
3. Small Reviewed PRs ──► Step-down requests & retention safely in staging → prod
4. Lock With Policy ──► Kyverno rules prevent silent re-inflation
Outcomes
| Area | Verified Finding / Result |
|---|---|
| GKE CPU efficiency (O.xyz) | Found 0.49 used vs. 16.74 requested; halved key service requests |
| CI/CD estate audited | 219 repos, 3,168 Actions runs, 335 Terraform files |
| CI artifact storage | Retention cut 90d → 1–3d (~97% reduction) |
| Monthly cloud bill (Mercurie) | On track for ~33% reduction with zero downtime |