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

Creating label native-histogram-sample on the cortex_discarded_samples_total to keep track of discarded native histogram samples #5289

Merged
merged 5 commits into from
Apr 28, 2023

Conversation

alanprot
Copy link
Member

@alanprot alanprot commented Apr 26, 2023

What this PR does:

  • Update Cortex proto with the new native histogram format from prometheus

  • Create a new reason on the discarded metric: native-histogram-sample.

Which issue(s) this PR fixes:
Fixes #

Checklist

  • Tests updated
  • Documentation added
  • CHANGELOG.md updated - the order of entries should be [CHANGE], [FEATURE], [ENHANCEMENT], [BUGFIX]

@alanprot alanprot force-pushed the native-histogram-metric branch from 1b325bc to 72bab21 Compare April 26, 2023 01:24
Signed-off-by: Alan Protasio <alanprot@gmail.com>
Signed-off-by: Alan Protasio <alanprot@gmail.com>
Signed-off-by: Alan Protasio <alanprot@gmail.com>
Signed-off-by: Alan Protasio <alanprot@gmail.com>
@alanprot alanprot changed the title Create a new Metric to measure discarded native histogram (as cortex does not support it for now) Creating label native-histogram-sample on the cortex_discarded_samples_total to keep track of discarded native histogram samples Apr 26, 2023
Signed-off-by: Alan Protasio <alanprot@gmail.com>
@alanprot alanprot force-pushed the native-histogram-metric branch from 4522c6c to 1252038 Compare April 26, 2023 17:38
@alanprot alanprot marked this pull request as ready for review April 26, 2023 17:38
@alanprot alanprot requested review from friedrichg and yeya24 April 28, 2023 04:31
Copy link
Contributor

@yeya24 yeya24 left a comment

Choose a reason for hiding this comment

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

Thanks!

@friedrichg friedrichg merged commit 3c20471 into cortexproject:master Apr 28, 2023
yeya24 pushed a commit to yeya24/cortex that referenced this pull request Apr 28, 2023
…ples_total` to keep track of discarded native histogram samples (cortexproject#5289)

* Create new reason on the discarted sample metric - native histogram

Signed-off-by: Alan Protasio <alanprot@gmail.com>

* fix build

Signed-off-by: Alan Protasio <alanprot@gmail.com>

* fix proto

Signed-off-by: Alan Protasio <alanprot@gmail.com>

* Resetting histogram

Signed-off-by: Alan Protasio <alanprot@gmail.com>

* changelog

Signed-off-by: Alan Protasio <alanprot@gmail.com>

---------

Signed-off-by: Alan Protasio <alanprot@gmail.com>
Signed-off-by: Ben Ye <benye@amazon.com>
yeya24 pushed a commit to yeya24/cortex that referenced this pull request Apr 28, 2023
…ples_total` to keep track of discarded native histogram samples (cortexproject#5289)

* Create new reason on the discarted sample metric - native histogram

Signed-off-by: Alan Protasio <alanprot@gmail.com>

* fix build

Signed-off-by: Alan Protasio <alanprot@gmail.com>

* fix proto

Signed-off-by: Alan Protasio <alanprot@gmail.com>

* Resetting histogram

Signed-off-by: Alan Protasio <alanprot@gmail.com>

* changelog

Signed-off-by: Alan Protasio <alanprot@gmail.com>

---------

Signed-off-by: Alan Protasio <alanprot@gmail.com>
Signed-off-by: Ben Ye <benye@amazon.com>
@yeya24
Copy link
Contributor

yeya24 commented Nov 26, 2023

Umm, after taking another look at this I think this metric is not working at all.
Distributor doesn't even send native histograms in its write request to ingester, then ingester receives nothing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants