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

Filter plugin metrics value by include_pattern and exclude_pattern option #416

Merged
merged 7 commits into from Oct 2, 2017

Conversation

@astj
Copy link
Contributor

commented Sep 28, 2017

When ruby ./dice.rb generates two metrics dice6 and dice20, following plugin config now only sends dice6 metrics to Mackerel.

[plugin.metrics.dice]
command = "ruby ./dice.rb"
include_pattern = '^dice6'

And exclude_pattern will exclude metrics if the metric name matches exclude_pattern.

@astj astj changed the title Filter plugin metrics value by metric_name_pattern option Filter plugin metrics value by include_pattern and exclude_pattern option Sep 28, 2017
@mechairoi

This comment has been minimized.

Copy link
Contributor

commented Sep 29, 2017

LGTM!

@astj

This comment has been minimized.

Copy link
Contributor Author

commented Oct 2, 2017

Thank you!

@astj astj merged commit fc25ad8 into master Oct 2, 2017
5 checks passed
5 checks passed
continuous-integration/appveyor/branch AppVeyor build succeeded
Details
continuous-integration/appveyor/pr AppVeyor build succeeded
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
continuous-integration/travis-ci/push The Travis CI build passed
Details
coverage/coveralls Coverage increased (+0.09%) to 66.204%
Details
@astj astj deleted the filter-metrics branch Oct 2, 2017
@shibayu36 shibayu36 referenced this pull request Oct 4, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.