Skip to content

Transactions 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 wraparound
  • Supporting transaction-level diagnostics during query or session analysis
  • Informing tuning of idle timeout or transaction isolation strategies

Metrics

NameTypeFreqLabelsDescription
yb_active_transactionsgauge1m-Current number of active transactions
yb_active_transactions_oldest_timestamp_secondsgauge1m-The current maximum transaction age in seconds