-
Notifications
You must be signed in to change notification settings - Fork 3.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
roachtest: add post-process step for perf metrics
There are many tests in which had some custom post processing done in roachperf to emit the metrics. To add this facility in the roachtests itself, this change aims to : 1.Adds 2 new user facing structs `HistogramMetric`, that gives the user access to the histogram metrics generated by the workload and `PerfMetrics` which user can return with their aggregated metric. 2. Introduce a new `PostProcessPerfMetrics(HistogramMetrics) PerfMetrics` step in test spec where the test writer can do custom aggregation and provide the aggregated metric. If the test has not implemented this step, the runner will use the `DefaultPostProcess` function. 3. The step creates a new openmetrics file with the name `aggregated_stats.om` that will have the aggregated metrics. 4. Implement `PostProcessPerfMetrics` in some roachtests that do post processing in roachperf. Epic: https://cockroachlabs.atlassian.net/browse/CRDB-41852 Release note: None
- Loading branch information
1 parent
34e34c2
commit ba12c23
Showing
12 changed files
with
658 additions
and
64 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
Oops, something went wrong.