Skip to content

Influx 1.0 sink produces invalid unsigned integers #2867

@neoeinstein

Description

@neoeinstein

Influx 1.0 does not support unsigned integers (u), but does support integers (i). Sending Histogram data over to Influx 1.0 responds back with a 400 Bad Request, and the following error in the body and headers:

X-Influxdb-Error: unable to parse 'test.example_seconds,cost=12,metric_type=histogram,result=incorrect bucket_1=1u,bucket_0.025=0u,bucket_0.01=0u,bucket_0.05=0u,bucket_0.5=1u,bucket_0.1=0u,bucket_0.25=0u,bucket_2.5=1u,bucket_0.005=0u,bucket_10=1u,count=1,sum=0.322013824,bucket_5=1u 1592511668537779000': invalid number
X-Influxdb-Version: 1.7.10

Changing all of the us to is results in the expected 204 No Content response.

One potential solution is to have all Unsigned Integers transmitted with i when the backend is a 1.0 Influx DB.

Sources:

Metadata

Metadata

Assignees

No one assigned

    Labels

    provider: influxdataAnything `influxdata` service provider relatedsink: influxdb_metricsAnything `influxdb_metrics` sink relatedtype: bugA code related bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions