Skip to content

fix(influx2otel): accept integer count, sum, and bucket values for histograms and summaries#346

Open
skartikey wants to merge 1 commit into
influxdata:mainfrom
skartikey:fix/histogram-summary-integer-field-values
Open

fix(influx2otel): accept integer count, sum, and bucket values for histograms and summaries#346
skartikey wants to merge 1 commit into
influxdata:mainfrom
skartikey:fix/histogram-summary-integer-field-values

Conversation

@skartikey

@skartikey skartikey commented Jul 6, 2026

Copy link
Copy Markdown

The Telegraf/Prometheus V1 histogram and summary converters only accepted float64 field values. Influx line protocol integer fields (for example count=1i) are decoded as int64, so any untyped metric that was inferred as a histogram or summary and carried integer count/sum/bucket values was rejected with "unsupported histogram count value type int64" and dropped.

This adds small toFloat64/toUint64 helpers that accept the same numeric field types as the gauge and sum converters (float64, int64, uint64) and uses them in convertHistogramV1 and convertSummaryV1 for the count, sum, and bucket/quantile values.

The V2 converters (convertHistogramV2/convertSummaryV2) have the same integer-field limitation and will be addressed in a separate PR.

Related to influxdata/telegraf#14371

@skartikey skartikey requested review from a team as code owners July 6, 2026 10:41
@skartikey skartikey requested a review from helenosheaa July 6, 2026 10:42
…stograms and summaries

Influx line protocol integer fields (for example count=1i) decode as int64,
but the V1 histogram and summary converters only accepted float64 and rejected
them with "unsupported histogram count value type int64", dropping the metric.

Add toFloat64/toUint64 helpers that also accept int64 and uint64 (matching the
gauge and sum converters) and use them for the count, sum, and bucket/quantile
values in convertHistogramV1 and convertSummaryV1.

Related to influxdata/telegraf#14371
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant