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)