prometheus/scrape
Bryan Boreham 5ed21c0d76
Merge pull request #12933 from prymitive/duplicated_samples
When Prometheus scrapes a target and it sees the same time series repeated multiple times it currently silently ignores that. This change adds a test for that and fixes the scrape loop so that:

* Only first sample for each unique time series is appended
* Duplicated samples increment the prometheus_target_scrapes_sample_duplicate_timestamp_total metric
This allows one to identify such scrape jobs and targets.

Also fix some tests and benchmark.
2024-03-16 09:18:46 +00: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 tests: check NaN values directly 2024-02-08 19:30:20 +00:00
manager.go Merge pull request #13167 from bboreham/simplify-TargetsActive 2023-12-20 12:27:50 +00:00
manager_test.go scraping: reset symbol table periodically 2024-02-26 11:45:25 +00:00
metrics.go scrape: consistent function names for metadata 2023-11-23 09:08:02 +00:00
scrape.go Merge pull request #12933 from prymitive/duplicated_samples 2024-03-16 09:18:46 +00:00
scrape_test.go Move staleness tracking out of checkAddError() calls 2024-02-27 11:36:16 +00:00
target.go scraping: pass a Builder to get Target labels 2024-02-26 11:45:25 +00:00
target_test.go scraping: pass a Builder to get Target labels 2024-02-26 11:45:25 +00:00