---
title: "Own Your Observability: Supabase Metrics API"
description: "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."
url: "https://swe.quest/articles/own-your-observability-supabase-metrics-api-f7b0d82ff7186f0c"
canonical: "https://supabase.com/blog/metrics-api-observability"
source: "Supabase"
published: "2025-12-16"
difficulty: "medium"
kind: "Announcement"
reading_minutes: 4
tags: ["observability","postgres"]
---

# Own Your Observability: Supabase Metrics API

A post on [Supabase](https://swe.quest/sources/supabase.md), published 2025-12-16, 4 min read, Announcement. Original: [https://supabase.com/blog/metrics-api-observability](https://supabase.com/blog/metrics-api-observability)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Observability](https://swe.quest/tags/observability.md) (Reliability & operations)
- [PostgreSQL](https://swe.quest/tags/postgres.md) (Data & databases)

## Prerequisites

- Prometheus scraping
- Postgres monitoring basics ([easy posts on PostgreSQL](https://swe.quest/tags/postgres.md?difficulty=easy))

## Keywords

Supabase, Metrics API, Prometheus, Grafana Cloud, Datadog, AWS Managed Prometheus, PgBouncer, Supavisor

## Related posts

- [Operate with confidence: check production with your coding agent](https://swe.quest/articles/operate-with-confidence-check-production-with-your-coding-agent-2d12eed022759488.md): Supabase · 2026-10-20 · Medium · 4 min read · AI agents, Observability, PostgreSQL, Developer tools
  Supabase 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.
- [How We Export Metrics to Third-Party Services](https://swe.quest/articles/how-we-export-metrics-to-third-party-services-3378a3c9ceb725eb.md): Neon · 2025-06-24 · Medium · 4 min read · Observability, Kubernetes, PostgreSQL
  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.
- [PostgREST 12.2: Prometheus metrics](https://swe.quest/articles/postgrest-12-2-prometheus-metrics-d06169af1cb8495c.md): Supabase · 2024-08-16 · Medium · 2 min read · PostgreSQL, API design, Observability
  PostgREST 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.
- [Monitor your ClickHouse Cloud services with the new Prometheus/Grafana Mix-in](https://swe.quest/articles/monitor-your-clickhouse-cloud-services-with-the-new-prometheus-grafana-mix-in-d5de8c9f127ab682.md): ClickHouse · 2025-05-12 · Medium · 3 min read · Observability, Analytics & OLAP, Cloud platforms
  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.
- [Monitor These Key Neon Metrics Via Datadog](https://swe.quest/articles/monitor-these-key-neon-metrics-via-datadog-4c621c1afdac4161.md): Neon · 2024-11-12 · Medium · 5 min read · PostgreSQL, Observability, Caching, Performance engineering
  Neon now exports database metrics to Datadog via an API-key integration covering all computes in a project.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
