-
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
tsdb: include TenantStorageMetrics per-tenant #99228
Comments
TODO needs some sort of test, perhaps. Closes cockroachdb#99228 Epic: none Release note: None
I take that back (and closed that PR). We already add the cockroach/pkg/kv/kvserver/metrics.go Line 2657 in 50c58b0
It's clear that this is working, since we see all of these metrics exported on the prometheus endpoint. |
and with
|
So I think this is all working, it's just a different paradigm than the one here: cockroach/pkg/server/status/recorder.go Lines 351 to 360 in 2353a6a
The snippet above works for metrics that exist "only" for the tenant (i.e. are not aggregated across tenants). But we don't have a Instead, we use These children are currently surfaced on the prometheus endpoint when the I think we could still use the
Footnotes
|
Is your feature request related to a problem? Please describe.
TenantStorageMetrics
appears to record storage level metrics at the tenant level. However, our recent work to update the MetricsRecorder with tenant registries does not capture these metrics.These metrics neither exist in the the store level registries within the recorder, because the
TenantStorageMetrics
exist outside of the StoreMetrics registry.As it stands today, when we register store-level metrics with the MetricsRecorder, we don't include any of these TenantStorageMetrics from what I can tell.
Because of this, tenant-level storage metrics that a tenant would naturally want to see, such as
livebytes
,keybytes
, etc. are not available in TSDB (and therefore, neither in DB Console).An app tenant will naturally want to know how much live data they have in their tenant DB, so we will need to find a way to record this information into TSDB so it can be exposed in DB Console.
Describe the solution you'd like
Find a way to get these tenant-level storage metrics into TSDB, so that app tenants can view metrics such as
livebytes
in DB Console.Jira issue: CRDB-25773
The text was updated successfully, but these errors were encountered: