CloudWatch2: InvalidParameterValueException
See original GitHub issueI tried using micrometer-registry-cloudwatch2:1.3.0 registry to publish metrics to CloudWatch. The metrics are generated by Spring Boot, and the repository is configured with a filter for “http.server.requests” metric.
I am getting this exception:
software.amazon.awssdk.services.cloudwatch.model.InvalidParameterValueException: The parameter MetricData.member.4.Unit must be a value in the set [ Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None ]
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
InvalidParameterValueException (AWS SDK for Java - 1.12.350)
com.amazonaws.services.cloudwatch.model.InvalidParameterValueException ... Constructs a new InvalidParameterValueException with the specified error message.
Read more >InvalidParameterValueException (AWS SDK for Android - Amazon ...
Constructs a new InvalidParameterValueException with the specified error message. Method Summary. Methods inherited from class com.amazonaws.
Read more >CloudWatchException (AWS Java SDK :: Services :: Amazon ...
... InvalidFormatException, InvalidNextTokenException, InvalidParameterCombinationException, InvalidParameterValueException, LimitExceededException, ...
Read more >software.amazon.awssdk.services.cloudwatch.model (AWS Java ...
Package software.amazon.awssdk.services.cloudwatch.model ; InvalidParameterValueException.Builder ; LabelOptions.Builder ; LimitExceededException.Builder.
Read more >cloudwatch-2.4.13-sources.jar下载及Maven、Gradle引入代码,pom ...
... software/amazon/awssdk/services/cloudwatch/model/InvalidParameterValueException.java ...
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 FreeTop 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
Top GitHub Comments
Okay - while I do indeed have a memory leak that was introduced at the same time I moved to the cloudwatch2 library, it turns out to be a bug in my own application code (doing something badly with SQS queues). The coincidence in timing is that I moved to cloudwatch2 because I’m moving to the AWS SDK for Java v2.
So it all looks good to me.
I can indeed see metrics being published to Cloudwatch correctly now.
I’ve noticed that the earlier version also had a memory leak - my dev server was falling over after a few hours of idle use with the broken Cloudwatch logger. I’m now running a test to see if that continues with the SNAPSHOT, and will let you know of the results. (Again, all I have is the JvmMetrics being logged)