File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -63,9 +63,38 @@ tar -czf /stackable/vector-${NEW_VERSION}-src.tar.gz .
6363
6464. "$HOME/.cargo/env"
6565
66- # Build vector with default features
67- # TODO (@NickLarsenNZ): Consider reducing the feature-set to only what we need in the sidecar.
68- cargo auditable --quiet build --release
66+ # Build vector with a minimal feature-set for use as a log-shipping sidecar.
67+ # We only need to read logs from disk (file source) and ship them to either
68+ # a Vector aggregator (vector sink) or an OTLP endpoint (opentelemetry sink).
69+ #
70+ # Sources:
71+ # - file: Read log files from disk (core use case)
72+ # - internal_logs: Vector's own log output
73+ # Transforms:
74+ # - remap: VRL-based log parsing and structuring (used by operator-generated configs)
75+ # - filter: Drop unwanted log lines
76+ # - route: Route logs to different sinks based on conditions. It's currently not used,
77+ # but might be helpful in the future.
78+ # Sinks:
79+ # - vector: Ship logs to a Vector aggregator
80+ # - opentelemetry: Ship logs to an OTLP endpoint
81+ # - console/blackhole: Useful for debugging and are "cheap"
82+ # Other:
83+ # - api: Needed for /health checks (or /graphql queries)
84+ # - unix: Enables jemalloc allocator on Linux for better performance
85+ cargo auditable --quiet build --release --no-default-features --features "
86+ sources-file,
87+ sources-internal_logs,
88+ transforms-remap,
89+ transforms-filter,
90+ transforms-route,
91+ sinks-vector,
92+ sinks-opentelemetry,
93+ sinks-console,
94+ sinks-blackhole,
95+ api,
96+ unix
97+ "
6998
7099# Generate SBOMs and copy them to /app (via a script)
71100cargo cyclonedx --all --spec-version 1.5 --describe binaries
You can’t perform that action at this time.
0 commit comments