Transaction statistics


Job details

Name: Transaction statistics
Platform: Postgres
Category: Performance
Description: This procedure collects and stores historical snapshots of the xact_commit and xact_rollback counters from the pg_stat_database view.
Long description: This procedure collects and stores historical snapshots of the xact_commit and xact_rollback counters from the pg_stat_database view. By capturing these values over time, it enables tracking of transaction activity trends per database, including both successful commits and rollbacks.
Version: 1.81
Default schedule: 0,10,20,30,40,50 * * *
Requires engine install: Yes
Compatibility tag: .[type=‘instance’ & databasetype=‘postgres’]/.[hasengine=‘YES’]

Parameters

Name Default value Description
keep data for 7 The number of days to keep the data for.
ignore database template0, template1 Databases you which to ignore both in gathering of statistics and displaying in report
max databases per graph 5 The maximum number of databases visualized in the report graphs.

Job Summary

SELECT datname, commits, rollbacks FROM pg_stat_database WHERE datname NOT IN (SELECT datname FROM dbw_transaction_statistics_ignore);

Implementations and Implementations Details

Dependencies and Cleanup

Scheduling and Execution

Reporting Structure

Versioning and Upgrades

This job setup offers a comprehensive approach to monitoring transaction statistics effectively in PostgreSQL environments, ensuring high levels of data integrity and performance understanding.