InfluxDB as long time storage

Hello. I have datasets with metrics from 1 to 20 years. Can u suggest best practices to store such data ? Like retrieving month-sized periods, working with conditions based on values ranges and so on.