prometheus/scrape
zenador 32ee1b15de
Fix error on ingesting out-of-order exemplars (#13021)
Fix and improve ingesting exemplars for native histograms.

See code comment for a detailed explanation of the algorithm.

Note that this changes the current behavior for all kind of samples slightly: We now allow exemplars with the same timestamp as during the last scrape if the value or the labels have changed.

Also note that we now do not ingest exemplars without timestamps for native histograms anymore.

Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Co-authored-by: Björn Rabenstein <github@rabenste.in>

---------

Signed-off-by: Jeanette Tan <jeanette.tan@grafana.com>
Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Signed-off-by: zenador <zenador@users.noreply.github.com>
Co-authored-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
Co-authored-by: Björn Rabenstein <github@rabenste.in>
2023-11-16 15:07:37 +01:00
..
testdata Re-generate test cert to fix test_windows test failures 2022-03-17 19:37:18 +01:00
clientprotobuf.go Update according to code review 2023-05-05 02:33:00 +08:00
helpers_test.go scrape: Refactor names of float samples 2023-07-13 14:27:51 +02:00
manager.go use Go standard errors package 2023-11-03 07:26:31 +00:00
manager_test.go Scrape metrics can now be registered with a non-default registry. 2023-10-11 16:19:00 +01:00
metrics.go Scrape metrics can now be registered with a non-default registry. 2023-10-11 16:19:00 +01:00
scrape.go Fix error on ingesting out-of-order exemplars (#13021) 2023-11-16 15:07:37 +01:00
scrape_test.go Fix error on ingesting out-of-order exemplars (#13021) 2023-11-16 15:07:37 +01:00
target.go use Go standard errors package 2023-11-03 07:26:31 +00:00
target_test.go Fix wording from "jitterSeed" -> "offsetSeed" for server-wide scrape offsets 2023-05-25 11:54:00 +02:00