[AWS] [API Gateway] Add metrics dashboard filters, control groups and clean up #7702
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
A new issue will be made to document exactly why these additional documents are being generated and if there's a dashboard level solution for filtering them properly.
What does this PR do?
aws.dimensions.Stage
to ensure that only documents containing this dimension are considered while visualizing the data. This is necessary due to extra documents currently being present in the metrics:The
lucian-REST-PetStore
API has 2 stages (dev, prod), each with 32 and 64aws.apigateway.metrics.Count.sum
respectively, representing the number of requests made to them.However, another document is present in the metrics with the combined number of requests (96) which also has no
aws.dimensions.Stage
present.Adds control groups using
aws.dimensions.ApiId
(HTTP, WebSocket),aws.dimensions.ApiName
(REST) andaws.dimensions.Stage
(REST, HTTP and WebSocket), as well as AWS Region.Removes unused lens ([WebSocket] Latency) because the metric is only for HTTP/REST.
Checklist
changelog.yml
file.Author's Checklist
How to test this PR locally
Related issues
Screenshots
CloudWatch:
Dashboard after changes: