Telemetry
Interactive SaaS SQL Lab

Database reliability · Beginner

Measure database connection-pool saturation

Which service is exhausting its database connection pool?

Rank services by maximum pool use, acquisition wait, and timeout samples.

Reviewed by the Telemetry product team on . Read-only SQL, connected-table grain, deterministic result, visualization, and interpretation boundaries. Review standards and ownership

Runs against one versioned 15-table dataset

Edit and execute the query locally in your browser, then download the same synthetic schema and rows for DuckDB.

Database reliabilityBeginner

Measure database connection-pool saturation

Which service is exhausting its database connection pool?

Rank services by maximum pool use, acquisition wait, and timeout samples.

The dataset and query remain in this browser.

Published expected result

Maximum connection-pool saturation

servicemax_saturation_pctaverage_acquire_wait_mstimeout_samples
checkout100124.31
worker100157.51
api41.78.50

How to read the query

  • Pool saturation normalizes active connections against each service's configured limit.
  • Acquisition wait catches pressure before requests begin timing out.
  • Timeout samples distinguish sustained contention from harmless utilization spikes.

Decisions the SQL cannot make

  1. 1Profile slow or long-held transactions before increasing the pool limit.
  2. 2Check the database connection ceiling before changing application pool sizes.
  3. 3Alert on sustained wait and timeout behavior, not utilization alone.

Continue from this lesson