-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
(cloudfront): Flag on Distribution L2 to enable publishing additional CloudWatch metrics #22922
Comments
Thanks for the feature request @straygar, I am marking this issue as p2, which means that we are unable to work on this immediately. We use +1s to help prioritize our work, and are happy to revaluate this issue based on community feedback. You can reach out to the cdk.dev community on Slack to solicit support for reprioritization. Check out our contributing guide if you're interested in contributing yourself. Before you start contributing, you will probably want to spend some time discussing the best direction to go with someone on the team. There aren't any L2s for CfnMonitoringSubscription yet, it's possible we'd want to tackle that first before this feature. |
@peterwoodworth Alright, thanks! I'd like to contribute, but I'm not sure what discussion is to be had there. My suggestion above was just a
In any case, what is the best way to involve somebody from the CDK team to discuss this? |
This issue has received a significant amount of attention so we are automatically upgrading its priority. A member of the community will see the re-prioritization and provide an update on the issue. |
This PR supports the activation of [additional cloudfront distribution metrics](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/viewing-cloudfront-metrics.html#monitoring-console.distributions-additional). ```ts new cloudfront.Distribution(this, 'myDist', { defaultBehavior: { origin: new origins.HttpOrigin('www.example.com') }, publishAdditionalMetrics: true, // added }); ``` Closes #22922. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
This PR supports the activation of [additional cloudfront distribution metrics](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/viewing-cloudfront-metrics.html#monitoring-console.distributions-additional). ```ts new cloudfront.Distribution(this, 'myDist', { defaultBehavior: { origin: new origins.HttpOrigin('www.example.com') }, publishAdditionalMetrics: true, // added }); ``` Closes aws#22922. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
This PR supports the activation of [additional cloudfront distribution metrics](https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/viewing-cloudfront-metrics.html#monitoring-console.distributions-additional). ```ts new cloudfront.Distribution(this, 'myDist', { defaultBehavior: { origin: new origins.HttpOrigin('www.example.com') }, publishAdditionalMetrics: true, // added }); ``` Closes #22922. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Describe the feature
The CloudFront UI and API lets you enable more granular metrics per-distribution, at an additional (fixed) cost.
There is an L1 construct that lets you do this, which can be easily integrated into the L2 construct and enabled via a prop.
Use Case
I want to create a dashboard of data like origin latency, Lambda@Edge error rate etc. and alarm on these metrics.
Proposed Solution
An additional prop for
cloudfront.Distribution
:If this is set to
true
aCfnMonitoringSubscription
instance is created:Also, we probably want to expose these metrics via
distro.metricsXyz()
methods (should probably throw, ifpublishAdditionalMetrics
is set to false.Other Information
No response
Acknowledgements
CDK version used
2.50.0
Environment details (OS name and version, etc.)
n/a
The text was updated successfully, but these errors were encountered: