I am using the official InfluxDB docker image. I want to set the retention policy to be 14 days
by default.
There are various ENV
variables that I can set to change the config for InfluxDB, such as INFLUXDB_RETENTION_POLICY
. This expects the name of a retention policy such as "default" to be used as the default retention policy.
The problem is that this default policy has a duration of 7 days. I need to set it to 14 days.
The documentation is rather poor. I cannot find any ENV
variable to adjust the default duration. I could also set the INFLUXDB_RETENTION_POLICY
variable to a different name of a different retention policy, but I don't see how I can create that retention policy through configuration.
Is anyone aware of: 1) a way to change the default duration for retention via configuration or 2) a way to create a retention policy through configuration