Skip to content

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

Setup Kong sink

Filipe Cabaco014d3b3cb5da
diff --git a/docker/docker-compose.yaml b/docker/docker-compose.yaml
index aa8e43de048..038df6fd958 100644
--- a/docker/docker-compose.yaml
+++ b/docker/docker-compose.yaml
@@ -307,6 +307,10 @@ services:
interval: 5s
timeout: 5s
retries: 10
+ depends_on:
+ vector:
+ # Disable this if you are using an external Postgres database
+ condition: service_healthy
command:
- postgres
- -c
diff --git a/docker/vector.yaml b/docker/vector.yaml
index 356847e1f9a..c6ced7c1b0b 100644
--- a/docker/vector.yaml
+++ b/docker/vector.yaml
@@ -97,12 +97,13 @@ sinks:
request:
retry_max_duration_secs: 10
uri: "http://logs:4000/api/logs?source_name=storage.logs.prod.2&api_key=gd9tDpgiCVJe"
- # console:
- # inputs:
- # # - router.studio
- # # - router.kong
- # # - router.meta
- # target: "stdout"
- # type: "console"
- # encoding:
- # codec: "json"
+ logflare_kong:
+ type: "http"
+ inputs:
+ - router.kong
+ encoding:
+ codec: "json"
+ method: "post"
+ request:
+ retry_max_duration_secs: 10
+ uri: "http://logs:4000/api/logs?source_name=cloudflare.logs.prod&api_key=gd9tDpgiCVJe"