awslabs / amazon-kinesis-producer

Amazon Kinesis Producer Library
Apache License 2.0
400 stars 331 forks source link

[error] [metrics_manager.cc:145] Metrics upload failed. | Code: MissingParameter | Message: The parameter MetricData.member.17.Dimensions.member.1.Value is required. #437

Open jtaub opened 2 years ago

jtaub commented 2 years ago

Bug description

I am using KPL 0.14.12 in a Java 11 application and am intermittently getting this error in my logs. It is not obvious to me when or why this error will occur. At certain times, it appears that the KPL for some reason does not have all of the data it needs to successfully send its custom metrics to CloudWatch.

Please let me know if there are any other details I can provide.

Expected behavior

No such error will occur.

Actual behavior

We periodically get this exception in our logs:

[error] [[metrics_manager.cc:145](http://metrics_manager.cc:145/)] Metrics upload failed. | Code: MissingParameter | Message: The parameter MetricData.member.17.Dimensions.member.1.Value is required. | Request was: Action=PutMetricData&Namespace=KinesisProducerLibrary&MetricData.member.1.MetricName=RequestTime&MetricData.member.1.Dimensions.member.1.Name=StreamName&MetricData.member.1.Dimensions.member.1.Value=$streamName&MetricData.member.1.Timestamp=2022-07-26T15%3A31%3A20Z&MetricData.member.1.StatisticValues.SampleCount=9&MetricData.member.1.StatisticValues.Sum=7239&MetricData.member.1.StatisticValues.Minimum=73&MetricData.member.1.StatisticValues.Maximum=6018&MetricData.member.1.Unit=Milliseconds&MetricData.member.2.MetricName=RetriesPerRecord&MetricData.member.2.Dimensions.member.1.Name=StreamName&MetricData.member.2.Dimensions.member.1.Value=$streamName

and so on. I truncated most of the message, and replaced my actual stream name with $streamName

Steps to reproduce

Exact steps are unknown to me, but this seems to happen if there is ever a period of time where no Kinesis records are produced.

jtaub commented 1 year ago

I am still getting this error after upgrading to KPL 0.14.13

jtaub commented 1 year ago

I am still getting this error after upgrading to 0.15.7

jtaub commented 2 months ago

I am still getting this error after upgrading to 0.15.10

jtaub commented 1 month ago

I am still getting this error after upgrading to 0.15.11