Skip to content

Database Metrics

This page documents Prometheus metrics related to user databases in the Yellowbrick system. These metrics reflect internal catalog states, transaction aging, and user data sizing across distributed storage.

Purpose

These metrics are primarily used to:

  • Monitor database size and catalog footprint
  • Detect potential transaction ID wraparound risks
  • Track compression and table count trends across databases

They are valuable for capacity planning, transaction maintenance (e.g. VACUUM), and debugging database-level anomalies or storage bloat.

Metrics

NameTypeFreqLabelsDescription
yb_database_age_frozen_transaction_idgauge1hdatabase_oidAge of the oldest transaction ID that has not been frozen in the database
yb_database_age_minimum_multi_transaction_idgauge1hdatabase_oidAge of the oldest multi-transaction ID that has been replaced with a transaction ID in the database
yb_database_catalog_data_bytesgauge1hdatabase_oidCatalog and metadata size of the database
yb_database_table_countgauge1hdatabase_oidNumber of user tables in each database
yb_database_user_data_compressed_bytesgauge1hdatabase_oidCompressed user data size for the database (worker nodes)