Skip to content

Follow-up to #13060: Add test to ensure staleness tracking#13120

Merged
roidelapluie merged 1 commit intoprometheus:mainfrom
roidelapluie:stalenesstracking
Nov 9, 2023
Merged

Follow-up to #13060: Add test to ensure staleness tracking#13120
roidelapluie merged 1 commit intoprometheus:mainfrom
roidelapluie:stalenesstracking

Conversation

@roidelapluie
Copy link
Copy Markdown
Member

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.

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>
@roidelapluie roidelapluie requested a review from SuperQ November 9, 2023 16:20
@roidelapluie roidelapluie merged commit e8585e4 into prometheus:main Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants