From be5ba1a62d5a27e62631634d558621d703bfd228 Mon Sep 17 00:00:00 2001 From: Julien Pivotto Date: Wed, 7 Oct 2020 21:44:36 +0200 Subject: [PATCH] Fix wordings Signed-off-by: Julien Pivotto --- cmd/prometheus/main.go | 2 +- scrape/scrape.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/prometheus/main.go b/cmd/prometheus/main.go index 165c275f2..f09c88d01 100644 --- a/cmd/prometheus/main.go +++ b/cmd/prometheus/main.go @@ -239,7 +239,7 @@ func main() { a.Flag("rules.alert.resend-delay", "Minimum amount of time to wait before resending an alert to Alertmanager."). Default("1m").SetValue(&cfg.resendDelay) - a.Flag("scrape.adjust-timestamps", "Adjust scrape timestamps by up to 2ms to align them to the intended schedule. See https://github.com/prometheus/prometheus/issues/7846 for more context. Experimental. This flag will be removed in the future."). + a.Flag("scrape.adjust-timestamps", "Adjust scrape timestamps by up to 2ms to align them to the intended schedule. See https://github.com/prometheus/prometheus/issues/7846 for more context. Experimental. This flag will be removed in a future release."). Hidden().Default("true").BoolVar(&scrape.AlignScrapeTimestamps) a.Flag("alertmanager.notification-queue-capacity", "The capacity of the queue for pending Alertmanager notifications."). diff --git a/scrape/scrape.go b/scrape/scrape.go index 4fc4ef5e6..d52b0ac7f 100644 --- a/scrape/scrape.go +++ b/scrape/scrape.go @@ -52,7 +52,7 @@ import ( // See https://github.com/prometheus/prometheus/issues/7846 const scrapeTimestampTolerance = 2 * time.Millisecond -// Enable or disable the tolerance for scrape appends timestamps described above. +// AlignScrapeTimestamps enables the tolerance for scrape appends timestamps described above. var AlignScrapeTimestamps = true var errNameLabelMandatory = fmt.Errorf("missing metric name (%s label)", labels.MetricName)