mirror of
https://github.com/prometheus/prometheus
synced 2025-02-04 14:13:32 +00:00
Improve promql-negative-offset docs (#8631)
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
This commit is contained in:
parent
31a518faab
commit
c0c36b1155
@ -307,7 +307,7 @@ func main() {
|
|||||||
a.Flag("query.max-samples", "Maximum number of samples a single query can load into memory. Note that queries will fail if they try to load more samples than this into memory, so this also limits the number of samples a query can return.").
|
a.Flag("query.max-samples", "Maximum number of samples a single query can load into memory. Note that queries will fail if they try to load more samples than this into memory, so this also limits the number of samples a query can return.").
|
||||||
Default("50000000").IntVar(&cfg.queryMaxSamples)
|
Default("50000000").IntVar(&cfg.queryMaxSamples)
|
||||||
|
|
||||||
a.Flag("enable-feature", "Comma separated feature names to enable. Valid options: 'promql-at-modifier' to enable the @ modifier, 'remote-write-receiver' to enable remote write receiver, 'exemplar-storage' to enable the in-memory exemplar storage. See https://prometheus.io/docs/prometheus/latest/disabled_features/ for more details.").
|
a.Flag("enable-feature", "Comma separated feature names to enable. Valid options: promql-at-modifier, promql-negative-offset, remote-write-receiver, exemplar-storage. See https://prometheus.io/docs/prometheus/latest/disabled_features/ for more details.").
|
||||||
Default("").StringsVar(&cfg.featureList)
|
Default("").StringsVar(&cfg.featureList)
|
||||||
|
|
||||||
promlogflag.AddFlags(a, &cfg.promlogConfig)
|
promlogflag.AddFlags(a, &cfg.promlogConfig)
|
||||||
|
@ -26,9 +26,9 @@ that PromQL does not look ahead of the evaluation time for samples.
|
|||||||
`--enable-feature=promql-negative-offset`
|
`--enable-feature=promql-negative-offset`
|
||||||
|
|
||||||
In contrast to the positive offset modifier, the negative offset modifier lets
|
In contrast to the positive offset modifier, the negative offset modifier lets
|
||||||
one shift a vector into the future. An example in which one may want to use a
|
one shift a vector selector into the future. An example in which one may want
|
||||||
negative offset is reviewing past data and making temporal comparisons with
|
to use a negative offset is reviewing past data and making temporal comparisons
|
||||||
more recent data.
|
with more recent data.
|
||||||
|
|
||||||
More details can be found [here](querying/basics.md#offset-modifier).
|
More details can be found [here](querying/basics.md#offset-modifier).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user