-
Notifications
You must be signed in to change notification settings - Fork 37
Metric Value List can go above MetricDefinition limits, causing CW missing metrics #72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Maybe we are not limiting the size of the metric value at all. Line 64 in b6a99c0
|
It's not just the number of metrics, it's all validation. Size of numbers, infinity... |
I wonder if instead of having a I understand that we could lose some metrics values, but given the current 100 limitation, it would be better than not having a metric at all. Line 49 in b6a99c0
https://guava.dev/releases/snapshot/api/docs/com/google/common/collect/EvictingQueue.html |
Not quite the same issue, but this handle a limit on the number of metrics we can process per log: |
This problem will likely be handled in a similar way as the one you linked. We will continue to accept additional metrics and at serialization time, split it across multiple events. You can see how this was implemented for python. Regarding @msailes's comment, yes we would like to add improved validation to ensure we only accept valid dimensions, metric names, namespaces, and metric values. Eventually, we'd also like to support client-side aggregation which would allow you to include StatisticSets and Values/Counts similar to MetricDatums. |
Apparently if you call
MetricsLogger.putMetric()
more than 100 times, it will keep adding values to the metric causing to reach out of it's limits. This would cause missing metrics as the log entry would not be processed.Reference:
Metrics— An array of MetricDefinition objects. This array MUST NOT contain more than 100 MetricDefinition objects.
https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/CloudWatch_Embedded_Metric_Format_Specification.html
The text was updated successfully, but these errors were encountered: