5 ms·
we're releasing an official grafana/prometheus collector for Supabase (MIT license). The service collects 197 metrics[0], along with a default Grafana dashboar
by kiwicopple 3y ago
we're releasing an official grafana/prometheus collector for Supabase (MIT license).
The service collects 197 metrics[0], along with a default Grafana dashboard[1]. The entire thing can be run locally or deployed to a cloud service like Fly.io
Many Supabase customers already use Prom/Grafana, and this provides another way for them to debug their Postgres database.
We'd love feedback if you're missing anything important metrics
[0] metrics: https://github.com/supabase/supabase-grafana/blob/main/docs/metrics.md https://github.com/supabase/supabase-grafana/blob/main/docs/...
[1] dashboard: https://github.com/supabase/supabase-grafana/blob/main/docs/supabase-grafana-prometheus.png https://github.com/supabase/supabase-grafana/blob/main/docs/...
- pcnc 3y agoSupabase Engineer here, happy to answer any questions! We've made a Prometheus-compatible metrics endpoint[0] available to our customers for quite a while now, which is actively used by customers to monitor their projects. Setting up a metrics scraper and a Grafana instance, all while figuring out how and where to host it can pose a lot of friction for folks which haven't had much hands-on infrastructure experience. This aims to cut down on that friction, and allow everybody to deploy it on Docker-compatible platforms and services, such as Fly.io. The included dashboard has significant overlap with what Supabase is using internally to monitor and debug project infrastructure. [0]: https://supabase.com/docs/guides/platform/metrics#accessing-the-metrics-endpoint https://supabase.com/docs/guides/platform/metrics#accessing-...
- kiwicopple 3y agoIt also now has multi-project support, so that you can monitor all your projects within a single Organization: https://github.com/supabase/supabase-grafana/pull/5 https://github.com/supabase/supabase-grafana/pull/5
- codeptualize 3y agoLove this. We have been wanting to set up a Grafana dashboard for the metrics endpoint, but never found the time to set it up, this is really helpful! Also being able to run it locally is really nice. (small note, in the readme it says `cp .env.sample .env`, looks like it should be `cp .env.example .env`)
- kiwicopple 3y agothanks, added a PR to fix this: https://github.com/supabase/supabase-grafana/pull/7 https://github.com/supabase/supabase-grafana/pull/7