Configures Prometheus scraping, log drains, and observability for Supabase infrastructure monitoring.
97
97%
Does it follow best practices?
Impact
—
No eval scenarios have been run
Risky
Do not use without reviewing
Configures Prometheus scraping, log drains, and observability for Supabase infrastructure monitoring.
This tile sets up a Prometheus scrape job targeting the Supabase privileged metrics endpoint and configures log drain pipelines for API, Postgres, and Auth log sources. It establishes monitoring coverage for four required domains: API response times, database connection pool usage, auth token issuance rates, and storage operation latency. Alert baselines are defined for latency and saturation thresholds.
https://<project-ref>.supabase.co/customer/v1/privileged/metricsAuthenticated via Authorization: Bearer <service_role_key>.
| Family | Prometheus Prefix | Covers |
|---|---|---|
| API response times | http_request_duration_seconds | Gateway latency |
| Connection pool | pgbouncer_pools_* | PgBouncer saturation |
| Auth issuance | gotrue_* | Token generation rates |
| Storage latency | storage_* | Object operation times |
| Metric | WARNING | CRITICAL |
|---|---|---|
| API p95 latency | > 2s | > 5s |
| Connection pool saturation | > 80% | > 95% |
| Auth error rate | > 5% | — |