Maintenance: change the maximum number of user-defined metric dimensions to 29
See original GitHub issueSummary
AWS increased the quotas for CloudWatch today; specifically, the maximum number of dimensions a metric can have was increased from 10 to 30 (https://aws.amazon.com/about-aws/whats-new/2022/08/amazon-cloudwatch-metrics-increases-throughput)
The validation should take this into account and raise the limit accordingly.
Why is this needed?
Previously, the limit was 10 dimensions per metric, and this was raised to 30 today. We should reflect it and allow the user to take advantage of this
Which area does this relate to?
No response
Solution
Change https://github.com/awslabs/aws-lambda-powertools-python/blob/bb1eda742583d58790219942a49a5d2489ea91ea/aws_lambda_powertools/metrics/base.py#L17 to MAX_DIMENSIONS = 29
Acknowledgment
- This request meets Lambda Powertools Tenets
- Should this be considered in other Lambda Powertools languages? i.e. Java, TypeScript
Issue Analytics
- State:
- Created a year ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Dimensions and metrics - Analytics Help
The dimension Page indicates the URL of a page that is viewed. Metrics are quantitative measurements. The metric Sessions is the total number...
Read more >DynamoDB Metrics and dimensions - AWS Documentation
You can use the following procedures to view the metrics for DynamoDB. ... The maximum number of read capacity units that can be...
Read more >Metrics API - Metric selector | Dynatrace Docs
The metric selector is a powerful instrument for specifying which metrics you want to read via the GET metric data points request or...
Read more >Google Analytics Reporting API Changelog
Metric - ga:uniqueEvents - The definition of ga:uniqueEvents will change soon to more accurately reflect the number of unique events. Please use ga: ......
Read more >Advanced features of Metrics Explorer - Azure Monitor
Learn to use Metrics Explorer to investigate the health and usage of ... Count: The number of measurements captured during the aggregation ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I don’t think this is a breaking change change either. The old code will continue to work with a maximum of 9 dimensions and the new one will be able to use a maximum of 29.
it’s a nice improvement to add more metrics/dimensions to Cloudwatch and I’m sure customers will be happy about it.
Hi @gshpychka. I think I can submit a PR for this issue if you’re busy. I think (not sure) that tomorrow there should be a release and it would be interesting to have this improvement.