-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(logs): add dimensions to metric filter #21654
Conversation
@rix0rrr, @peterwoodworth could you review this? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your contribution! This looks great, I just have a few comments inline.
Also, please make sure that your PR body describes the problem the PR is solving, and the design approach and alternatives considered. Explain why the PR solves the problem. A link to an issue is helpful, but does not replace an explanation of your thought process (See Contributing Guide, Pull Requests)
Co-authored-by: Kendra Neil <53584728+TheRealAmazonKendra@users.noreply.github.com>
Pull request has been modified.
Updated the description of the pull request |
packages/@aws-cdk/aws-logs/test/integ.metricfilter-dimensions.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/aws-logs/test/integ.metricfilter-dimensions.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Kendra Neil <53584728+TheRealAmazonKendra@users.noreply.github.com>
Co-authored-by: Kendra Neil <53584728+TheRealAmazonKendra@users.noreply.github.com>
Pull request has been modified.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Putting this back in change requested to reflect the status.
Pull request has been modified.
@TheRealAmazonKendra Changes made |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Allows attaching dimensions to a metric filter. Uses the API design suggested by @marcogrcr in his [comment](aws#16999 (comment)) which is agreed on. resolves aws#16999 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Allows attaching dimensions to a metric filter. Uses the API design suggested by @marcogrcr in his [comment](aws#16999 (comment)) which is agreed on. resolves aws#16999 ---- ### All Submissions: * [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md) *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
@iRoachie I can't seem to get this to work, with a less than helpful error returned by CFN. It deploys if I remove
Error:
CDK version:
|
Closing the loop here, I figured this out with help from the console. I believe the reason my example above didn't work is because of my filter pattern. In the console you see: |
Alarms don't seem to trigger when a dimension is included in the metric it's created with? |
Allows attaching dimensions to a metric filter.
Uses the API design suggested by @marcogrcr in his comment which is agreed on.
resolves #16999
All Submissions:
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license