Skip to content
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

Question: If telegraf cannot send data to influx (lets say it was misconfigured) then will it lose data? #4447

Closed
shane99a opened this issue Jul 20, 2018 · 2 comments
Labels
discussion Topics for discussion

Comments

@shane99a
Copy link

shane99a commented Jul 20, 2018

I have a kafka input, and influx outout. I want to ensure that there is no data loss. Lets say influx config was misconfigured then all the kafka data that telegraf was sending would not be saved in influx. When I fixed the issue and restarted telegraf, kafka input would not send those data anymore. So it looks like there is data loss.

Is this expected behaviour? Is there any settings to make it not ignore data that wasn't handled properly by the output plugin?

@glinton glinton added the discussion Topics for discussion label Jul 20, 2018
@glinton
Copy link
Contributor

glinton commented Jul 20, 2018

This almost sounds like #3984, but telegraf doesn't cache metrics locally, so even if that issue were resolved, as soon as you restart telegraf, current metrics collected/in queue would be lost. At least as far as I can tell.

@danielnelson
Copy link
Contributor

That is correct, because we ack too soon data is removed from the upstream queue, and any metrics that are "in flight" will be lost if Telegraf is restarted. It is also possible that metrics consumed from the queue will be dropped from the metric buffer if they are replaced by newer metrics.

Please keep an eye on #3984 for updates about this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Topics for discussion
Projects
None yet
Development

No branches or pull requests

3 participants