From 3b5257d86978a00a99817bd4d465040b564db6b0 Mon Sep 17 00:00:00 2001 From: Levi Harrison Date: Tue, 13 Jul 2021 22:03:51 -0400 Subject: [PATCH] Changed disabled_features to feature_flags Signed-off-by: Levi Harrison --- cmd/prometheus/main.go | 2 +- cmd/promtool/main.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/prometheus/main.go b/cmd/prometheus/main.go index 7b820244b..a017db39b 100644 --- a/cmd/prometheus/main.go +++ b/cmd/prometheus/main.go @@ -316,7 +316,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, promql-negative-offset, remote-write-receiver, exemplar-storage, expand-external-labels. 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, expand-external-labels. See https://prometheus.io/docs/prometheus/latest/feature_flags/ for more details."). Default("").StringsVar(&cfg.featureList) promlogflag.AddFlags(a, &cfg.promlogConfig) diff --git a/cmd/promtool/main.go b/cmd/promtool/main.go index bfc753140..1267631aa 100644 --- a/cmd/promtool/main.go +++ b/cmd/promtool/main.go @@ -166,7 +166,7 @@ func main() { "A list of one or more files containing recording rules to be backfilled. All recording rules listed in the files will be backfilled. Alerting rules are not evaluated.", ).Required().ExistingFiles() - featureList := app.Flag("enable-feature", "Comma separated feature names to enable (only PromQL related). See https://prometheus.io/docs/prometheus/latest/disabled_features/ for the options and more details.").Default("").Strings() + featureList := app.Flag("enable-feature", "Comma separated feature names to enable (only PromQL related). See https://prometheus.io/docs/prometheus/latest/feature_flags/ for the options and more details.").Default("").Strings() parsedCmd := kingpin.MustParse(app.Parse(os.Args[1:]))