Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[receiver/prometheus] Validate that combined metrics all have the same timestamp #9385

Merged
merged 5 commits into from
Jun 20, 2022

Conversation

dashpole
Copy link
Contributor

Description:

If Prometheus histogram points and summary points have timestamps set, those must be the same across metric points that we join together. Otherwise, it is possibly an inconsistent snapshot of the underlying histogram (e.g. prometheus/docs#514), and we should drop it to be safe.

Testing:

Fixed unit tests that were testing with invalid Prometheus series.

@dashpole dashpole marked this pull request as ready for review April 20, 2022 20:23
@dashpole dashpole requested a review from a team April 20, 2022 20:23
@dashpole dashpole requested a review from Aneurysm9 as a code owner April 20, 2022 20:23
@dashpole
Copy link
Contributor Author

cc @open-telemetry/wg-prometheus

@dashpole dashpole added the comp:prometheus Prometheus related issues label Apr 25, 2022
@TylerHelmuth
Copy link
Member

Is there a unit test for the new functionality?

@dashpole
Copy link
Contributor Author

dashpole commented May 3, 2022

Is there a unit test for the new functionality?

Added.

@github-actions
Copy link
Contributor

This PR was marked stale due to lack of activity. It will be closed in 14 days.

@github-actions github-actions bot added the Stale label Jun 19, 2022
@TylerHelmuth TylerHelmuth added ready to merge Code review completed; ready to merge by maintainers and removed Stale labels Jun 20, 2022
@djaglowski djaglowski merged commit 3f24405 into open-telemetry:main Jun 20, 2022
@dashpole dashpole deleted the validate_prom branch July 18, 2022 13:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:prometheus Prometheus related issues ready to merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants