-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Failed to send to Kinesis with missing partition tag #4894
Comments
Thanks, I believe this is an issue with the implementation rather than simply a docs bug, but I may be wrong. |
Seems like an easy fix, add |
We should remove this log message, since it is not an error. Documentation needs to be updated to mention the fallback to random uuid if configured. Also, we ought to use |
I've been looking at this issue and the code is actually returning |
Maybe we should have a default value option when using the tag method, since this is the only type that can fail:
|
Sounds good. Shall we make the |
Will need to default to |
Fixes influxdata#4894 Signed-off-by: Marcos Lilljedahl <[email protected]>
@marcosnils Are you sure Kinesis doesn't support empty string as a Partition key? In this option, I think there should be a warning log |
Yup. From the AWS documentation (https://docs.aws.amazon.com/kinesis/latest/APIReference/API_PutRecord.html#Streams-PutRecord-request-PartitionKey)
That's what I did in my PR.
Is this necessary if the behavior is expected and documented?. I've added the corresponding documentation in the PR. |
Relevant telegraf.conf:
System info:
Telegraf 1.6
Steps to reproduce:
Expected behavior:
As explained in https://github.com/influxdata/telegraf/tree/master/plugins/outputs/kinesis#tag
It should send the record to Kinesis and use an empty string with partition key
Actual behavior:
It throws exceptions:
The text was updated successfully, but these errors were encountered: