Skip to content

Fix dropwizard parsing error for metrics that need escaped#4142

Merged
danielnelson merged 1 commit intomasterfrom
dropwizard-parser-escaping
May 14, 2018
Merged

Fix dropwizard parsing error for metrics that need escaped#4142
danielnelson merged 1 commit intomasterfrom
dropwizard-parser-escaping

Conversation

@danielnelson
Copy link
Contributor

@danielnelson danielnelson commented May 12, 2018

If the dropwizard parser cannot convert the metric name into a valid line protocol series then we will accept the name as is.

This adds a way to parse only the <measurement>,<tagset> portion of line protocol and uses it to create new metrics instead of serializing the entire dropwizard metric to line protocol. Anything that would require escaping to be valid cannot be converted, because escaping it fully would prevent tags from being extracted.

Required for all PRs:

  • Signed CLA.
  • Associated README.md updated.
  • Has appropriate unit tests.

If the dropwizard parser cannot convert the metric name into a valid
line protocol series then we will accept the name as is.
@danielnelson danielnelson added the fix pr to fix corresponding bug label May 12, 2018
@danielnelson danielnelson added this to the 1.6.3 milestone May 12, 2018
@danielnelson
Copy link
Contributor Author

@atzoum Can you review/test?

@atzoum
Copy link
Contributor

atzoum commented May 13, 2018

LGTM :)

@danielnelson danielnelson merged commit 0af40a8 into master May 14, 2018
@danielnelson danielnelson deleted the dropwizard-parser-escaping branch May 14, 2018 18:00
danielnelson added a commit that referenced this pull request May 14, 2018
If the dropwizard parser cannot convert the metric name into a valid
line protocol series then we will accept the name as is.

(cherry picked from commit 0af40a8)
arkady-emelyanov pushed a commit to arkady-emelyanov/telegraf that referenced this pull request May 18, 2018
…a#4142)

If the dropwizard parser cannot convert the metric name into a valid
line protocol series then we will accept the name as is.
leodido pushed a commit that referenced this pull request May 22, 2018
If the dropwizard parser cannot convert the metric name into a valid
line protocol series then we will accept the name as is.
MrMaxBuilds pushed a commit that referenced this pull request Jun 26, 2018
If the dropwizard parser cannot convert the metric name into a valid
line protocol series then we will accept the name as is.
otherpirate pushed a commit to otherpirate/telegraf that referenced this pull request Mar 15, 2019
…a#4142)

If the dropwizard parser cannot convert the metric name into a valid
line protocol series then we will accept the name as is.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

fix pr to fix corresponding bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants