prometheus/cmd/prometheus
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 End-to-end Query Log test (#6600) 2020-01-19 21:56:13 +00:00
main.go Allow to tune the scrape tolerance (#9283) 2021-09-08 17:27:33 +05:30
main_test.go Switched to go-kit/log 2021-06-11 12:28:36 -04:00
main_unix_test.go Add new Go build tags. 2021-08-27 10:24:14 +02:00
query_log_test.go Testify: move to require (#8122) 2020-10-29 09:43:23 +00:00