opg_stat_monitor: A cool extension for better database monitoring
summary
pg_stat_monitor claims to replace pg_stat_statements sampling by pre-calculated aggregates stored in configurable time buckets, hooking into PostgreSQL to count every query and record plan id, relations, application/client, errors and a histogram of timings. It ships as a preload extension (requires restart and admin enable), reports much richer multi-dimensional stats with low measured overhead, installs from GitHub or packages, and integrates with PMM for Grafana dashboards.
AI-written summary · about
chapters (11)
- 0:00Introduction and speaker background
- 2:09Why better database monitoring
- 3:34How pg_stat_monitor works
- 7:10Installation and setup
- 10:00Querying and monitoring data
- 12:26Key features and metrics
- 16:00Performance impact and overhead
- 17:26Integration with PMM
- 19:14Configuring in PMM
- 20:36Community and support
- 21:00Q&A session
