0

e.g. database = 'test' measurement = 'm1'

I want to have 1 year retention policy for points in m1 with tag='A', and 2 years retention policy for points in m1 with tag='B'

Zhongmin
  • 1,684
  • 1
  • 16
  • 33

1 Answers1

-1

No, retention policies apply to all records written to them. To accomplish what you want you would need to write points tagged with A to one DB/RP, and those tagged with B to a different one.

mhall119
  • 522
  • 2
  • 3
  • https://stackoverflow.com/questions/37729008/can-i-create-different-retention-policy-for-different-measurements-in-influxdb – Zhongmin Dec 14 '21 at 21:21