fix: filter out realtime healtcheck logging and increase hc interval

This commit is contained in:
Andrey A. authored and GitHub committed 2026-01-23 16:58:30 +00:00
1 parent cdc1a93eb0
commit 878667cc2d
2 files changed
+9 -2

No files matched your search

+2 -1
View File
@@ -212,8 +212,9 @@ services:
"curl -sSfL --head -o /dev/null -H \"Authorization: Bearer ${ANON_KEY}\" http://localhost:4000/api/tenants/realtime-dev/health"
]
timeout: 5s
interval: 5s
interval: 30s
retries: 3
start_period: 10s
environment:
PORT: 4000
DB_HOST: ${POSTGRES_HOST}
+7 -1
View File
@@ -104,11 +104,17 @@ transforms:
.timestamp = to_timestamp!(parsed.time)
.metadata.host = .project
}
# Filter out healthcheck logs from Realtime
realtime_logs_filtered:
type: filter
inputs:
- router.realtime
condition: '!contains(string!(.event_message), "/health")'
# Realtime logs are structured so we parse the severity level using regex (ignore time because it has no date)
realtime_logs:
type: remap
inputs:
- router.realtime
- realtime_logs_filtered
source: |-
.metadata.project = del(.project)
.metadata.external_id = .metadata.project