Skip to content

Conversation

@yeya24
Copy link
Contributor

@yeya24 yeya24 commented Feb 8, 2026

What this PR does:

Add nhcb dimension to cortex_distributor_received_samples_total and cortex_distributor_samples_in_total to keep track of number of nhcb samples.

Note that cortex_distributor_received_samples_total{type="nhcb"} is a subset of cortex_distributor_received_samples_total{type="histogram"} so doing sum(cortex_distributor_received_samples_total) will actually double count of nhcb samples.

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]

Signed-off-by: yeya24 <[email protected]>
Signed-off-by: yeya24 <[email protected]>
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Feb 10, 2026
Copy link
Member

Choose a reason for hiding this comment

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

Shouldn't we have a test that checks that there was an increase for the nhcb type? I see all these tests are only checking that the value is 0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/distributor lgtm This PR has been approved by a maintainer size/M type/feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants