Own Your Observability: Supabase Metrics API
Supabase's Metrics API exposes roughly 200 Postgres health and performance metrics per project in Prometheus exposition format at a privileged endpoint authenticated with service-role Basic Auth, refreshed every minute. It can be scraped by Grafana Cloud, Datadog, AWS Managed Prometheus or any Prometheus-compatible backend, so database telemetry can be correlated with existing application observability. Suggested signals and alerts include connection saturation, CPU/memory above 80%, disk I/O wait, replication lag and post-deploy query regressions, plus using PgBouncer for bursty connection patterns.
Related posts
- Operate with confidence: check production with your coding agent
Supabase mediumAdeptSupabase now ships Agent prompts that let a coding agent (Claude, Codex, Cursor) check a production project on a schedule for error spikes, security findings, slow queries and resource growth, reporting only new or worsening issues with the measured value, threshold and a next step. Setup connects the Supabase MCP server scoped to one project with read_only=true, then schedules a prompt; deduplication requires the agent tool to persist alert state between runs. The launch also adds a query_logs MCP tool for read-only SQL over 24 hours of logs, a debugging-aware supabase agent skill, a Health tab in Advisors for abnormal error rates, and a Database Connections page for finding and cancelling blocked or long-running queries.
- How We Export Metrics to Third-Party Services
Neon mediumAdept
Neon streams Postgres and host metrics to Datadog, New Relic and any OTLP-compatible platform by running a per-project OpenTelemetry Collector colocated with compute pods in each region. Collectors are provisioned through the OTel Kubernetes Operator via a custom resource. Each one scrapes sql_exporter and Vector endpoints using Kubernetes pod service discovery filtered by project label, then applies memory limiting and batching before exporting. Per-project placement was chosen over per-user or per-org collectors to avoid cross-region scraping latency and to keep failure domains isolated, and the setup reuses the same scraping model as the internal vmagent/VictoriaMetrics monitoring pipeline.
- PostgREST 12.2: Prometheus metrics
Supabase mediumAdeptPostgREST 12.2 adds Prometheus-compatible metrics for its schema cache and connection pool, such as pgrst_db_pool_timeouts_total, to help diagnose problems like pool starvation. Function-level settings such as statement_timeout are now "hoisted" and applied per transaction when the function is called through RPC, so a single function can have its own timeout without changing the API role for every statement. Other settings can be added to the hoisted list via db-hoisted-tx-settings. A new max-affected Prefer header caps how many rows a mutation can touch, returning PGRST124 when the cap is exceeded under strict handling.
- Monitor your ClickHouse Cloud services with the new Prometheus/Grafana Mix-in
ClickHouse mediumAdept
ClickHouse Cloud now offers a Prometheus/Grafana mix-in: a pre-built Grafana dashboard, nearly identical to ClickHouse's internal one, fed by the cloud API's Prometheus endpoint. That endpoint federates metrics from every service in an organization and handles stopped or idling services, which per-instance scraping of system tables cannot. Its `filtered_metrics` parameter trims the 1000+ available metrics to about 125 critical ones, cutting scrape cost and noise. Setup is a Prometheus scrape config with basic auth and `honor_labels: true`, then importing the dashboard from Grafana.com or GitHub.
- Monitor These Key Neon Metrics Via Datadog
Neon mediumAdept
Neon now exports database metrics to Datadog via an API-key integration covering all computes in a project. The metrics include connection counts, replication lag, CPU and memory, Local File Cache hits and misses, an estimated working set size, and pg_stat_database aggregates. A low LFC hit ratio or high miss count usually means the working set exceeds cache memory and reads are falling through to pageserver getpage requests, so the fix is a larger compute or better queries and indexes. Watching working set size trends, deadlocks and row operations helps with autoscaling limits and spotting inefficient queries, and an importable JSON dashboard is provided.