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

Maxime/jmxfetch exclude tags #116

Merged
merged 1 commit into from
Dec 12, 2016
Merged

Conversation

hush-hush
Copy link
Member

This is usefull to filter out unique tags like host/client id, ...
This may/should be use in combination with the 'histogram' metric_type to avoid loosing metric points.

@hush-hush hush-hush force-pushed the maxime/jmxfetch-exclude-tags branch 2 times, most recently from 32f4d6d to 8e54007 Compare December 8, 2016 11:10
This is usefull to filter out unique tags like host/client id, ...
This may/should be use in combination with the 'histogram' metric_type to avoid loosing metric points.
@hush-hush hush-hush force-pushed the maxime/jmxfetch-exclude-tags branch from 8e54007 to ee9cf50 Compare December 8, 2016 17:12
Copy link
Member

@yannmh yannmh left a comment

Choose a reason for hiding this comment

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

Looks good to me. Feel free to merge.

for (Iterator<String> it = this.defaultTagsList.iterator(); it.hasNext();) {
if (it.next().startsWith(excludedTagName + ":")) {
it.remove();
}
Copy link
Member

Choose a reason for hiding this comment

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

Instead of this double for loop, can we have the getExcludeTags method to return a Set, and only iterates over defaultTagsList performing lookups?

@hush-hush hush-hush merged commit 314beb1 into master Dec 12, 2016
@hush-hush hush-hush deleted the maxime/jmxfetch-exclude-tags branch December 12, 2016 17:43
@olivielpeau olivielpeau added this to the 0.13.0 milestone Jan 31, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants