cockroachdb / cockroachdb/cockroach

dbconsole: add ability to filter per-store metrics

Open
#98,059 2 comments 0 reactions 0 assignees View on GitHub
A-cluster-observability C-enhancement O-support P-3 T-observability
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:

![image](https://user-images.githubusercontent.com/39606633/223162411-34356afc-b117-4752-8f56-a06c209c8517.png)

In the DB Console UI advanced debug timeseries:

![image](https://user-images.githubusercontent.com/39606633/223162754-770b9723-e0d2-4c9f-9017-bc766bc9bdc9.png)

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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.