The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
update Metrics doc page to include a prometheus configuration example (#27910)
Joe Burchett246887ed61a1
diff --git a/apps/docs/content/guides/platform/metrics.mdx b/apps/docs/content/guides/platform/metrics.mdxindex dece498959f..f9d83c6ff08 100644--- a/apps/docs/content/guides/platform/metrics.mdx+++ b/apps/docs/content/guides/platform/metrics.mdx@@ -28,4 +28,24 @@ Your project's metrics endpoint is accessible at `https://<project-ref>.supabase> curl https://<project-ref>.supabase.co/customer/v1/privileged/metrics --user 'service_role:<service-role-jwt>'```+## Configuring Prometheus++For self-hosted prometheus, modify your `prometheus.yaml` file to add a Supabase job, and set the `metrics_path`, `scheme`, `basic_auth` and `targets` parameters. For example:++```yaml+scrape_configs:+ - job_name: "MyJob"+ metrics_path: "/customer/v1/privileged/metrics"+ scheme: https+ basic_auth:+ username: "service_role"+ password: "<your service_role JWT>"+ static_configs:+ - targets: [+ "<your Supabase Project ID>.supabase.co:443"+ ]+ labels:+ group: "MyGroupLabel"+```+Additionally, we [maintain a guide](https://github.com/supabase/supabase-grafana) on quickly setting up a scraping agent to work with Grafana Cloud.