0
0
mirror of https://github.com/PostHog/posthog.git synced 2024-11-21 13:39:22 +01:00

revert: "stop using forked vector now that they merged upstream" (#24396)

This commit is contained in:
Frank Hamand 2024-08-15 15:46:52 +01:00 committed by GitHub
parent 2d9956cbcd
commit f43340d205
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -32,6 +32,7 @@ sources:
query_parameters:
- _
host_key: ip
response_body_key: '%response'
decoding:
codec: vrl
vrl:
@ -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