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 new metric around chunks bytespool #5552

Merged
merged 3 commits into from
Sep 8, 2023

Conversation

alanprot
Copy link
Member

@alanprot alanprot commented Sep 7, 2023

What this PR does:
Create new cortex_bucket_store_chunk_pool_bytes_total to add metrics around the byte slices returned to the pool.

This metric has a overlap with the existing ones - which should be deprecated if this PR is accepted.

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: Alan Protasio <alanprot@gmail.com>
pkg/storegateway/chunk_bytes_pool.go Outdated Show resolved Hide resolved
pkg/storegateway/chunk_bytes_pool.go Outdated Show resolved Hide resolved
@pull-request-size pull-request-size bot added size/M and removed size/S labels Sep 7, 2023
Signed-off-by: Alan Protasio <alanprot@gmail.com>
@alanprot alanprot force-pushed the chunks-metric branch 3 times, most recently from a1ee8de to 46a10c4 Compare September 8, 2023 00:04
@yeya24 yeya24 enabled auto-merge (squash) September 8, 2023 00:10
}),
poolByteStats: promauto.With(reg).NewCounterVec(prometheus.CounterOpts{
Name: "cortex_bucket_store_chunk_pool_operation_bytes_total",
Help: "Total bytes number of bytes pooled by operation.",
Copy link
Contributor

Choose a reason for hiding this comment

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

My suggestion for this would be "Bytes checkout or returned to the chunk pool"

Copy link
Member Author

Choose a reason for hiding this comment

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

humm.. idk.. i think s too verbose

@alanprot alanprot force-pushed the chunks-metric branch 2 times, most recently from de6bbf0 to b045e8a Compare September 8, 2023 15:30
Signed-off-by: Alan Protasio <alanprot@gmail.com>
@yeya24 yeya24 merged commit 1a097a9 into cortexproject:master Sep 8, 2023
11 of 12 checks passed
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