mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-12-15 00:13:30 +01:00
docs: add clarification of the retention filter usage (#5103)
docs: add clarification of the retention filter usage Updated documentation regarding retention filter usage if duration is set lower than `-retentionPeriod` flag value. Signed-off-by: hagen1778 <roman@victoriametrics.com> Co-authored-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
parent
0df0b0f29e
commit
e7b35455bd
@ -1688,9 +1688,10 @@ See [these docs](https://docs.victoriametrics.com/guides/guide-vmcluster-multipl
|
|||||||
which allow configuring multiple retentions for distinct sets of time series matching the configured [series filters](https://docs.victoriametrics.com/keyConcepts.html#filtering)
|
which allow configuring multiple retentions for distinct sets of time series matching the configured [series filters](https://docs.victoriametrics.com/keyConcepts.html#filtering)
|
||||||
via `-retentionFilter` command-line flag. This flag accepts `filter:duration` options, where `filter` must be
|
via `-retentionFilter` command-line flag. This flag accepts `filter:duration` options, where `filter` must be
|
||||||
a valid [series filter](https://docs.victoriametrics.com/keyConcepts.html#filtering), while the `duration`
|
a valid [series filter](https://docs.victoriametrics.com/keyConcepts.html#filtering), while the `duration`
|
||||||
must contain valid [retention](#retention) for time series matching the given `filter`. If series doesn't match
|
must contain valid [retention](#retention) for time series matching the given `filter`.
|
||||||
any configured `-retentionFilter`, then the retention configured via [-retentionPeriod](#retention) command-line flag is applied to it.
|
The `duration` of the `-retentionFilter` must be lower or equal to [-retentionPeriod](#retention) flag value.
|
||||||
If series matches multiple configured retention filters, then the smallest retention is applied.
|
If series doesn't match any configured `-retentionFilter`, then the retention configured via [-retentionPeriod](#retention)
|
||||||
|
command-line flag is applied to it. If series matches multiple configured retention filters, then the smallest retention is applied.
|
||||||
|
|
||||||
For example, the following config sets 3 days retention for time series with `team="juniors"` label,
|
For example, the following config sets 3 days retention for time series with `team="juniors"` label,
|
||||||
30 days retention for time series with `env="dev"` or `env="staging"` label and 1 year retention for the remaining time series:
|
30 days retention for time series with `env="dev"` or `env="staging"` label and 1 year retention for the remaining time series:
|
||||||
|
@ -430,7 +430,6 @@ vmselect requests stats via [/api/v1/status/tsdb](#tsdb-stats) API from each vms
|
|||||||
This may lead to inflated values when samples for the same time series are spread across multiple vmstorage nodes
|
This may lead to inflated values when samples for the same time series are spread across multiple vmstorage nodes
|
||||||
due to [replication](#replication) or [rerouting](https://docs.victoriametrics.com/Cluster-VictoriaMetrics.html?highlight=re-routes#cluster-availability).
|
due to [replication](#replication) or [rerouting](https://docs.victoriametrics.com/Cluster-VictoriaMetrics.html?highlight=re-routes#cluster-availability).
|
||||||
|
|
||||||
|
|
||||||
## How to apply new config to VictoriaMetrics
|
## How to apply new config to VictoriaMetrics
|
||||||
|
|
||||||
VictoriaMetrics is configured via command-line flags, so it must be restarted when new command-line flags should be applied:
|
VictoriaMetrics is configured via command-line flags, so it must be restarted when new command-line flags should be applied:
|
||||||
@ -1697,9 +1696,10 @@ See [these docs](https://docs.victoriametrics.com/guides/guide-vmcluster-multipl
|
|||||||
which allow configuring multiple retentions for distinct sets of time series matching the configured [series filters](https://docs.victoriametrics.com/keyConcepts.html#filtering)
|
which allow configuring multiple retentions for distinct sets of time series matching the configured [series filters](https://docs.victoriametrics.com/keyConcepts.html#filtering)
|
||||||
via `-retentionFilter` command-line flag. This flag accepts `filter:duration` options, where `filter` must be
|
via `-retentionFilter` command-line flag. This flag accepts `filter:duration` options, where `filter` must be
|
||||||
a valid [series filter](https://docs.victoriametrics.com/keyConcepts.html#filtering), while the `duration`
|
a valid [series filter](https://docs.victoriametrics.com/keyConcepts.html#filtering), while the `duration`
|
||||||
must contain valid [retention](#retention) for time series matching the given `filter`. If series doesn't match
|
must contain valid [retention](#retention) for time series matching the given `filter`.
|
||||||
any configured `-retentionFilter`, then the retention configured via [-retentionPeriod](#retention) command-line flag is applied to it.
|
The `duration` of the `-retentionFilter` must be lower or equal to [-retentionPeriod](#retention) flag value.
|
||||||
If series matches multiple configured retention filters, then the smallest retention is applied.
|
If series doesn't match any configured `-retentionFilter`, then the retention configured via [-retentionPeriod](#retention)
|
||||||
|
command-line flag is applied to it. If series matches multiple configured retention filters, then the smallest retention is applied.
|
||||||
|
|
||||||
For example, the following config sets 3 days retention for time series with `team="juniors"` label,
|
For example, the following config sets 3 days retention for time series with `team="juniors"` label,
|
||||||
30 days retention for time series with `env="dev"` or `env="staging"` label and 1 year retention for the remaining time series:
|
30 days retention for time series with `env="dev"` or `env="staging"` label and 1 year retention for the remaining time series:
|
||||||
|
Loading…
Reference in New Issue
Block a user