'Write the points to the InfluxDB server.'

def export(self, name, columns, points):

    logger.debug('Export    {}    stats    to    InfluxDB'.format(name))
    if (self.prefix is not None):
        name = ((self.prefix + '.') + name)
    if (self.version == INFLUXDB_08):
        data = [{'name': name, 'columns': columns, 'points': [points]}]
    else:
        for (i, _) in enumerate(points):
            try:
                points[i] = float(points[i])
            except (TypeError, ValueError) as e:
                logger.debug(('InfluxDB    error    during    stat    convertion    %s=%s    (%s)' % (columns[i], points[i], e)))
        data = [{'measurement': name, 'tags': self.parse_tags(self.tags), 'fields': dict(zip(columns, points))}]
    try:
        self.client.write_points(data)
    except Exception as e:
        logger.error('Cannot    export    {}    stats    to    InfluxDB    ({})'.format(name, e))
