r/devops • • Oct 19 '26

Observability How to monitor Supabase using an OTEL Collector?

https://telflo.com/blog/monitoring-supabase-with-the-opentelemetry-collector

Supabase is showing up in almost every new startup’s stack these days. Its built-in observability is good, but in practice you want to monitor Supabase alongside everything else you run, in whatever you already use such as ClickStack, Grafana, Datadog, etc.

Supabase made it easy by exposing a Prometheus endpoint at /customer/v1/privileged/metrics for every project , so a plain prometheus receiver gets you Postgres, connection pooling and host metrics. And Supabase log drains have a native OTLP destination, so logs land on a normal otlp receiver on 4318 with no webhook parsing but make sure to add auth on that receiver, since it’s on the public internet

I wrote a short post on the full collector config, the drain setup, and a docker-compose to run it. I also built a ClickStack dashboard you can import.

Curious how others are monitoring Supabase today?

8 Upvotes

7 comments sorted by

2

u/josejulianariza Nov 04 '26

The OTel setup is the right path, especially since Supabase's Prometheus endpoint requires privileges. Where many get stuck is port 4318 security.

For OTLP HTTP, don't leave the port open to the internet. Put a reverse proxy (Nginx or Traefik) in front requiring a header token. If exposed, anyone can inject junk logs.

For enrichment, use the Collector's attributes processor to inject the project tag before exporting. If you have multiple Supabase instances, that saves you when filtering on the dashboard.

1

u/Anakin19901 Oct 19 '26

the password in that prometheus receiver is the service_role key. basic auth, username service_role, so the collector config is holding a key that bypasses RLS on the whole project, not some read-only metrics token.

if youre on the new sb_secret_ keys, make a separate one just for the scraper so you can revoke it without touching the one your backend uses, and keep it out of the compose file that people are going to copy straight into git. on the legacy jwt keys i dont think theres a clean way, rotating that one means rotating everything

1

u/[deleted] Oct 19 '26

[removed] — view removed comment