Hello,
i have installed telegraf on a machine and tried to send data to influxdb which is on other machine
i checked version of influxdb it is 1.2.2
telegraf version is 1.2.1
but am facing the problem with telegraf not sending data to influxdb and shows error message as below
@hema This is the error message when telgraf cannot reach InfluxDB. This is most likely due to a firewall at your cloud provider. I would check there first.
FWIW, some of my hosts report this sometimes, but the error usually goes away fairly soon afterwards. In my case I think Influx stops responding for a few seconds (maybe system resource problems - Iām looking into it).
Things to check are:
curl -kI https://your_influx_server_name:8086/ping
(you should see something like āHTTP/1.1 204 No Contentā in the response)
If thatās working, then you have TCP connectivity and Influx is running. If Telegraf is still not sending, then maybe check things like usernames and passwords and make sure Telegraf can authenticate correctly.
Some network troubleshooting is needed before digging into the app. If you have access to you influx server do some basic checks. (assuming linux)
Make sure your daemon is up and running on the ports you expect
netstat -ntlp
or
ss -ntlp
You should see some line simialr to
tcp6 0 0 :::8086 :::* LISTEN 6501/influxd
The ss command will provide something similar but more verbose.
If you see that your server should accept connections. Jump over to the client and run
telnet <influx_server> 8086
you should see something like
Trying <influx_server>ā¦
Connected to <influx_server>.
Escape character is ā^]ā.
You can Ctl ] to escape the socket connection or enter āGET /*ā (less the āā) and you will get a HTTP error msg.
What this proves is you can connect to the influxdb web interface. And you can start looking at influx config issues.
If you donāt get a connection or it times out. The port is blocked. As mentioned earlier look for a firewall.
If you are sure itās not firewall it could be SELINUX getting in the way. Edit the /etc/selinux/config file (or your distroās equivalent) and disable SELINUX .
SELINUX=disabled
SELINUXTYPE=targeted
Reboot and try to connect again. If that is still not working for you. Then you will need to see if the packets are even getting to the port (tcpdump). Chances are firewall or selinux will do the trick for you.
@coofercat We have this exact problem. Telegraf can successfully authenticate and send metrics, but fail seemingly random. Did you find a cause?
@Karl_Raffelsieper Weāre not using SELinux and metrics make it all the way into InfluxDB until they donāt. InfluxDB is receiving traffic properly from other devices with Telegraf instances on same config. Iām looking into getting TCP dumps- any suggestions on particulars to dump?
Hi,
I am trying to run Jmeter Load test and do the Live monitoring using Grafana_influxDB.
But facing issue while connecting to influxdb getting below error in JMeter .Looks like timeout observed while writing to InfluxDB .Very records get inserted into DB but hen timeouts are observed .Please help to improve Influxdb configuration to avoid these Timeouts.
My Influxdb version - 1.7.5
Error in Jmeter - failed to send data to influxDB server : 3,000 milliseconds timeout on connection http-outgoing-0 [ACTIVE]