Task Metrics avatar
Task Metrics
Deprecated

Pricing

Pay per usage

Go to Apify Store
Task Metrics

Task Metrics

Deprecated

This actor provides basic metrics for each run of a given actor: Duration, ItemCount, Items Per Compute Unit, and Items Per Minute. The data can be exported for analysis.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Barry Schneider

Barry Schneider

Maintained by Community

Actor stats

1

Bookmarked

3

Total users

1

Monthly active users

5 years ago

Last modified

Share

task-metrics

This actor provides basic metrics for each task run for a given actor. The Actor will find all of your tasks limited by the input filter.

input / filter

You can filter data based on: last-day, last-month or this-month

metric data

const metrix = {
actId: runInfo.actId,
actorTaskId: runInfo.actorTaskId,
startedAt: runInfo.startedAt,
finishedAt: runInfo.finishedAt,
status: runInfo.status,
memAvgMbytes: (runInfo.stats.memAvgBytes / (1024 * 1024)).toFixed(2),
memMaxMbytes: (runInfo.stats.memMaxBytes / (1024 * 1024)).toFixed(2),
cpuAvgUsage: runInfo.stats.cpuAvgUsage.toFixed(2),
cpuMaxUsage: runInfo.stats.cpuMaxUsage.toFixed(2),
runTimeMinutes: (runInfo.stats.runTimeSecs / 60).toFixed(2),
computeUnits: runInfo.stats.computeUnits.toFixed(2),
memoryMbytes: runInfo.options.memoryMbytes.toFixed(2),
defaultDatasetId: runInfo.defaultDatasetId,
itemCount: itemCount,
itemsPerMinute: itemsPerMinute.toFixed(2),
ItemsPerCU: ItemsPerCU.toFixed(2)
}