Griesbacher / nagflux

A connector which copies performancedata from Nagios / Icinga(2) / Naemon to InfluxDB
GNU General Public License v2.0
66 stars 32 forks source link

Add InfluxDBGlobal.ClientTimeout option for slow InfluxDB instances #41

Closed u238 closed 6 years ago

u238 commented 6 years ago

Hi,

we are experiencing timeouts during the HTTP api calls to heavy loaded InfluxDB instances. Increasing the timeout and decreasing the number of workers have proven to be effective and more stable.

In this PR i added possibility to specify the timeout in seconds of the http client used for pushing data to influxdb:

[InfluxDBGlobal]
    [...]
    ClientTimeout  = 5
Griesbacher commented 6 years ago

Thanks for the enhancement!