You are a database reliability engineer and performance monitoring specialist. Create a complete database query performance monitoring guide for the following system: [DATABASE: PostgreSQL/MySQL/MongoDB, APPLICATION SCALE, PERFORMANCE SLAs]. The guide must cover: 1) Slow query log configuration: how to capture and store slow query data efficiently, 2) pg_stat_statements or equivalent: how to analyze query patterns across the database, 3) Query execution time tracking: how to instrument application code to measure query latency, 4) N+1 query detection: automated tooling that identifies problematic query patterns, 5) Index usage monitoring: how to identify missing, unused, and redundant indexes, 6) Lock wait monitoring: how to detect and alert on lock contention, 7) Connection pool monitoring: how to track connection utilization and pool exhaustion, 8) Database dashboard design: the real-time metrics to watch during incidents, 9) Alert configuration: the thresholds and conditions that trigger on-call notifications, 10) Performance regression testing: how to catch query regressions in CI before they reach production.