You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I use telegraf to relay metrics to kafka. Was previously running 1.11.2. After upgrading to 1.13.1, I noticed the metric buffers filling up on my telegraf instances. It appears to be due to invalid timestamps that are received to telegraf.
The metric should get dropped or we should have the option to write metrics into kafka excluding the timestamp, such as previous versions, which wrote the message to the topic regardless of the timestamp.
Actual behavior:
The below error will get logged.
[agent] Error writing to outputs.kafka: kafka: Failed to produce message to topic topicname: kafka: error encoding packet: invalid timestamp (1740-07-22 09:32:28.290448384 -0752 LMT)
The write to kafka fails, but the metric itself does not get dropped causing the metric buffer to fill up.
Additional info:
This functionality was implemented in #6746, however, it causes telegraf to handle messages with invalid timestamps much differently. Previously, metrics would get written regardless of the timestamp value, which is no longer the case.
As this is a limitation with kafka, adding an option to exclude the timestamp from being written into kafka would make this function like previous versions.
The text was updated successfully, but these errors were encountered:
sjafferali
changed the title
Write to kafka fail if timestamps are invalid
After 1.13.1 upgrade, writes to kafka fail if timestamps are invalid
Jan 15, 2020
Thanks for opening the issue, we will make sure to have a fix for this in 1.13.2. However, I just wanted to double check that you are expecting to have metrics from 1740 and that there isn't another issue around the creation of these old timestamps.
Thanks for opening the issue, we will make sure to have a fix for this in 1.13.2. However, I just wanted to double check that you are expecting to have metrics from 1740 and that there isn't another issue around the creation of these old timestamps.
Yes, we have some apps that emit invalid timestamps due to a bug in the apps themselves. Although, it generally doesn't cause any issues, as we filter them out further down in our pipeline.
I use telegraf to relay metrics to kafka. Was previously running 1.11.2. After upgrading to 1.13.1, I noticed the metric buffers filling up on my telegraf instances. It appears to be due to invalid timestamps that are received to telegraf.
Relevant telegraf.conf:
System info:
Ubuntu 16
Telegraf Version 1.13.1
Steps to reproduce:
Upgrade to 1.13.1
Send a metric similar to the below line.
Expected behavior:
The metric should get dropped or we should have the option to write metrics into kafka excluding the timestamp, such as previous versions, which wrote the message to the topic regardless of the timestamp.
Actual behavior:
The below error will get logged.
The write to kafka fails, but the metric itself does not get dropped causing the metric buffer to fill up.
Additional info:
This functionality was implemented in #6746, however, it causes telegraf to handle messages with invalid timestamps much differently. Previously, metrics would get written regardless of the timestamp value, which is no longer the case.
As this is a limitation with kafka, adding an option to exclude the timestamp from being written into kafka would make this function like previous versions.
The text was updated successfully, but these errors were encountered: