-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
136900: ui,metric,server: fix custom chart to include histogram metrics r=kyle-a-wong a=kyle-a-wong PR #135705 made changes to the `admin/metricmetadata` api to include tsdb recorded names and custom charts to be powered by this api instead of `_status/nodes_ui`. This introduced a bug where computed histogram metrics stopped appearing in custom charts. This is because these metrics are computed at record time and are not metrics that exist in the metrics registries. Now, `admin/metricmetadata` recorded names should include all computed histogram metrics. Benchmarks: ``` building benchmark binaries for 87e0d85: ui,metric,server: fix custom chart to include hist [bazel=true] 1/1 - pkg=1/1 iter=10/10 cockroachdb/cockroach/pkg/server/status | name old time/op new time/op delta ExtractValueAllocs-12 8.19µs ± 2% 8.09µs ± 0% -1.17% (p=0.000 n=10+8) name old alloc/op new alloc/op delta ExtractValueAllocs-12 17.3kB ± 0% 17.3kB ± 0% ~ (all equal) name old allocs/op new allocs/op delta ExtractValueAllocs-12 566 ± 0% 566 ± 0% ~ (all equal) ``` Fixes: #136939 Epic: None Release note: None Co-authored-by: Kyle Wong <[email protected]>
- Loading branch information
Showing
7 changed files
with
193 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters