cockroachdb / cockroachdb/cockroach
storage_capacity metric and related DBConsole graphs should not start from 0
- Dominant language
- Go
- Stars
- 32.5k
- Forks
- 4.1k
- PR merge metrics
- PR metrics pending
Description
**Describe the problem**
The behavior of the metrics `storage_capacity` has changed in version 22.1/22.2 and appears to be a regression bug.
In v21.2 when a node is started the graph for `storage_capacity` start from the correct value, but in v22.1 and v22.2 the graph start from 0 when the node is restarted showing something that is not actually correct until the real value is displayed. This behavior is seen in DB Console and custom TS charts, see attached screenshots.
**Expected behavior**
Restore the original behavior seen in 21.2
**Additional data / screenshots**
DB Console

Custom TS Chart

Grafana/Prometheus

v21.2 DB Console

Jira issue: CRDB-23183
Contributor guide
Assessment
This issue has not been assessed yet.