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.

CloudWatch2: InvalidParameterValueException

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
twasinkcommented, Oct 31, 2019

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.

1reaction
twasinkcommented, Oct 31, 2019

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)

Read more comments on GitHub >

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

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