docs: add loki drain information (#31148)

* docs: add loki drain information

* chore: typos

* docs: update DataDog capitalizatoin
This commit is contained in:
Ziinc authored and GitHub committed 2025-03-10 11:29:43 +01:00
1 parent 299475e2e6
commit a9b265bfa3
1 file changed
+13
@@ -16,6 +16,7 @@ The following table lists the supported destinations and the required setup conf
| --------------------- | ---------------- | ------------------------------------------------- |
| Generic HTTP endpoint | HTTP | URL <br /> HTTP Version <br/> Gzip <br /> Headers |
| DataDog | HTTP | API Key <br /> Region |
| Loki | HTTP | URL <br /> Headers |
HTTP requests are batched with a max of 250 logs or 1 second intervals, whichever happens first. Logs are compressed via Gzip if the destination supports it.
@@ -181,6 +182,18 @@ To setup DataDog log drain, generate a DataDog API key [here](https://app.datado
If you are interested in other log drains, upvote them [here](https://github.com/orgs/supabase/discussions/28324)
## Loki
Logs sent to the Loki HTTP API are specifically formatted according to the HTTP API requirements. See the official Loki HTTP API documentation for [more details](https://grafana.com/docs/loki/latest/reference/loki-http-api/#ingest-logs).
Events are batched with a maximum of 250 events per request.
The log source and product name will be used as stream labels.
The `event_message` and `timestamp` fields will be dropped from the events to avoid duplicate data.
Loki must be configured to accept **structured metadata**, and it is advised to increase the default maximum number of structured metadata fields to at least 500 to accommodate large log event payloads of different products.
## Pricing
For a detailed breakdown of how charges are calculated, refer to [Manage Log Drain usage](/docs/guides/platform/manage-your-usage/log-drains).