using influxdb gem instead of raw http