Help required - metrics storage - retention - downsampling

0 down vote favorite

I am trying to achieve below. We have lot of measurements in each database.Can some one suggest how to do this at a database level in InfluxDB. We are using OSS Version

Data points with a period of less than 60 seconds are available for 3 hours. These data points are high-resolution custom metrics.

Data points with a period of 60 seconds (1 minute resolution) are available for 15 days

Data points with a period of 300 seconds (5 minute resolution) are available for 63 days

Please advise on how to achieve this