Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cherry-pick #8385 to 6.x: Fix dropwizard parsing of metric names #8420

Merged
merged 1 commit into from
Oct 11, 2018

Conversation

adriansr
Copy link
Contributor

@adriansr adriansr commented Sep 24, 2018

Cherry-pick of PR #8385 to 6.x branch. Original message:

Dropwizard metrics parser extracts tags embedded into metrics names. However, it crashes when the metric name contains curly braces.

This patch improves parsing by adding additional checks and also makes sures that only tags at the end of the metric name are extracted.

Assuming that the tags extracted by the dropwizard module are the ones introduced by this PR: dropwizard/metrics#839

Fixes #8365

@adriansr adriansr closed this Sep 24, 2018
@adriansr adriansr reopened this Sep 24, 2018
@adriansr adriansr changed the title Cherry-pick #6385 to 6.x: Update running-on-docker.asciidoc Cherry-pick #8385 to 6.x: Fix dropwizard parsing of metric names Sep 26, 2018
Dropwizard metrics parser extracts tags embedded into metrics names.
However, it crashes when the metric name contains curly braces.

This patch improves parsing by adding additional checks and also makes
sures that only tags at the end of the metric name are extracted.

Assuming that the tags extracted by the dropwizard module are the ones
introduced by this PR: dropwizard/metrics#839

Fixes elastic#8365

(cherry picked from commit f5890b7)
Copy link
Contributor

@kvch kvch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WFG

@adriansr adriansr merged commit d06740c into elastic:6.x Oct 11, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants