apps/docs/content/guides/telemetry/metrics/vendor-agnostic.mdx
The Supabase Metrics API is intentionally vendor-agnostic. Any collector that can scrape a Prometheus text endpoint over HTTPS can ingest the data. This guide explains the moving pieces so you can adapt them to AWS Managed Prometheus, Grafana Mimir, VictoriaMetrics, Thanos, or any other system.
<$Partial path="metrics_access.mdx" />
No matter which collector you use, you need to hit the Metrics API once per minute with HTTP Basic Auth:
- job_name: supabase
scrape_interval: 60s
metrics_path: /customer/v1/privileged/metrics
scheme: https
basic_auth:
username: service_role
password: '<secret API key (sb_secret_...)>'
static_configs:
- targets:
- '<project-ref>.supabase.co:443'
labels:
project: '<project-ref>'
prometheus.scrape component with the same parameters.project, env, or team labels to make multi-project views easier.project, instance_class, org) to aggregate across tenants or environments.