-
-
Save miqui/bc6a8986364e0bf57810652177495f82 to your computer and use it in GitHub Desktop.
AWS CloudWatch Insight Queries
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
| 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) |
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
| filter @type = "REPORT" | |
| | stats | |
| max(@maxMemoryUsed / 1024 / 1024) as maxMemoryMB, | |
| avg(@maxMemoryUsed / 1024 / 1024) as avgMemoryMB, | |
| min(@maxMemoryUsed / 1024 / 1024) as minMemoryMB, | |
| (avg(@maxMemoryUsed / 1024 / 1024) / max(@memorySize / 1024 / 1024)) * 100 as avgMemoryUsedPERC, | |
| avg(@billedDuration) as avgDurationMS | |
| by bin(30m) |
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
| filter @type = "REPORT" and @maxMemoryUsed=@memorySize | |
| | stats | |
| count_distinct(@requestId) | |
| by bin(30m) |
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
| filter @message like /Process exited/ | |
| | stats count() by bin(30m) |
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
| filter @message like /Task timed out/ | |
| | stats count() by bin(30m) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment