influxdata/influxdb-observability

InfluxDB protocol v2 doesn't send "+Inf" bucket

akvlad opened this issue · 0 comments

The OpenTelemetry to InfluxDB Line Protocol (v2) https://github.com/influxdata/influxdb-observability/tree/main/otel2influx metrics converter is declared to be Prometheus compatible.

Prometheus histogram always has le="+Inf" bucket. But the converter omits sending +Inf bucket value in several cases.

https://github.com/influxdata/influxdb-observability/blob/main/otel2influx/metrics_telegraf_prometheus_v2.go#L191 this line shows that you are aware that buckets set can have 1 last unbounded bucket which is le="+Inf".

Libraries like https://github.com/open-telemetry/opentelemetry-collector-contrib/tree/main/exporter/influxdbexporter send the last unbounded bucket.

Please add the last +Inf bucket to the set of points if the bucketCounts slice length is 1 element bigger then explicitBounds.