Skip to content

tsdb: include TenantStorageMetrics per-tenant #99228

@abarganier

Description

@abarganier

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

Metadata

Metadata

Assignees

Labels

A-observability-infC-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)v23.1.13

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions