Telemetry
Interactive SaaS SQL Lab

Database reliability · Advanced

Measure database impact by customer plan

Which customer plans are affected by database errors?

Join database operations to account dimensions to quantify the customer impact of failures.

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 reliabilityAdvanced

Measure database impact by customer plan

Which customer plans are affected by database errors?

Join database operations to account dimensions to quantify the customer impact of failures.

The dataset and query remain in this browser.

Published expected result

Failed database operations by plan

planoperationsfailed_operationsfailed_accountsaverage_duration_ms
business400265
free111210
growth611333.3
starter511167

How to read the query

  • The account dimension turns an infrastructure symptom into customer-impact evidence.
  • Distinct failed accounts prevents a noisy customer from dominating the affected-account count.
  • Plan segmentation supports prioritization without exposing individual customer names.

Decisions the SQL cannot make

  1. 1Escalate failures affecting paid plans or multiple distinct accounts.
  2. 2Compare affected-account count with raw operation count before declaring broad impact.
  3. 3Use the account identifier only for authorized incident follow-up and customer communication.

Continue from this lesson