Skip to content

Graphite - allow to silently skip infinity and NaN values #6415

@piotrp

Description

@piotrp

Feature Request

Allow Graphite parser to silently ignore values that are supported by Graphite but unsupported by InfluxDB (NaN, infinity).

Proposal:

Introduce a flag that would allow to drop these values without writing anything to log.

Current behavior:

Parser logs an error after encountering such value:

if math.IsNaN(v) || math.IsInf(v, 0) {
return nil, &UnsupposedValueError{Field: fields[0], Value: v}
}

Desired behavior:

Silently drop infinity and NaN values (Inf, -Inf, NaN, Infinity, -Infinity). They are already properly parsed, but currently log an error.

Use case:

I want to process some Graphite metrics in Telegraf and pass them to InfluxDB, but currently Telegraf generates an error message to system journal for each dropped metric value, resulting in an unacceptable amount of logs.

Metadata

Metadata

Assignees

Labels

feature requestRequests for new plugin and for new features to existing plugins

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions