Down sample data in same measurement and delete old data

influxdb

#1

Hi Manoj here,

Our requirement,

  • Retain data for 2 years, with one minute interval.
  • After 2 years, data should be down sampled to 5 minute interval.
  • One minute interval data should be deleted.

We have come across multiple example of down sampling and retention policy. But we need to achieve this, without applying retention policy on individual measurements and don’t want to down sample data in different measurement, rather in same measurement.

How this can be achieved by batch task in kapacitor ?

Any help shall be appreciated.

Thanks ,

Manoj.