fluentd output plugin to send metrics to graphite
MIT License
fluentd output plugin to send metrics to graphite
Add this line to your application's Gemfile:
gem 'fluent-plugin-graphite'
And then execute:
$ bundle
Or install it yourself as:
$ gem install fluent-plugin-graphite
message: metrics { "f1":"100", "f2":"200", "f3":"300" }
configuration
<match metrics>
type graphite
host localhost
port 2003
tag_for prefix
name_keys f1,f3
</match>
output graph_name
metrics.f1
metrics.f3
configuration
<match metrics>
type graphite
host localhost
port 2003
tag_for prefix
name_key_pattern f\d
</match>
output graph_name
metrics.f1
metrics.f2
metrics.f3
configuration
<match metrics>
type graphite
host localhost
port 2003
tag_for suffix
name_keys f1,f2
</match>
output graph_name
f1.metrics
f2.metrics
configuration
<match metrics>
type graphite
host localhost
port 2003
tag_for ignore
name_keys f1,f2
</match>
output graph_name
f1
f2
2003
.prefix
.prefix
, suffix
or ignore
.
prefix
uses the tag name as graph_name prefix.suffix
uses the tag name as graph_name suffix.ignore
uses the tag name for nothing.name_keys
or name_key_pattern
is required.name_keys
or name_key_pattern
is required.git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)