Slide 15
Slide 15 text
CloudWatch Logs Insightsクエリ:1クエリにまとめる 15
INITの発生率と新旧の金額の違いを1クエリにまとめる
filter @type = "REPORT"
| stats
sum((@memorySize/1000000/1024) * (@billedDuration/1000)) as oldBilledGBs,
sum((@memorySize/1000000/1024) * (@initDuration/1000)) as newBilledGBs,
(oldBilledGBs + newBilledGBs)/oldBilledGBs as billedRatio,
count(*) as totalInvocation,
count(@initDuration) as coldInvocation,
coldInvocation/totalInvocation as Ratio