forked from cockroachdb/cockroach
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
roachtest: add utility to get one ts
This commit updates `setupStatCollector` in `allocation_bench` to be more general, so it can be reused by other roachtests. This commit also adds a new utility function to the `clusterstats` pkg, `GetOneSeries`, which enables conveniently grabbing the only series, if applicable, from the `clusterstats.CollectInterval` time series response. This is useful when just one series is expected, such as in aggregation queries. Epic: none Release note: None
- Loading branch information
Showing
2 changed files
with
32 additions
and
7 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