diff --git a/CountItems/CountManager.js b/CountItems/CountManager.js index e82accc3..3c5d00af 100644 --- a/CountItems/CountManager.js +++ b/CountItems/CountManager.js @@ -39,9 +39,7 @@ class CountManager { const processingStartTime = process.hrtime.bigint(); return this.workers[id].count(bucketInfo, (err, res) => { const processingDuration = Number(process.hrtime.bigint() - processingStartTime) / 1e9; - monitoring.bucketProcessingDuration.labels({ - service: 'countItems', - }).observe(processingDuration); + monitoring.bucketProcessingDuration.observe(processingDuration); this.log.info('processing a bucket', { method: 'CountManager::_setupQueue', workInQueue: this.q.length(), @@ -119,9 +117,7 @@ class CountManager { this.dataMetrics = results.dataMetrics; } const consolidationDurationInS = Number(process.hrtime.bigint() - startTime) / 1e9; - monitoring.consolidationDuration.labels({ - service: 'countItems', - }).observe(consolidationDurationInS); + monitoring.consolidationDuration.observe(consolidationDurationInS); } setup(callback) {