cockroachdb / cockroachdb/cockroach
dbconsole: add ability to filter per-store metrics
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
Currently the DB Console UI allows filtering metrics by node. There is no way to filter metrics which are tagged by StoreID as well:
In the DB Console UI metrics dashboards:

In the DB Console UI advanced debug timeseries:

In `_status/vars` however, we do have access to metrics tagged per-store:
```
# HELP kv_allocator_load_based_replica_rebalancing_existing_not_overfull The number times the allocator determined that none of the range's replicas were on overfull stores
# TYPE kv_allocator_load_based_replica_rebalancing_existing_not_overfull counter
kv_allocator_load_based_replica_rebalancing_existing_not_overfull{store="1"} 0
```
This issue is to add support for filtering metrics per-store, similar to the way per-node currently works. Just having this filtering within the advanced debug metrics page would be sufficient.
Jira issue: CRDB-25057
Epic CRDB-41111
Contributor guide
Assessment
This issue has not been assessed yet.