mirror of
https://github.com/prometheus/prometheus
synced 2024-12-24 23:42:32 +00:00
5ed21c0d76
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. |
||
---|---|---|
.. | ||
testdata | ||
clientprotobuf.go | ||
helpers_test.go | ||
manager_test.go | ||
manager.go | ||
metrics.go | ||
scrape_test.go | ||
scrape.go | ||
target_test.go | ||
target.go |