Write to influxdb backend from a goroutine