Skip to content

Fixed PrometheusSinkBufferWriter getBuffer() to return non-duplicate and sorted time series#6358

Merged
kkondaka merged 2 commits into
opensearch-project:mainfrom
kkondaka:amp-sink-dedup-sort
Dec 17, 2025
Merged

Fixed PrometheusSinkBufferWriter getBuffer() to return non-duplicate and sorted time series#6358
kkondaka merged 2 commits into
opensearch-project:mainfrom
kkondaka:amp-sink-dedup-sort

Conversation

@kkondaka

Copy link
Copy Markdown
Collaborator

Description

Fixed PrometheusSinkBufferWriter getBuffer() to return non-duplicate and sorted time series. Prometheus server rejects duplicate or out of order timeseries.

Issues Resolved

Resolves #[Issue number to be closed when this PR is merged]

Check List

  • [ X] New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • [X ] Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…and sorted timeseries

Signed-off-by: Krishna Kondaka <krishkdk@amazon.com>
Signed-off-by: Krishna Kondaka <krishkdk@amazon.com>
@kkondaka kkondaka merged commit 15d946e into opensearch-project:main Dec 17, 2025
45 of 47 checks passed
wandna-amazon pushed a commit to wandna-amazon/data-prepper that referenced this pull request Jan 8, 2026
…and sorted time series (opensearch-project#6358)

* Fixed PrometheusSinkBufferWriter getBuffer() to return non-duplicate and sorted timeseries

Signed-off-by: Krishna Kondaka <krishkdk@amazon.com>

* Fixed CheckStyle error

Signed-off-by: Krishna Kondaka <krishkdk@amazon.com>

---------

Signed-off-by: Krishna Kondaka <krishkdk@amazon.com>
Signed-off-by: Nathan Wand <wandna@amazon.com>
simonelbaz pushed a commit to simonelbaz/data-prepper that referenced this pull request Jan 31, 2026
…and sorted time series (opensearch-project#6358)

* Fixed PrometheusSinkBufferWriter getBuffer() to return non-duplicate and sorted timeseries

Signed-off-by: Krishna Kondaka <krishkdk@amazon.com>

* Fixed CheckStyle error

Signed-off-by: Krishna Kondaka <krishkdk@amazon.com>

---------

Signed-off-by: Krishna Kondaka <krishkdk@amazon.com>
Signed-off-by: Simon ELBAZ <elbazsimon9@gmail.com>
simonelbaz pushed a commit to simonelbaz/data-prepper that referenced this pull request Jan 31, 2026
…and sorted time series (opensearch-project#6358)

* Fixed PrometheusSinkBufferWriter getBuffer() to return non-duplicate and sorted timeseries

Signed-off-by: Krishna Kondaka <krishkdk@amazon.com>

* Fixed CheckStyle error

Signed-off-by: Krishna Kondaka <krishkdk@amazon.com>

---------

Signed-off-by: Krishna Kondaka <krishkdk@amazon.com>
simonelbaz pushed a commit to simonelbaz/data-prepper that referenced this pull request Jan 31, 2026
…and sorted time series (opensearch-project#6358)

* Fixed PrometheusSinkBufferWriter getBuffer() to return non-duplicate and sorted timeseries

Signed-off-by: Krishna Kondaka <krishkdk@amazon.com>

* Fixed CheckStyle error

Signed-off-by: Krishna Kondaka <krishkdk@amazon.com>

---------

Signed-off-by: Krishna Kondaka <krishkdk@amazon.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.

3 participants