tagomoris / fluent-plugin-flowcounter

TODO: one-line summary of your gem
Other
53 stars 20 forks source link

Add delimiter config param #10

Closed wbchn closed 9 years ago

wbchn commented 9 years ago

@tagomoris add a delimiter config between tagname and count(or bytes/count_rate/bytes_rate), it makes easy when using graphite monitor(instead of using regex query).

eg: setting delimiter ., the flower count will output:

2015-08-04 20:36:41 -0700 fluentd-metrics.ip-172-16-2-243: {"fluent.info.count":0,"fluent.info.bytes":0,"fluent.info.count_rate":0.0,"fluent.info.bytes_rate":0.0}
2015-08-04 20:36:41 -0700 fluentd-metrics.ip-172-16-2-243: {"test.follow.count":5,"test.follow.bytes":657,"test.follow.count_rate":0.08,"test.follow.bytes_rate":10.95}
2015-08-04 20:37:03 -0700 fluentd-metrics.ip-172-16-2-243: {"fluent.warn.count":0,"fluent.warn.bytes":0,"fluent.warn.count_rate":0.0,"fluent.warn.bytes_rate":0.0}
tagomoris commented 9 years ago

Seems ok and reasonable. Thanks!

wbchn commented 9 years ago

Thank you.

tagomoris commented 9 years ago

v0.3.1 released w/ this patch.