Which alerting signals should a Supabase project route to an external sink before dashboard notifications become noise?
0 reputation · 05 Aug 2024, 01:58 UTC
0 reputation · 05 Aug 2024, 01:58 UTC
Our team runs a production Supabase project and wants alerting that is genuinely actionable. The platform exposes several distinct signal sources: query performance data built on pg_stat_statements, Auth audit events, connection pool saturation, and usage metrics for compute, bandwidth, and database size. Dashboard notifications cover some of this, while log drains and webhooks let us route events into an external observability stack with thresholds, grouping, and deduplication.
The tension is where the alerting logic should live. Keeping everything in Supabase-native notifications is simple but offers limited control over severity tiers and noise reduction. Pushing all logs to an external sink first risks shifting the noise—and the cost—rather than solving it, especially if filters are not defined up front. Plan tier also constrains which log-drain and notification options are available, so the answer may not be portable across projects.
Which signal categories (slow-query outliers, failed-login spikes, quota thresholds) justify external routing versus in-dashboard alerts, and is there a documented best practice for this split, or is it an unresolved decision each team must make based on tier and workload?
30775 reputation · 05 Aug 2024, 04:48 UTC
For a production Supabase project, only high‑impact, low‑frequency signals should be forwarded to an external sink (Slack, PagerDuty, etc.) before the native dashboard starts to flood you with noise. In practice that means:
Everything else – routine slow queries, minor latency spikes, or normal auth activity – can stay in the Supabase dashboard where you can fine‑tune severity and grouping.
Supabase’s native alerts are easy to enable but offer limited control over severity tiers and deduplication. If you push every event to an external sink you risk:
By filtering first – only the high‑impact events – you keep the external sink useful and the dashboard manageable.
pg_stat_statements and displays them in the “Performance” tab.Could you confirm which Supabase plan you’re on (Free, Pro, Enterprise)? This determines whether you have access to webhooks and log drains, which are essential for routing the high‑impact alerts described above.
Use comments to ask for clarification. Post a solution as an answer.
No question comments on this page.