Skip to content

Commit

Permalink
revert: "stop using forked vector now that they merged upstream" (#24396
Browse files Browse the repository at this point in the history
)
  • Loading branch information
frankh authored Aug 15, 2024
1 parent 2d9956c commit f43340d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
6 changes: 4 additions & 2 deletions vector/replay-capture/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ COPY vector.yaml .
# evaluate with yq, basically to expand anchors (which vector doesn't support)
RUN yq -i e 'explode(.)' vector.yaml

# nightly vector to include this fix https://github.com/vectordotdev/vector/commit/dc0b4087095b4968cca0201e233919de8cff9918
FROM timberio/vector@sha256:f30cba5e4efcf554aea09a3f970fc75a140750ded0095840a47a8b9c9571100c
# fork of vector from this branch: https://github.com/frankh/vector/tree/main
# includes 2 fixed: 1 to make Kafka temporary errors return 500 not 400
# and 1 to allow us to set response body on the http source
FROM frankh/vector:0.41.0-patched

COPY --from=config-builder /config/vector.yaml /etc/vector/vector.yaml
3 changes: 3 additions & 0 deletions vector/replay-capture/vector.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ sources:
query_parameters:
- _
host_key: ip
response_body_key: '%response'
decoding:
codec: vrl
vrl:
Expand Down Expand Up @@ -62,6 +63,8 @@ sources:
assert!(is_string(.message[0].properties."$$session_id"), "$$session_id is required")
assert!(is_string(%token), "token is required")
%response = {"status": 1}
transforms:
quota_check:
type: route
Expand Down

0 comments on commit f43340d

Please sign in to comment.