mirror of
https://github.com/prometheus/prometheus
synced 2024-12-26 16:43:21 +00:00
0fe34f6d78
This commit introduces an additional test in `scrape_test.go` to verify staleness tracking when `trackTimestampStaleness` is enabled. The new `TestScrapeLoopAppendStalenessIfTrackTimestampStaleness` function asserts that the scrape loop correctly appends staleness markers when necessary, reflecting the expected behavior with the feature flag turned on. The previous tests were only testing end of scrape staleness. Signed-off-by: Julien Pivotto <roidelapluie@o11y.eu> |
||
---|---|---|
.. | ||
testdata | ||
clientprotobuf.go | ||
helpers_test.go | ||
manager_test.go | ||
manager.go | ||
metrics.go | ||
scrape_test.go | ||
scrape.go | ||
target_test.go | ||
target.go |