influxdb version 1.6.2
config change:
INFLUXDB_DATA_INDEX_VERSION=tsi1
Only able to write time series if timestamp not provided
>>> r = requests.post('http://172.22.7.139:8086/write?db=poc&rp=30days', data='foo,t1=v1,t2=v2 k1=1,k2=2 {}'.format(int(time.time())))
>>> r.text
u'{"error":"partial write: points beyond retention policy dropped=1"}\n'
> SHOW RETENTION POLICIES
name duration shardGroupDuration replicaN default
---- -------- ------------------ -------- -------
autogen 0s 168h0m0s 1 false
30d 720h0m0s 24h0m0s 1 true
30days 720h0m0s 24h0m0s 1 false