Skip to content

Commit

Permalink
fix: enable autobench_* metrics
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfig committed Mar 2, 2021
1 parent a29782e commit d06a87b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/swingset-runner/src/push-metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ const AUTOBENCH_METRICS_URL = process.env.AUTOBENCH_METRICS_URL;
const AUTOBENCH_METRICS = [
{
key: 'cranks',
metricType: 'count',
metricType: 'counter',
name: 'autobench_cranks_total',
description: 'Total number of cranks',
},
{
key: 'rounds',
metricType: 'count',
metricType: 'counter',
name: 'autobench_rounds_total',
description: 'Total number of rounds',
},
Expand Down Expand Up @@ -162,7 +162,7 @@ function generateMetricsFromBenchStats(benchStats) {
const obj = JSON.parse(benchStats);
const mainLabels = [['phase', 'prime']];
const benchmarkLabels = [['phase', 'bench']];
let metrics = generateCommonMetrics(benchStats, {
let metrics = generateCommonMetrics(obj, {
main: mainLabels,
benchmark: benchmarkLabels,
});
Expand Down

0 comments on commit d06a87b

Please sign in to comment.