Conversation
The stack's default Vector pipeline enabled the health API but forwarded no service logs, so nothing reached Analytics. With Docker or Podman the default pipeline now tails the stack's labelled service containers through the engine socket and posts Auth, REST, Realtime, Storage, Functions and database logs to their Logflare sources. Containers carry a service label for routing, and Vector gets read-only engine API access. Native Vector keeps forwarding nothing because native service output is only held in stack memory. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
avallete
force-pushed
the
avallete/fervent-mclaren-e91807
branch
from
September 28, 2026 18:49
25f8205 to
b47570f
Compare
Member
Author
|
Superseded by #6893, which persists the stack's service logs to files and ships them to Analytics directly from the stack host (no Vector in the path), catching up after Analytics has slept. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The experimental stack's Vector recipe launched Vector with its bundled upstream demo config whenever no
configPathwas given, which is always the case from the CLI. That config emits a fake syslog line every second to the console and leaves Vector's API disabled, so the recipe's/healthreadiness never passed in docker and nothing reached Analytics.The recipe now writes a generated pipeline to
<root>/<instanceId>/vector/vector.jsoninprepare:docker_logssource filtered to the stack'scom.supabase.stacklabel, routed by a newcom.supabase.servicecontainer label to per-service remaps ported from the legacyvector.yamltemplate (Kong omitted; the stack has none), and HTTP sinks to${LOGFLARE_URL}/api/logs?source_name=…authenticated with${LOGFLARE_PRIVATE_ACCESS_TOKEN}. Vector interpolates both from the env vars the recipe already set.Supporting changes:
ContainerSpecgains aservicelabel (set by process recipes and the database) and an opt-inengineApiflag. The flag mounts the engine socket read-only at/var/run/docker.sock, or setsDOCKER_HOSTtohost.docker.internalfor TCP or named-pipe endpoints. The endpoint comes fromdocker context inspect(which honorsDOCKER_HOST) orpodman info, and the Docker Desktop/Colima socket mapping mirrors the legacy CLI.experimental stack startSIDE_EFFECTS updated.A new
Vector.integration.test.tsruns the database, Analytics and Vector in docker and asserts that a databaseRAISE LOGmarker lands in Logflare'spostgres.logssource withLOGseverity.Reviewer notes
configPathis supplied; nothing in the CLI passes one today.🤖 Generated with Claude Code