Skip to content

Support appending different sample types to the same series#9705

Merged
codesome merged 4 commits intoprometheus:sparsehistogramfrom
codesome:acceptallsamples
Nov 26, 2021
Merged

Support appending different sample types to the same series#9705
codesome merged 4 commits intoprometheus:sparsehistogramfrom
codesome:acceptallsamples

Conversation

@codesome
Copy link
Member

@codesome codesome commented Nov 9, 2021

NOTE: this is pointing to sparsehistogram branch. cc @beorn7

The change is pretty small to support this, most of the code in this PR is the unit test.

Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
@codesome codesome requested a review from beorn7 November 9, 2021 14:36
Copy link
Member

@beorn7 beorn7 left a comment

Choose a reason for hiding this comment

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

Just documentation nits…

Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
…lsamples

Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
Signed-off-by: Ganesh Vernekar <ganeshvern@gmail.com>
@codesome codesome merged commit 26c0a43 into prometheus:sparsehistogram Nov 26, 2021
krajorama added a commit that referenced this pull request Nov 25, 2025
The original implementation in #9705 for native histograms included a
technical dept #15177 where samples were committed ordered by type
not by their append order. This was fixed in #17071, but this docstring
was not updated.

I've also took the liberty to mention that we do not order by timestamp
either, thus it is possible to append out of order samples.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
krajorama added a commit that referenced this pull request Nov 25, 2025
The original implementation in #9705 for native histograms included a
technical dept #15177 where samples were committed ordered by type
not by their append order. This was fixed in #17071, but this docstring
was not updated.

I've also took the liberty to mention that we do not order by timestamp
either, thus it is possible to append out of order samples.

Signed-off-by: György Krajcsovits <gyorgy.krajcsovits@grafana.com>
wbollock pushed a commit to wbollock/prometheus that referenced this pull request Nov 25, 2025
The original implementation in prometheus#9705 for native histograms included a
technical dept prometheus#15177 where samples were committed ordered by type
not by their append order. This was fixed in prometheus#17071, but this docstring
was not updated.

I've also took the liberty to mention that we do not order by timestamp
either, thus it is possible to append out of order samples.

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