Skip to content

Commit

Permalink
logging improved
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed May 13, 2024
1 parent f87041e commit 3cc47d5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CountItems/CountManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,19 @@ class CountManager {
if (metricLevel === 'account' && !this.uniqueAccounts.has(resourceName)) {
this.uniqueAccounts.add(resourceName);
monitoring.metricsCount.inc({ metricLevel : metricLevel});
console.log(`uniqueAccount : ${this.uniqueAccounts}`);
}
if (metricLevel === 'location' && !this.uniqueLocations.has(resourceName)) {
this.uniqueLocations.add(resourceName);
monitoring.metricsCount.inc({ metricLevel : metricLevel});
console.log(`uniqueLocation : ${this.uniqueLocations}`);
}
if (metricLevel === 'bucket' && !this.uniqueBuckets.has(resourceName)) {
this.uniqueBuckets.add(resourceName);
monitoring.metricsCount.inc({ metricLevel : metricLevel});
console.log(`uniqueBucket : ${this.uniqueBuckets}`);
}
console.log(`resourceName : ${resourceName}`);
console.log(monitoring.metricsCount);
// resourceName can be the name of bucket, location or account
this.dataMetrics[metricLevel][resourceName] = consolidateDataMetrics(
Expand Down

0 comments on commit 3cc47d5

Please sign in to comment.