-
Notifications
You must be signed in to change notification settings - Fork 3.8k
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
kvserver: export secondary cache counter metrics #110818
Conversation
It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR? 🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @itsbilal and @joshimhoff)
pkg/kv/kvserver/metrics.go
line 772 at r1 (raw file):
} metaSecondaryCacheSize = metric.Metadata{ Name: "storage.shared-storage.cache.size",
Let's name these storage.secondary-cache.*
.
pkg/kv/kvserver/metrics.go
line 773 at r1 (raw file):
metaSecondaryCacheSize = metric.Metadata{ Name: "storage.shared-storage.cache.size", Help: "The number of sstable bytes stored in the cache",
"in the secondary cache" (same below)
f39f2cd
to
a2a089e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reviewable status: complete! 0 of 0 LGTMs obtained (waiting on @itsbilal)
pkg/kv/kvserver/metrics.go
line 772 at r1 (raw file):
Previously, RaduBerinde wrote…
Let's name these
storage.secondary-cache.*
.
Done!
pkg/kv/kvserver/metrics.go
line 773 at r1 (raw file):
Previously, RaduBerinde wrote…
"in the secondary cache" (same below)
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TFTR! |
bors r+ |
Already running a review |
Build failed (retrying...): |
bors r- This needs |
Canceled. |
bors r- This is failing
|
Thanks! Apologies. |
This commits exports counter metrics regarding the secondary cache added at cockroachdb/pebble#2760. This commit doesn't export the histogram metrics added in that PR. While working on this one, I have realized a follow up PR is needed to export the bucketing scheme to CRDB. Release note: None.
a2a089e
to
b3a5247
Compare
bors r+ |
Build succeeded: |
Fixes #110899.
kvserver: export secondary cache counter metrics
This commits exports counter metrics regarding the secondary cache added at cockroachdb/pebble#2760. This commit doesn't export the histogram metrics added in that PR. While working on this one, I have realized a follow up PR is needed to export the bucketing scheme to CRDB.
Release note: None.