-
Notifications
You must be signed in to change notification settings - Fork 4.1k
tsdb: include TenantStorageMetrics per-tenant #99228
Description
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