prometheus/scrape
Julien Pivotto 48a101be1b
Allow to tune the scrape tolerance (#9283)
* Allow to tune the scrape tolerance

In most of the classic monitoring use cases, a few milliseconds
difference can be omitted.

In Prometheus, a few millisecond difference can however make a big
difference.

Currently, Prometheus will ignore up to 2 ms difference in the
alignments.

It turns out that for users who can afford a 10ms difference, there is a
lot of resources and disk space to win, as shown in this graph, which
shows the bytes / samples over a production Prometheus server. You can
clearly see the switch from 2ms to 10ms tolerance.

This pull request enables the adjustment of the scrape timestamp
alignment tolerance.

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>

* Fix golint

Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2021-09-08 17:27:33 +05:30
..
testdata Use SAN in test certificate (#7789) 2020-08-12 23:15:38 +02:00
helpers_test.go Add circular in-memory exemplars storage (#6635) 2021-03-16 15:17:45 +05:30
manager_test.go Add scrape_timeout_seconds metric 2021-09-02 12:15:35 +02:00
manager.go Add scrape_timeout_seconds metric 2021-09-02 12:15:35 +02:00
scrape_test.go Create less garbage when parsing metrics (#9299) 2021-09-08 13:39:21 +05:30
scrape.go Allow to tune the scrape tolerance (#9283) 2021-09-08 17:27:33 +05:30
target_test.go Configure Scrape Interval and Timeout Via Relabeling (#8911) 2021-08-31 17:37:32 +02:00
target.go Configure Scrape Interval and Timeout Via Relabeling (#8911) 2021-08-31 17:37:32 +02:00