mirror of
https://github.com/PostHog/posthog.git
synced 2024-11-21 21:49:51 +01:00
revert: "stop using forked vector now that they merged upstream" (#24396)
This commit is contained in:
parent
2d9956cbcd
commit
f43340d205
@ -7,7 +7,9 @@ COPY vector.yaml .
|
|||||||
# evaluate with yq, basically to expand anchors (which vector doesn't support)
|
# evaluate with yq, basically to expand anchors (which vector doesn't support)
|
||||||
RUN yq -i e 'explode(.)' vector.yaml
|
RUN yq -i e 'explode(.)' vector.yaml
|
||||||
|
|
||||||
# nightly vector to include this fix https://github.com/vectordotdev/vector/commit/dc0b4087095b4968cca0201e233919de8cff9918
|
# fork of vector from this branch: https://github.com/frankh/vector/tree/main
|
||||||
FROM timberio/vector@sha256:f30cba5e4efcf554aea09a3f970fc75a140750ded0095840a47a8b9c9571100c
|
# 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
|
COPY --from=config-builder /config/vector.yaml /etc/vector/vector.yaml
|
||||||
|
@ -32,6 +32,7 @@ sources:
|
|||||||
query_parameters:
|
query_parameters:
|
||||||
- _
|
- _
|
||||||
host_key: ip
|
host_key: ip
|
||||||
|
response_body_key: '%response'
|
||||||
decoding:
|
decoding:
|
||||||
codec: vrl
|
codec: vrl
|
||||||
vrl:
|
vrl:
|
||||||
@ -62,6 +63,8 @@ sources:
|
|||||||
assert!(is_string(.message[0].properties."$$session_id"), "$$session_id is required")
|
assert!(is_string(.message[0].properties."$$session_id"), "$$session_id is required")
|
||||||
assert!(is_string(%token), "token is required")
|
assert!(is_string(%token), "token is required")
|
||||||
|
|
||||||
|
%response = {"status": 1}
|
||||||
|
|
||||||
transforms:
|
transforms:
|
||||||
quota_check:
|
quota_check:
|
||||||
type: route
|
type: route
|
||||||
|
Loading…
Reference in New Issue
Block a user