New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
LOG-3311: Support Http output for vector #1733
Conversation
Skipping CI for Draft Pull Request. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a "method" and "maxBatch" as per https://docs.google.com/document/d/1VdeOohi70ZQdvJggxYZbxBp7vPTZ4XMVDOBh8ZYvtaw/edit#
apis/logging/v1/output_types.go
Outdated
// | ||
// +kubebuilder:validation:Enum:=json | ||
// +optional | ||
Encoding string `json:"encoding,omitempty"` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't need this yet - we can add it later if/when we have more than one encoding.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a "method" and "maxBatch" as per https://docs.google.com/document/d/1VdeOohi70ZQdvJggxYZbxBp7vPTZ4XMVDOBh8ZYvtaw/edit#
Do we want maxBatch
in terms of bytes, or number of events? vector supports 3 kinds
https://v0-23.vector.dev/docs/reference/configuration/sinks/http/#batch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bytes. The limits on loki or the like are in bytes and the size of events is not predictable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vimalk78 does fluent support "max" bytes in this context. The choice will need to apply to both
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fluentd
doesn't seem to support any config parameters for batching. but recommends putting multiple records in same message with json
https://docs.fluentd.org/input/http#handle-large-data-with-batch-mode
/hold |
680208c
to
ee8294e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nearly LGTM - can you add a functional test to forward to fluentd? The first use case for this is likely to provide a workaround for lack of fluent-forward to customers forwarding to fluentd.
) | ||
|
||
const ( | ||
VectorImage = "docker.io/timberio/vector:0.25.0-alpine" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer quay.io image if possible. Docker rate limits can cause failures if runing tests intensively.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated to use quay image
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@alanconway you mean sending to fluentd using http?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated PR to add a functional test which sends logs from vector
to fluentd
using http
279a5d7
to
bf69bbd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also update our docs with this PR https://github.com/openshift/cluster-logging-operator/blob/master/docs/features/collection.adoc#outputs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alanconway, vimalk78 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
@jcantrill updated |
/hold cancel |
@vimalk78: The following test failed, say
Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/hold cancel |
Description
Draft for review: API for
http
output/cc
/assign
/cherry-pick
Links