Skip to content
bucker

Database monitoring: what it costs, and what it costs your database

This page states two things. What you are charged for monitoring a Postgres database, and what monitoring charges your database. The second is meant to be a number Bucker measures on your database and shows you, not a benchmark taken once somewhere else; that measurement is not available yet (see below).

Status. The statement of what is and is not metered is in force. The weights of the things that are weighted, and the free allowance, are not priced yet (they will be weights on the unit budget, not new meters, with a safety control on every plan). Where a number is missing below, it is missing on purpose, and this page will not guess one.

What you are charged for

There is no per-database-host fee, no per-replica fee, no per-table fee and no per-seat fee. A replica, a branch of a serverless database or a second database in the same project adds no unit to your bill by existing. There are no credits that expire.

What Bucker does Charged
Statement rollups (the per-fingerprint, per-hour statistics) No. Unmetered, as uptime is.
Advisors and the findings they raise No.
The coverage matrix (what each signal can and cannot see, and why) No.
Queue and cache health, and every gauge Bucker pulls from your database No. They are derived rows written once a minute.
Raw evidence samples (activity samples, plan evidence) Yes, on the weighted unit budget at the log weight, past a free daily allowance per database. The allowance and the weight are not priced yet.
A kept, validated index change May become a priced outcome of a verified fix. Whether, and at what price, is not decided; nothing is charged for it today.
An explain an agent runs against your database Its cost to your database is charged to CUSTOMER_DB_TIME (the budget that limits what Bucker may spend of your database's time), not to your bill.

Going over a quota degrades with a receipt and is never silently billed. No plan charges for the unmetered rows above, and no agent can change a plan or a price: plans and the outcome price are set by Bucker.

What monitoring costs your database

Bucker's monitoring is built not to become your outage. It reads over one connection, in a read-only transaction, under a 2 second statement_timeout and a 100 ms lock_timeout, with application_name set to bucker-collector.

The published budget, per database

What applies today. Statement collection is not switched on yet. Once it is, the one connection, the 2 second statement_timeout, the statement-statistics and activity cadences and the per-fingerprint explain limit below apply. The other cadences, the per-minute statement and time caps, the back-off and the measured cost described after them are published targets: they are not applied yet, and no read returns them today (db_connection_get carries no collectorLoad block yet).

Limit Value
Connections held 1
Statements per minute (busiest minute of the last 5) 30 at most
Time your database spends on Bucker's statements per minute 3 seconds at most (5 % of one connection)
statement_timeout on every statement Bucker sends 2 seconds
Target share of your database's own time 0.5 % or less
Read Cadence
Statement statistics every 60 s; statement text fetched only for query ids not seen before, at most 200 per pull
Activity every 10 s
Blocking every 15 s, only while waits exist
Explains at most 10 per fingerprint and 60 per database per hour
Schema and settings every 6 hours
Column statistics every 24 hours

When they are applied, the same numbers will be returned by db_connection_get as collectorLoad.budget, so an agent can read them.

The cap, and what Bucker does above it

This is how the cap will behave once it is applied. Every session and every statement Bucker sends is counted per database. When the busiest recent minute is over the statements cap, the time cap or the one-connection limit, Bucker backs off on that database:

  • it opens no session until the wait is over (2 minutes after a first breach, doubling on each consecutive breach, to at most 30 minutes);
  • it reports it: db_connection_get will show collectorLoad.current with state: "backing_off", which limits were exceeded, the time it will ask again and how many breaches in a row;
  • it does not treat it as an error, does not open the connection's breaker and does not delete anything;
  • a window that is clean afterwards ends it.

One database backing off never slows another. The count is kept in memory, so a restart of Bucker's collection forgets a breach and measuring starts again from scratch.

The measured cost

Once it is returned, collectorLoad.measured will be read from the pg_stat_statements rows of Bucker's own monitoring role: the database time that role used, per hour, and its share of the database's total, shown beside the budget.

  • It is an upper bound. The setup script creates a role only Bucker uses; if you also point an application at that role, its time is counted as Bucker's.
  • Hours with nothing recorded say so (null), never 0 %.
  • It reads the hour rows Bucker keeps, which are kept for 14 days.
  • withinTarget compares the share over the whole read with 0.5 %.

The product's own goal is that Bucker's database time is at or below 0.5 % of total on 95 % of connected databases, published per database. Datadog's published figure for its Agent on an RDS m5.large is about 1 % of database CPU time, benchmarked once; Bucker's will be measured on yours.

What is decided and what is not

Question State
No per-host, per-replica, per-table or per-seat fee Decided.
Rollups, advisors, coverage, queue and cache health and pulled gauges unmetered Decided.
Weight of raw evidence samples, and the size of the free daily allowance Not priced yet.
Whether a kept index change is an outcome with a price Not decided yet.
The per-minute caps, back-off and measured cost above Published as targets; not applied yet. The one connection, the 2 second timeout, the statement-statistics and activity cadences and the explain limit apply once collection is switched on.