Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

Add a bit more info about BigQuery

Chase Granberry9a9758876d52
diff --git a/apps/docs/docs/ref/self-hosting-analytics/introduction.mdx b/apps/docs/docs/ref/self-hosting-analytics/introduction.mdx
index 3c223af2684..49ebb80520f 100644
--- a/apps/docs/docs/ref/self-hosting-analytics/introduction.mdx
+++ b/apps/docs/docs/ref/self-hosting-analytics/introduction.mdx
@@ -19,12 +19,11 @@ The Supabase Analytics server is a Logflare self-hostable instance that manages
When self-hosting the Analytics server, the full logging experience matching that of the Supabase Platform is available in the Studio instance, allowing for an integrated and enhanced development experience.
However, do note that due the platform's infrastructure gives rise to certain [differences](#differences).
-
<Admonition type="info" label="Logflare Technical Docs">
-All logflare technical docs are available at [https://docs.logflare.app](https://docs.logflare.app)
+ All logflare technical docs are available at
+ [https://docs.logflare.app](https://docs.logflare.app)
</Admonition>
-
## Getting Started
Using the example [self-hosting stack based on docker-compose](https://github.com/supabase/supabase/tree/master/docker), you include the logging related services using the following command
@@ -37,6 +36,11 @@ docker compose -f docker-compose-logging.yml up
This would include two additional docker services to your compose stack: Logflare and Vector.
+<Admonition type="info" label="Self-hosting">
+ Read more about [self-hosting Logflare](https://docs.logflare.app/self-hosting) as your analytics
+ server.
+</Admonition>
+
## Differences
API logs rely on Kong instead of the Supabase Cloud API Gateway. Logs from Kong are not enriched with platform-only data.
@@ -44,6 +48,14 @@ API logs rely on Kong instead of the Supabase Cloud API Gateway. Logs from Kong
Within the self-hosted setup, all logs are routed to Logflare via Vector. As Kong routes API requests to PostgREST, self-hosted or local deployments will result in Kong request logs instead.
This would result in differences in the log event metadata between self-hosted API requests and Supabase Platform requests.
+## BigQuery
+
+All log event data is stored in and queried from BigQuery. To use the Analytics server with Supabase you'll need a Google Cloud Platform account for access to BigQuery.
+
+Make sure to set the `GOOGLE_DATASET_ID_APPEND`, `GOOGLE_PROJECT_ID` and `GOOGLE_PROJECT_NUMBER` environment variables.
+
+Download your Google Cloud API JWT and store it under gcloud.json in your working directory.
+
## Production Recommendations
To self-host in a production setting, we recommend performing the following for a better experience.