Replies: 2 comments 1 reply
-
|
Hi @PKaelin! For the Transform processor issue, you need to set it with the right data type value, which in this case is
Unfortunately we don't have a custom function to check whether a value is
|
Beta Was this translation helpful? Give feedback.
-
|
Was able to filter the metrics in the scrape configuration instead as there were only a couple of them and only the ones I did not configure in the HAProxy. See solution in the answers. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
I have a Prometheus receiver in OpenTelemetry Collector that receives Gauge metrics with value NaN (Not a Number) which I try to filter/transform before sending it to an InfluxDB backend.
Note that the example data is at the end of this message.
Receiver
The receiver configuration is below and I believe I cannot change the source (HAProxy) to omit NaN values:
Processors-Filter
I did a test filter configuration in Processor like below but the manual says that conditions that apply to the same signal, such as spans and span events, if the "higher" level telemetry matches a condition and is dropped, the "lower" level condition will not be checked. So in the filter below all the Gauge metrics are dropped.
Processors-Transform
I also did a test transform configuration in Processor but that doesn’t seem to set the value even when condition is for all Gauge metric:
So how do I filter/transform metrices with NaN values?
Sample data (Log-Output)
Beta Was this translation helpful? Give feedback.
All reactions