-
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
AMQP output with timeout state affecting the data sent from telegraf to influxdb #2603
Comments
So you have an influxdb output in addition to the amqp output? |
@danielnelson Yes! I send the same data to influxdb and an AMQP server. |
Are you able to test with the latest Telegraf release? |
@danielnelson I have tried with telegraf 1.2.1-1 and the same problem occurs. But now I saw a new situation...the process is terminated after two errors on syslog and telegraf daemon dies. ====== I don't see the usual startup log. I only see these two fails and the process dies. 2017-03-30T22:29:14Z E! Failed to connect to output amqp, retrying in 15s, error was 'dial tcp amqpserver:port: i/o timeout' dpkg -l telegraf |
Are you blocking AMQP before you start Telegraf? If so, what happens if you block it only after Telegraf starts? |
I wasn't able to reproduce the exact symptoms but both the amqp_consumer and amqp output are not using a timeout, which could block the output flusher. |
You can try to block using iptables on AMQP server, blocking all incoming traffic from the server with output_amqp. But my problem isn't the amqp output doesn't posting data...Actually I need the data of telegraf with or without amqp output response OK. |
Bug report
When using telegraf and AMQP output, when the AMQP request is timed out, none data from telegraf nor amqp are sent to influxdb.
Relevant telegraf.conf:
[[outputs.amqp]] configuration
System info:
package - telegraf 1.1.1-1
SO - xenserver 7.0 and debian wheezy and jessie
Steps to reproduce:
Expected behavior:
Send to influxdb server at least the telegraf data.
Actual behavior:
Telegraf send nothing to influxdb
Additional info:
E! Failed to connect to output amqp, retrying in 15s, error was 'dial tcp amqpserver:port: i/o timeout'
E! dial tcp amqpserver:port: i/o timeout
E! Failed to connect to output amqp, retrying in 15s, error was 'dial tcp amqpserver:port: i/o timeout'
E! dial tcp amqpserver:port: i/o timeout
E! Failed to connect to output amqp, retrying in 15s, error was 'dial tcp amqpserver:port: i/o timeout'
E! dial tcp amqpserver:port: i/o timeout
The text was updated successfully, but these errors were encountered: