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

chore: fix prometheus remote write exporter not setting timestamp on created metric #29503

Conversation

jmichalek132
Copy link
Contributor

@jmichalek132 jmichalek132 commented Nov 25, 2023

Description:

As disucssed on cncf slack fixing the issue with _created metrics where prometheus backend refuses it due to "too old" due to not setting a timestamp for the sample created. The timestamp used is the timestamp for the original sample the correspondent _created metrics is generated for.

Link to tracking Issue: #24915

Testing:

Tested locally with prometheus compatible backend.

Documentation:

@jmichalek132 jmichalek132 marked this pull request as ready for review November 27, 2023 22:44
@jmichalek132 jmichalek132 requested a review from a team November 27, 2023 22:44
Copy link
Contributor

@jesusvazquez jesusvazquez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, nice find

@dashpole dashpole added bug Something isn't working ready to merge Code review completed; ready to merge by maintainers labels Nov 30, 2023
@codeboten codeboten merged commit 7b1ff5b into open-telemetry:main Dec 6, 2023
78 of 79 checks passed
@github-actions github-actions bot added this to the next release milestone Dec 6, 2023
@jmichalek132 jmichalek132 deleted the jm-fix-prometheus-remote-write-set-timestamp-created-metric branch December 6, 2023 16:25
jayasai470 pushed a commit to jayasai470/opentelemetry-collector-contrib that referenced this pull request Dec 8, 2023
…created metric (open-telemetry#29503)

As disucssed on cncf
[slack](https://cloud-native.slack.com/archives/C01LSCJBXDZ/p1700938910822949)
fixing the issue with _created metrics where prometheus backend refuses
it due to "too old" due to not setting a timestamp for the sample
created. The timestamp used is the timestamp for the original sample the
correspondent _created metrics is generated for.

**Link to tracking Issue:** open-telemetry#24915

Tested locally with prometheus compatible backend.

---------

Co-authored-by: Anthony Mirabella <a9@aneurysm9.com>
Co-authored-by: David Ashpole <dashpole@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pkg/translator/prometheus ready to merge Code review completed; ready to merge by maintainers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants