Skip to content

Commit d06a87b

Browse files
committed
fix: enable autobench_* metrics
1 parent a29782e commit d06a87b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/swingset-runner/src/push-metrics.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ const AUTOBENCH_METRICS_URL = process.env.AUTOBENCH_METRICS_URL;
77
const AUTOBENCH_METRICS = [
88
{
99
key: 'cranks',
10-
metricType: 'count',
10+
metricType: 'counter',
1111
name: 'autobench_cranks_total',
1212
description: 'Total number of cranks',
1313
},
1414
{
1515
key: 'rounds',
16-
metricType: 'count',
16+
metricType: 'counter',
1717
name: 'autobench_rounds_total',
1818
description: 'Total number of rounds',
1919
},
@@ -162,7 +162,7 @@ function generateMetricsFromBenchStats(benchStats) {
162162
const obj = JSON.parse(benchStats);
163163
const mainLabels = [['phase', 'prime']];
164164
const benchmarkLabels = [['phase', 'bench']];
165-
let metrics = generateCommonMetrics(benchStats, {
165+
let metrics = generateCommonMetrics(obj, {
166166
main: mainLabels,
167167
benchmark: benchmarkLabels,
168168
});

0 commit comments

Comments
 (0)