question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Maintenance: change the maximum number of user-defined metric dimensions to 29

See original GitHub issue

Summary

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

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
leandrodamascenacommented, Aug 4, 2022

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.

1reaction
leandrodamascenacommented, Aug 4, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found