prometheus/scrape
Julien Pivotto 0fe34f6d78 Follow-up to #13060: Add test to ensure staleness tracking
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>
2023-11-09 10:20:35 -06:00
..
testdata
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 ci(lint): enable errorlint on scrape (#12923) 2023-11-01 20:06:46 +01:00
scrape_test.go Follow-up to #13060: Add test to ensure staleness tracking 2023-11-09 10:20:35 -06: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