-
Notifications
You must be signed in to change notification settings - Fork 141
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-2587: Fix ES functional tests for vector #1454
Conversation
/retest |
d4fd1d4
to
cb22339
Compare
@vimalk78: all tests passed! 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 |
@@ -31,7 +31,8 @@ type ContainerLog struct { | |||
Hostname string `json:"hostname"` | |||
PipelineMetadata PipelineMetadata `json:"pipeline_metadata"` | |||
LogType string `json:"log_type,omitempty"` | |||
ViaqIndexName string `json:"viaq_index_name"` | |||
ViaqIndexName string `json:"viaq_index_name,omitempty"` | |||
WriteIndex string `json:"write_index,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.
Why do we need "write" index?
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.
this is the field we used for vector, as the name viaq-index-name
didnt make much sense for vector.
Also vector ES sink does not delete the key which contains the index name, as fluentd ES plugin can do. So if we keep viaq-index-name
, it will be added to the record also.
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 I defer to you here as this is a breaking viaq model change. I like "write-idex" better but its note currently in the model.
ES sink does not delete the key which contains the index name, as fluentd ES plugin can do
Is this field removed now? I thought I had seen it in the set of fields when I retrieve logs from ES
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 any comments?
NamespaceName string `json:"namespace_name,omitempty"` | ||
PodName string `json:"pod_name,omitempty"` | ||
ContainerImage string `json:"container_image,omitempty"` | ||
ContainerImageID string `json:"container_image_id,omitempty"` | ||
PodNodeName string `json:"pod_node_name,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.
Why do we need pod node name? how is this different from "host"?
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.
pod_node_name
contains value from spec.nodeName
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.
pod_node_name contains value from spec.nodeName
spec.nodeName
should be the same as the field host
. I don't understand why it is different
@@ -0,0 +1,85 @@ | |||
package vector |
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.
Why does vector require its own set of message templates if our goal is to adhere to the same Viaq data model?
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.
there are some differences in the data model, as captured in the google docs sheet.
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 point me to some specifics for further evaluation
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 but I'll let @jcantrill finish his deliberations before merging.
[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 |
Closing this in favor of #1466 |
Description
This PR
outputs/elasticsearch
tests to run for both fluentd and vector/cc @jcantrill @cahartma
/assign
/cherry-pick
Links