-
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
NATS ouput not reconnecting on failure #1953
Comments
can you provide your config file, telegraf version, and steps to reproduce? |
nats client has |
The sender (version 1.1.0 - master):
The receiver (version 1.0.1):
NATS server running:
Stopping NATS server:
Telegraf receiver reports NATS server is down:
Telegraf sender keeps sending although NATS server is down (not sure why this happens):
After a minute, telegraf sender detects the NATS server is down and start reporting the errors:
Starting NATS server back up:
Both telegraf sender and receiver never recover. |
OK, looks like a bug, PRs appreciated |
@sparrc, actually the nats consumer recovers at some point, only the sender does not. Sorry, missed to see that. |
@wallyqs so why not set the default to |
@pires please make the change in the nats output and the nats_consumer input as well, thanks! |
@sparrc 👍 |
* NATS output plug-in now retries to reconnect forever after a lost connection. * NATS input plug-in now retries to reconnect forever after a lost connection. * Fixes #1953
Thanks @pires :) I think it is a case by case thing... I thought that for |
Looks like if the NATS server happens to be unreachable and later comes back, telegraf never recovers:
The text was updated successfully, but these errors were encountered: