flight505/skill-forge/supabase-observability
Claude Code and agent skill by flight505/skill-forge
- community
- ext:[{"type":"plugin","description":"Custom plugin integration"}]
Checking that the SKILL.md file is still in the repository.
'Set up monitoring and observability for Supabase projects using Dashboard
Install
npx vskill@latest install flight505/skill-forge/supabase-observabilitySemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as flight505/skill-forge/supabase-observability.
Supabase Observability
Overview
Monitor Supabase projects end-to-end: Dashboard reports for API/database/auth metrics, supabase inspect db CLI for deep Postgres diagnostics, pg_stat_statements for query analytics, log drains for external aggregation, Edge Functions for custom metrics, and alerting on quota thresholds.
Prerequisites
- Supabase CLI installed (
npx supabase --version) - Supabase project linked (
supabase link --project-ref <ref>) - Pro plan or higher for log drain support and extended log retention
@supabase/supabase-jsv2+ installed for application-level monitoring
Instructions
Step 1: Dashboard Reports and CLI Inspect Commands
Supabase Dashboard provides built-in reports under Dashboard > Reports:
| Report | What It Shows | |
|---|---|---|
| API Requests | Total requests, response times, error rates by endpoint | |
| Database | Active connections, query counts, replication lag | |
| Auth Usage | Signups, logins, provider breakdown, failed attempts | |
| Storage | Bandwidth, object counts, bucket usage | |
| Realtime | Active connections, messages per second, channel counts |
For deeper Postgres diagnostics, use the CLI inspect commands:
Step 2: Query Analytics with pg_stat_statements and Log Drains
Enable pg_stat_statements for detailed query-level metrics:
Log drains forward Supabase logs to external aggregation tools:
Log drain events include API requests, Auth events, Postgres logs, Storage operations, and Edge Function invocations.
Step 3: Custom Metrics, Alerting, and Health Checks
Custom metrics via Edge Functions — emit structured events for business-level monitoring:
Schedule it with a cron trigger in supabase/config.toml:
Health check endpoint for uptime monitoring (Uptime Robot, Pingdom, etc.):
Real-time connection monitoring — track active Realtime connections:
Output
- Dashboard reports configured for API, database, and auth monitoring
- CLI inspect commands available for Postgres diagnostics (table sizes, index usage, cache hits, sequential scans, long-running queries)
pg_stat_statementsenabled with slow-query and high-frequency-query views- Log drains forwarding to external tools (Datadog, Logflare, or webhook)
- Custom metrics Edge Function collecting quota-relevant data on a schedule
- Health check endpoint returning per-service status with latency
- Alerting on quota thresholds (database size, user count)
Error Handling
| Issue | Cause | Solution | |
|---|---|---|---|
pg_stat_statements returns no rows | Extension not enabled | Enable via Dashboard > Database > Extensions | |
supabase inspect db fails | CLI not linked to project | Run supabase link --project-ref <ref> | |
| Log drain not receiving events | API key invalid or region mismatch | Verify credentials; check supabase log-drains list | |
| Cache hit ratio below 95% | Working set exceeds RAM | Upgrade compute add-on or optimize queries | |
| Health check returns 503 | One or more services degraded | Check detail field in response; verify service role key | |
| Edge Function cron not firing | Missing schedule in config.toml | Add [functions.<name>] with schedule field and redeploy | |
| Long-running queries growing | Missing indexes or lock contention | Run inspect db seq-scans and inspect db blocking |
Examples
Quick Diagnostic Script
Metrics Table Schema
Resources
- Supabase Logs & Analytics
- Database Inspect Commands
- Log Drains
- Edge Functions Scheduling
- pg_stat_statements
- Supabase JS Client
Next Steps
For incident response procedures, see supabase-incident-runbook. For performance optimization, see supabase-performance-tuning.
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/saas-packs/supabase-pack/skills/supabase-observability/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Extension points
pluginCustom plugin integration
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/flight505/skill-forge/supabase-observability)