diff --git a/cmd/prometheus/main.go b/cmd/prometheus/main.go index 1a7a6b7db..37a7f3535 100644 --- a/cmd/prometheus/main.go +++ b/cmd/prometheus/main.go @@ -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."). 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) promlogflag.AddFlags(a, &cfg.promlogConfig) diff --git a/docs/disabled_features.md b/docs/disabled_features.md index 21222e0ea..38753512a 100644 --- a/docs/disabled_features.md +++ b/docs/disabled_features.md @@ -26,9 +26,9 @@ that PromQL does not look ahead of the evaluation time for samples. `--enable-feature=promql-negative-offset` 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 -negative offset is reviewing past data and making temporal comparisons with -more recent data. +one shift a vector selector into the future. An example in which one may want +to use a negative offset is reviewing past data and making temporal comparisons +with more recent data. More details can be found [here](querying/basics.md#offset-modifier).