Appearance
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
| Name | Type | Freq | Labels | Description |
|---|---|---|---|---|
yb_active_transactions | gauge | 1m | - | Current number of active transactions |
yb_active_transactions_oldest_timestamp_seconds | gauge | 1m | - | The current maximum transaction age in seconds |