Skip to content

CrateDB Output to replace dots in tags with custom separator #7026

@h4xmd

Description

@h4xmd

Proposal:

When using the CrateDB output plugin with the Docker plugin enabled, some measurements fail to get inserted into CrateDB because they have a dot in their tag name.

Current behavior:

Feb 14 03:50:21 agent-1 telegraf[1345]: 2020-02-14T03:50:21Z E! [agent] Error writing to output [cratedb]: ERROR: "io.k8s.description" contains a dot (SQLSTATE XX000)
Feb 14 03:50:31 agent-1 telegraf[1345]: 2020-02-14T03:50:31Z E! [agent] Error writing to output [cratedb]: ERROR: "dockerImage.teamcity.buildNumber" contains a dot (SQLSTATE XX000)

Desired behavior:

The measurements should have the dots replaced with something valid for CrateDB such as underscores or be able to be configurable.

Use case:

Currently finding it difficult for Telegraf to send all metrics into CrateDB

Metadata

Metadata

Assignees

Labels

bugunexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions