Can I create different retention policy for different measurements in influxdb? -


is possible treat different measurements in influxdb different retention policy?

this entirely possible influxdb. you'll need create database has 2 retention policies , write data associated retention policy.

example:

$ influx > create database mydb > create retention policy rp_1 on mydb duration 1h replication 1 > create retention policy rp_2 on mydb duration 2h replication 1 

now our retention policies have been created simple write data in following manner:

sensor 1 write data rp_1

curl http://localhost:8086/write?db=mydb&rp=rp_1 --data-binary somedata 

sensor 2 write data rp_2

curl http://localhost:8086/write?db=mydb&rp=rp_2 --data-binary somedata 

Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -