From Elephant (PostgreSQL) to Fly (Bugs): Monitoring, Analyzing and Optimizing SQL Queries
summary
Practical case study of diagnosing and speeding up a PostgreSQL-based system using a monitoring stack built from Telegraf, InfluxDB and Grafana to collect per-minute (or per-second) SQL statistics without modifying PostgreSQL and working in an isolated network under heavy load. Describes two approaches to gathering and visualizing query statistics (including detailed logging that captures parameter values), alternative approaches that failed, inspiration from other solutions, and lessons from a three-month bug-fixing effort that improved performance.
AI-written summary · about
