1 Answer
- Newest
- Most votes
- Most comments
1
You can see how full your API Gateway cache is by using CloudWatch Metrics.
- Open the CloudWatch console in the AWS Management Console.
- In the navigation pane, choose "Metrics".
- In the "Custom Namespaces" section, choose "AWS/ApiGateway"
- In the "Dimensions" section, select your API Gateway deployment.
- Scroll down the metrics list, to find the "CacheHitCount" and "CacheMissCount" metrics under the "Cache" category. The "CacheHitCount" metric represents the number of requests served from the cache and the "CacheMissCount" metric represents the number of requests that were not served from the cache. To know how full your cache is you can calculate the hit rate by dividing the "CacheHitCount" metric by the sum of the "CacheHitCount" and "CacheMissCount" metrics. The resulting percentage tells you what percentage of requests were served from the cache.
answered a year ago
Relevant content
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
That's not how full my cache is though, that's just how many requests were served from it. Here's an example:
The "CacheHitCount" will be 0, so by your calculations the cache is at 0%, but it's actually full.