From d06a87bcb71cf150a5f9a7d383a0fa5d0c2dac69 Mon Sep 17 00:00:00 2001 From: Michael FIG Date: Mon, 1 Mar 2021 22:47:42 -0600 Subject: [PATCH] fix: enable autobench_* metrics --- packages/swingset-runner/src/push-metrics.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/swingset-runner/src/push-metrics.js b/packages/swingset-runner/src/push-metrics.js index 3bb63cb5399..fd684042712 100644 --- a/packages/swingset-runner/src/push-metrics.js +++ b/packages/swingset-runner/src/push-metrics.js @@ -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', }, @@ -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, });