Skip to content

Commit

Permalink
test: add log to debug tests (#384)
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinBeckwith authored and Ace Nassri committed Nov 10, 2022
1 parent bcf9545 commit f94a942
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions monitoring/snippets/metrics.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down

0 comments on commit f94a942

Please sign in to comment.