Skip to content

Transaction Metrics

This page documents Prometheus metrics related to active database transactions in Yellowbrick, offering insight into transactional concurrency and long-running transaction behavior.

Purpose

These metrics are useful for:

  • Tracking the number of currently open transactions in the system
  • Detecting long-running transactions that could block vacuum, DDL, or create risk of transaction ID wraparound
  • Supporting transaction-level diagnostics during query or session analysis
  • Informing tuning of idle timeout or transaction isolation strategies

Metrics

NameTypeFreqLabelsVersion IntroducedVersion DeprecatedDescription
yb_active_transactionsgauge1m-7.3.0-Current number of active transactions
yb_active_transactions_oldest_timestamp_secondsgauge1m-7.3.0-The current maximum transaction age in seconds