Skip to content

Conversation

@krajorama
Copy link
Member

@krajorama krajorama commented Nov 13, 2025

Make the exemplar timestamp a SHOULD in preparation for complex types having multiple exemplars at a time.

Note: the current Prometheus implementation can deal with one exemplar per time series without timestamp. Because at scrape if the exemplar doesn't have a timestamp than Prometheus will compare the exemplar's value to the last exemplar for the series. If the value and labels are the same, the exemplar is dropped. This strategy doesn't work for complex types as they get multiple exemplars and the current implementation cannot go back and figure out how many exemplars were in the last scrape.

Make the exemplar timestamp a SHOULD in preparation for complex types
having multiple exemplars at a time. We'll explain why having timestamp
for exemplars of complex types is a good idea there.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
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