FinOps for Postgres
Postgres FinOps: see the dollar behind every query, then spend less of it.
A cloud bill stops at the cluster. The money is spent by a query, an index nobody reads, a replica nobody reads from. This is the FinOps loop for Postgres, with the screens that carry it and a way in for every platform you run.
The invoice is exact and still no use to an engineer
A finance partner opens the cloud bill and sees a database cluster that cost a third more than last month. An engineer opens the monitoring and sees a healthy cluster. Both are right, and neither can say why the number moved, because the bill is organised by resource and the cause is organised by query. The two meet nowhere.
Postgres FinOps is the work of making them meet. It starts with the part you cannot skip: attributing spend down from the cluster, through the database and the workload, to the statement that drove it, and saying plainly how certain each step is. It goes on to act on what that shows, through the approvals you already trust. And it keeps going, because a saving nobody owns drifts back within a quarter.
The shape is the FinOps Framework’s loop: inform, optimize, operate, and back to inform with what was learnt. Each step below has a page of its own, with the mechanism and the screen.
The three steps, in a paragraph each
Inform
Know what it costs. Usage is measured, a rate is resolved for every line, and the dollars are carried down from the cluster to the database, the workload and the statement, with the part nobody can explain drawn as its own slice. On a database shared by many tenants, you can see what each one costs to serve. Cost anomalies, the cost of an incident and a forecast against a budget sit on the same numbers.
Optimize
Act on it. Every leak becomes a queue item with an owner and a projected (modeled) amount. Every executable change shows its dollar delta before it runs and goes through the approval gate. A savings case has a before and an after, and a figure is called savings only once the period after the change has been read.
Operate
Run it as a practice. Spend rolls up to the team, application and cost centre that can change it, budgets alert at thresholds you set, before the invoice does, cost is divided by something the business counts, and the whole thing leaves in an open format for the platform finance already uses.
A screen from the loop
This is the screen a finance partner opens: spend by owner. Look at the amber row. It is spend that no owner claims yet, and it is shown as its own line rather than spread across the teams, so the rest of the list stays honest.
Fleet cost overview
illustrative basisyour rateOne month, all clusters, grouped by owner. Every dollar is modeled from usage and your rate card.
Modeled spend
about $41k this month
up a little on last month
your rate
Unowned spend
about an eighth
no owner yet
Spend by owner
your rate- Payments platform $14,100
- Search $9,700
- Data science $7,300
- Unowned $5,200
Held apart until a team claims it
- Growth $4,800
Find your platform by the sentence you have said
Every platform sells a different thing, so every platform leaks in a different place. Provisioned services bill what you chose, consumption services bill what kept them awake, and distributed engines multiply whatever you store. Pick yours. Each card names the complaint as people make it, what the product puts in front of you, and where the detail on the platform lives.
Amazon RDS
- The standby costs what the primary costs and serves no reads.
- Those IOPS were set years ago.
- An old major version just picked up a surcharge.
What the product shows: The standby, replica, IOPS and support charges, each priced and tied back to the setting that drives it.
Amazon Aurora
- I/O is the bill.
- Serverless never scales down.
- The readers are sized like the writer.
What the product shows: The I/O, capacity and reader charges, each priced and tied back to the workload or setting that drives it.
Google Cloud SQL
- High availability doubled the bill.
- Storage only ever grows.
- Nobody claimed the commitments.
What the product shows: The high availability, storage and commitment charges, each priced and tied back to the setting that drives it.
AlloyDB
- The read pool was sized for launch.
- Columnar memory is reserved for tables nobody scans that way.
- Storage grows with a retention nobody reviewed.
What the product shows: The read pool, columnar memory and storage charges, each priced and tied back to the workload that drives it.
Azure Database for PostgreSQL
- The burstable credits ran out.
- Zone-redundant HA doubled compute.
- Nobody claimed the reservation.
What the product shows: The burstable, high availability and reservation charges, each priced and tied back to the setting that drives it.
Azure Database for PostgreSQL monitoring and the engine page
Neon
- The compute never suspends.
- Old branches hold storage.
- Every small project carries a minimum.
What the product shows: The compute-hour, branch storage and minimum-size charges, each priced and tied back to the project that drives it.
Supabase
- The add-on was sized for one spike.
- Disk went up and never came down.
What the product shows: The compute add-on and disk charges, each priced and tied back to the usage that drives it.
Citus
- Workers were sized for the biggest shard.
- Reference tables are copied everywhere.
- We added nodes and never rebalanced.
What the product shows: The worker, reference-table and rebalance costs, each priced across the cluster and tied back to the workload that drives it.
TimescaleDB
- Chunks never got compressed.
- Retention was written and never applied.
- Nobody queries those aggregates.
What the product shows: The compression, retention and aggregate costs, each priced and tied back to the data that drives it.
CockroachDB
- One replication factor for everything.
- Reads cross regions all day.
- We bought nodes for the peak.
What the product shows: The replication, cross-region and node costs, each priced and tied back to the table or statement that drives it.
YugabyteDB
- Tablet splits left nodes idle.
- One replication factor for the whole cluster.
- Nobody reads from those replicas.
What the product shows: The node, replication and replica-cluster costs, each priced and tied back to the workload that drives it.
Self-hosted Postgres
- Those hosts were sized years ago.
- Bloat is paid disk.
- Nobody has tested that standby.
What the product shows: Host cost split across clusters and statements, with the part that cannot be attributed shown.
Modeled until it is billed, and always says which
The screens on these pages are invented, and each one says so. The same candour applies to every figure in the product. Until your own bills are read in, a dollar is modeled from usage and a price, and the basis says what kind of price it was. The basis is written beside the figure in words, never left to a colour. The three you will meet most:
- basislist price
The public price for your region and platform. The default, and the least personal.
- basisyour rate
A line on your rate card, replaced with the price you negotiated. The number finance recognises.
- basisyour bill
A charge read from your own invoice. The only basis that is billed rather than modeled.
When modeled and billed disagree, the bill is right and the model is flagged for a person to correct; it is never nudged to match. The trust page sets out how a figure earns that label, how prices carry a source and a date, and what happens once bills are read.
If you are starting from a blank page, how Postgres cost works on a fleet sets out what each kind of platform meters, and the cost optimization overview lays out what a good tool has to do. This section is the long form of both, with the screens. If you own the database line from the finance side, the page for FinOps and finance partners is written for you.
Questions about Postgres FinOps
What is Postgres FinOps?
It is the FinOps practice applied to the database layer: know what each cluster, workload and query costs, act on the waste through the same approvals as any production change, and run the whole thing as a continuing practice with owners, budgets and unit costs. The phases are the FinOps Framework's; the parts specific to Postgres, from the query up, are ours.
Does it replace the FinOps platform we already run?
No. A general FinOps platform sees a database as one line among thousands. This goes inside the database and hands the attributed result back in a file built around the vocabulary of the open cost-data format, so the platform of record can take it without a custom mapping.
Are the dollars on these dashboards real?
No. Every dashboard on these pages is an illustration with invented figures, and each carries a tag that says so. In use, every dollar names its basis: list price, your rate or your bill, and a modeled figure is never presented as billed.
Which Postgres platforms are covered?
Amazon RDS, Aurora including Serverless, Google Cloud SQL, AlloyDB, Azure Database for PostgreSQL, Neon, Supabase, Citus, TimescaleDB, CockroachDB, YugabyteDB and self-hosted Postgres on virtual machines or Kubernetes. Each is priced by its own billing model.
Does a cost finding change anything on its own?
No. A finding starts as a recommendation with its dollar delta. A person approves it, it runs behind the fail-closed policy gate with a dry-run before and a verification after, and it lands in the signed ledger.
Where should a team start?
With one month of the invoice, sorted by cluster. Take the three largest and ask which workload made each that size and who would notice if it were one step smaller. A read-only pilot then attributes the same clusters to the query without changing anything.
See what your fleet costs, down to the query.
A pilot starts where nothing is allowed to mutate. You get the attribution and the projected (modeled) amounts on your own clusters, and nothing is resized until you have said it may.