From f94a942404e61f2923b2fab50587cfd56a9ba2ad Mon Sep 17 00:00:00 2001 From: Justin Beckwith Date: Sat, 14 Mar 2020 20:00:43 -0700 Subject: [PATCH] test: add log to debug tests (#384) --- monitoring/snippets/metrics.js | 1 + 1 file changed, 1 insertion(+) diff --git a/monitoring/snippets/metrics.js b/monitoring/snippets/metrics.js index 62cc28ad47..e6b87e40f5 100644 --- a/monitoring/snippets/metrics.js +++ b/monitoring/snippets/metrics.js @@ -323,6 +323,7 @@ async function readTimeSeriesAggregate(projectId) { const [timeSeries] = await client.listTimeSeries(request); console.log('CPU utilization:'); timeSeries.forEach(data => { + console.log(data); console.log(data.metric.labels.instance_name); console.log(` Now: ${data.points[0].value.doubleValue}`); console.log(` 10 min ago: ${data.points[1].value.doubleValue}`);