Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
RunOnFluxBot committed Oct 15, 2024
1 parent 16c108d commit c5ceae4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions services/appsService.js
Original file line number Diff line number Diff line change
Expand Up @@ -1259,6 +1259,8 @@ function startAppMonitoring(appName) {
statsNow.disk_stats = containerStorageInfo;
const now = Date.now();
if (appsMonitored[appName].run % 3 === 0) {
const inspect = await dockerService.dockerContainerInspect(appName);
statsNow.nanoCpus = inspect.HostConfig.NanoCpus;
appsMonitored[appName].statsStore.push({ timestamp: now, data: statsNow });
const statsStoreSizeInBytes = new TextEncoder().encode(JSON.stringify(appsMonitored[appName].statsStore)).length;
const estimatedSizeInMB = statsStoreSizeInBytes / (1024 * 1024);
Expand Down

0 comments on commit c5ceae4

Please sign in to comment.