Created
January 29, 2025 21:25
-
-
Save ericbisme/e48650e9cc34b36df251e83d13d48970 to your computer and use it in GitHub Desktop.
Cloudwatch Lambda stats
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| fields @timestamp, @initDuration, @message, @logStream, @log | |
| | sort @timestamp desc | |
| | limit 1000 | |
| | filter @type = "REPORT" | |
| | stats | |
| count(@type) as countInvocations , | |
| count(@initDuration) as countColdStarts , (count(@initDuration)/count(@type))*100 as percentageColdStarts, | |
| max(@initDuration) as maxColdStartTime, | |
| avg(@duration) as averageDuration, | |
| max(@duration) as maxDuration, | |
| min(@duration) as minDuration, | |
| avg(@maxMemoryUsed) as averageMemoryUsed, | |
| max(@memorySize) as memoryAllocated, (avg(@maxMemoryUsed)/max(@memorySize))*100 as percentageMemoryUsed | |
| by bin(1h) as timeFrame |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment