value is a float represented as required by Go's [ParseFloat()](https://golang.org/pkg/strconv/#ParseFloat) function. In addition to standard numerical values, NaN, +Inf, and -Inf are valid values representing not a number, positive infinity, and negative infinity, respectively.
To Reproduce
run fluent-bit with the following config (--config). metrics path is just the encoded return example from above.
Bug Report
Describe the bug Negative values returned from a prometheus exporter result in a parsed value of zero and an incorrect datetime assigned. The source used is the openwrt node exporter: https://github.com/openwrt/packages/tree/openwrt-22.03/utils/prometheus-node-exporter-lua
Prometheus return:
fluent-bit parsed return
Based on the prometheus exposition formats documentation (https://github.com/prometheus/docs/blob/main/content/docs/instrumenting/exposition_formats.md), value is defined as double:
To Reproduce
run fluent-bit with the following config (--config). metrics path is just the encoded return example from above.
Expected behavior
correctly parsed values:
Your Environment