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

Support sending Graphite metric attributes as tags #1576

Merged
merged 1 commit into from May 9, 2020

Conversation

fitzoh
Copy link
Contributor

@fitzoh fitzoh commented May 9, 2020

What Problem does this PR solve?

I recently submitted a pull request to micrometer to enable graphite tag support.

Apparently I failed to actually test that end to end, and as @workless discovered in micrometer-metrics/micrometer#2069 the PR I submitted doesn't work due to the metric attributes (e.g. p999, stddev or m15) appended to the metric name by the dropwizard graphite reporter.

For example, a metric with a base name of my.metric;thing=foo would be sent to graphite as my.metric;thing=foo.count, modifying the user's intended tag value.

Instead, it should be sent to graphite as my.metric;thing=foo;metricattribute=value.count (or something similar).

What does this PR do?

This PR updates the GraphiteReporter to optionally send metric attributes as tags instead of using the default dot delimited format.
Defaults to the existing behavior, and does not attempt to add tag usage anywhere else within the project.

Primarily intended to allow other projects that use the graphite reporter as a library (micrometer) to support graphite tags.

Updates the GraphiteReporter to optionally send metric attributes as tags instead of using the default dot delimited format.
Defaults to the existing behavior, and does not attempt to add tag usage anywhere else within the project.

Primarily intended to allow other projects that use the graphite reporter as a library (micrometer) to support graphite tags.
Copy link
Member

@joschi joschi left a comment

Choose a reason for hiding this comment

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

@fitzoh LGTM. Thank you very much!

@joschi joschi added this to the 4.1.8 milestone May 9, 2020
@joschi joschi changed the title Add ability to send graphite metric attributes as tags Support sending Graphite metric attributes as tags May 9, 2020
@joschi joschi merged commit d88d9e7 into dropwizard:4.1-development May 9, 2020
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.

None yet

2 participants