filter @type = "REPORT"
\| stats sum(strcontains(@message, "Init Duration"))/count(*) * 100 as
coldStartPct, avg(@duration)
by bin(5m)
Percentile report of Lambda duration
filter @type = "REPORT"
\| stats
avg(@billedDuration) as Average,
percentile(@billedDuration, 99) as NinetyNinth,
percentile(@billedDuration, 95) as NinetyFifth,
percentile(@billedDuration, 90) as Ninetieth
by bin(30m)
Percentile report of Lambda memory usage
filter @type="REPORT"
\| stats avg(@maxMemoryUsed/1000/1000) as mean_MemoryUsed,
min(@maxMemoryUsed/1000/1000) as min_MemoryUsed,
max(@maxMemoryUsed/1000/1000) as max_MemoryUsed,
percentile(@maxMemoryUsed/1000/1000, 95) as Percentile95
Invocations using 100% of assigned memory
filter @type = "REPORT" and @maxMemoryUsed=@memorySize
\| stats
count_distinct(@requestId)
by bin(30m)
Average memory used across invocations
avgMemoryUsedPERC,
avg(@billedDuration) as avgDurationMS
by bin(5m)
Visualization of memory statistics
filter @type = "REPORT"
\| stats
max(@maxMemoryUsed / 1000 / 1000) as maxMemMB,
avg(@maxMemoryUsed / 1000 / 1000) as avgMemMB,
min(@maxMemoryUsed / 1000 / 1000) as minMemMB,
(avg(@maxMemoryUsed / 1000 / 1000) / max(@memorySize / 1000 / 1000)) * 100 as avgMemUsedPct,
avg(@billedDuration) as avgDurationMS
by bin(30m)
Invocations where Lambda exited
filter @message like /Process exited/
\| stats count() by bin(30m)
Invocations that timed out
filter @message like /Task timed out/
\| stats count() by bin(30m)