Skip to content

Cherry-pick #21166 to 7.9: Fix timestamp handling in remote_write#21237

Merged
ChrsMark merged 4 commits intoelastic:7.9from
ChrsMark:backport_21166_7.9
Sep 23, 2020
Merged

Cherry-pick #21166 to 7.9: Fix timestamp handling in remote_write#21237
ChrsMark merged 4 commits intoelastic:7.9from
ChrsMark:backport_21166_7.9

Conversation

@ChrsMark
Copy link
Copy Markdown
Member

@ChrsMark ChrsMark commented Sep 23, 2020

Cherry-pick of PR #21166 to 7.9 branch. Original message:

What does this PR do?

Fixes how we handle timestamps when we process Prometheus Samples using remote_write. Before this change it could be possible that we miss some metrics in case of having the same metric in the same received chunk (with different timestamps). Metrics with different timestamps should go in different final events and hence timestamp should be taken into account when grouping metrics into events.

Why is it important?

To avoid losing data due to wrong grouping.

Checklist

  • My code follows the style guidelines of this project
  • I have added tests that prove my fix is effective or that my feature works
  • I have added an entry in CHANGELOG.next.asciidoc or CHANGELOG-developer.next.asciidoc.

@ChrsMark ChrsMark added [zube]: In Review backport Team:Platforms Label for the Integrations - Platforms team labels Sep 23, 2020
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/integrations-platforms (Team:Platforms)

@botelastic botelastic bot added needs_team Indicates that the issue/PR needs a Team:* label and removed needs_team Indicates that the issue/PR needs a Team:* label labels Sep 23, 2020
Signed-off-by: chrismark <chrismarkou92@gmail.com>
Signed-off-by: chrismark <chrismarkou92@gmail.com>
@elasticmachine
Copy link
Copy Markdown
Contributor

elasticmachine commented Sep 23, 2020

💚 Build Succeeded

Pipeline View Test View Changes Artifacts preview

Expand to view the summary

Build stats

  • Build Cause: [Pull request #21237 updated]

  • Start Time: 2020-09-23T11:40:56.257+0000

  • Duration: 65 min 25 sec

Test stats 🧪

Test Results
Failed 0
Passed 3113
Skipped 687
Total 3800

Signed-off-by: chrismark <chrismarkou92@gmail.com>
@ChrsMark ChrsMark requested a review from exekias September 23, 2020 14:20
@ChrsMark ChrsMark merged commit 4eae9b5 into elastic:7.9 Sep 23, 2020
@zube zube bot removed the [zube]: Done label Dec 23, 2020
leweafan pushed a commit to leweafan/beats that referenced this pull request Apr 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Team:Platforms Label for the Integrations - Platforms team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants