Update retention.md (#5706)

Retention policy actually accept suffix such as `d` and `w` but Go's time.ParseDuration does not.
See a2dd731586/pkg/storage/chunk/table_manager.go (L93)
pull/5697/head
Nicolas Vanheuverzwijn 3 years ago committed by GitHub
parent d67306b657
commit 0950034890
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      docs/sources/operations/storage/retention.md

@ -165,7 +165,7 @@ section of the Loki configuration reference for all available options.
Alternatively, the `table-manager.retention-period` and
`table-manager.retention-deletes-enabled` command line flags can be used. The
provided retention period needs to be a duration represented as a string that
can be parsed using Go's [time.Duration](https://golang.org/pkg/time/#ParseDuration).
can be parsed using prometheus common [model.Duration](https://pkg.go.dev/github.com/prometheus/common/model#ParseDuration) e.g. `7d`, `1w`, `168h`.
> **WARNING**: The retention period must be a multiple of the index and chunks table
`period`, configured in the [`period_config`](../../../configuration#period_config)

Loading…
Cancel
Save