Skip to content

Add pg_stat_wal table metrics #1082

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

pandar00
Copy link

@pandar00 pandar00 commented Nov 2, 2024

"wal_records",
"wal_fpi",          // bigint
"wal_bytes",        // numeric
"wal_buffers_full", // bigint
"wal_write",        // bigint
"wal_sync",         // bigint
"wal_write_time",   // double precision
"wal_sync_time",    // double precision
"stats_reset",      // timestamp with time zone
# HELP pg_stat_wal_stats_reset Time at which these statistics were last reset
# TYPE pg_stat_wal_stats_reset counter
pg_stat_wal_stats_reset 1.730575462e+09
# HELP pg_stat_wal_wal_buffers_full Number of times WAL data was written to disk because WAL buffers became full
# TYPE pg_stat_wal_wal_buffers_full counter
pg_stat_wal_wal_buffers_full 1.040989e+06
# HELP pg_stat_wal_wal_bytes Total amount of WAL generated in bytes
# TYPE pg_stat_wal_wal_bytes counter
pg_stat_wal_wal_bytes 8.8115219412e+10
# HELP pg_stat_wal_wal_fpi Total number of WAL full page images generated
# TYPE pg_stat_wal_wal_fpi counter
pg_stat_wal_wal_fpi 1.2850296e+07
# HELP pg_stat_wal_wal_records Total number of WAL records generated
# TYPE pg_stat_wal_wal_records counter
pg_stat_wal_wal_records 3.3412574e+07
# HELP pg_stat_wal_wal_sync Number of times WAL files were synced to disk via issue_xlog_fsync request (if fsync is on and wal_sync_method is either fdatasync, fsync or fsync_writethrough, otherwise zero). See Section 30.5 for more information about the internal WAL function issue_xlog_fsync.
# TYPE pg_stat_wal_wal_sync counter
pg_stat_wal_wal_sync 74409
# HELP pg_stat_wal_wal_sync_time Total amount of time spent syncing WAL files to disk via issue_xlog_fsync request,	in milliseconds (if track_wal_io_timing is enabled, fsync is on, and wal_sync_method is either fdatasync, fsync or fsync_writethrough, otherwise zero).
# TYPE pg_stat_wal_wal_sync_time counter
pg_stat_wal_wal_sync_time 0
# HELP pg_stat_wal_wal_write Number of times WAL buffers were written out to disk via XLogWrite request. See Section 30.5 for more information about the internal WAL function XLogWrite.
# TYPE pg_stat_wal_wal_write counter
pg_stat_wal_wal_write 1.128863e+06
# HELP pg_stat_wal_wal_write_time Total amount of time spent writing WAL buffers to disk via XLogWrite request, in milliseconds (if track_wal_io_timing is enabled, otherwise zero). This includes the sync time when wal_sync_method is either open_datasync or open_sync.
# TYPE pg_stat_wal_wal_write_time counter
pg_stat_wal_wal_write_time 0

@pandar00 pandar00 force-pushed the feature/pg_stat_wal branch from 6dca12b to 3000e76 Compare November 2, 2024 23:04
Signed-off-by: Harry Cho <pandar00@hotmail.com>
@pandar00 pandar00 force-pushed the feature/pg_stat_wal branch from 3000e76 to 85a7231 Compare November 2, 2024 23:07
Signed-off-by: Harry Cho <pandar00@hotmail.com>
pandar00 and others added 3 commits November 11, 2024 08:58
Co-authored-by: Ben Kochie <superq@gmail.com>
Signed-off-by: Harry Cho <pandar00@Hotmail.com>
Co-authored-by: Ben Kochie <superq@gmail.com>
Signed-off-by: Harry Cho <pandar00@Hotmail.com>
@pandar00 pandar00 requested a review from SuperQ November 11, 2024 17:07
@sysadmind
Copy link
Contributor

Bump @SuperQ

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add support for wal_fpi in pg_stat_wal
4 participants