Track connection count against max_connections and capture slow queries (e.g. via pg_stat_statements) with alerting thresholds.
Why This Matters
Without visibility into connection saturation and slow queries, incidents surface only as user-facing outages.
Related Rules
Catch this automatically on every PR
BeforeMerge scans your pull requests against this rule and dozens more. Get actionable feedback before code ships.