Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
benzekrimaha committed May 16, 2024
1 parent 2000290 commit 9d0458f
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions CountItems/masterProcess.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,14 @@ const metricServer = new WebServer(8003, log).onRequest((req, res) => monitoring
));
metricServer.start();

monitoring.bucketsCount.reset();
monitoring.objectsCount.reset();
// Set bucketsCount to 0
monitoring.bucketsCount.labels('error').set(0);
monitoring.bucketsCount.labels('success').set(0);

// Set objectsCount to 0
monitoring.objectsCount.labels('error').set(0);
monitoring.bucketProcessingDurationobjectsCount.labels('success').set(0);
monitoring.objectsCount.labels('skipped').set(0);

const handleSignal = sig => countMaster.stop(sig, () => process.exit(0));
process.on('SIGINT', handleSignal);
Expand Down

0 comments on commit 9d0458f

Please sign in to comment.