-
Couldn't load subscription status.
- Fork 3.1k
Description
Component(s)
exporter/awsemf
What happened?
Description
awsemfexporter will throw an error if any metric contains inf values. This is due to the json parsing failing. Logs in the collector will look like this
2023-11-17T00:09:58.134Z warn [email protected]/batch_processor.go:258 Sender failed {"kind": "processor", "name": "batch/metrics", "pipeline": "metrics/cloudwatch", "error": "json: unsupported value: +Inf"}
This will cause all metrics in that batch to be dropped. These errors are common when using a prometheus receiver -> aws emf exporter as inf values are common among prometheus metrics. This is similar to #26267. For the time being I believe this should be handled similar to #26267 where all metrics containing inf values are dropped.
Collector version
v0.88.0
Log output
2023-11-17T00:09:58.134Z warn [email protected]/batch_processor.go:258 Sender failed {"kind": "processor", "name": "batch/metrics", "pipeline": "metrics/cloudwatch", "error": "json: unsupported value: +Inf"}