mirror of https://github.com/prometheus/prometheus
Browse Source
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>pull/13120/head
Julien Pivotto
1 year ago
1 changed files with 51 additions and 0 deletions
Loading…
Reference in new issue