Fluentd plugin to input jstat command result.
install with gem or fluent-gem command as:
### native gem
$ gem install fluent-plugin-jstat
### fluentd gem
$ fluent-gem install fluent-plugin-jstat
<source>
type jstat
option -gcutil
emit_interval 60
tag hiveserver.jstat
pid_path /var/run/hiveserver.pid
scale 1
</source>
- option
- option for jstat command (for example, -gcutil)
- emit_interval
- emit interval second (default: 60)
- tag
- emit tag
- pid_path
- pid file path. fluent-plugin-jstat executes jstat command with process id written by thie path.
- scale
- scale jstat command resultz(default: 1)
2014-03-17 13:44:36 +0900 hiveserver.jstat: {"S0":0.0,"S1":0.0,"E":1.25,"O":41.29,"P":63.54,"YGC":253.0,"YGCT":1.519,"FGC":252.0,"FGCT":137.145,"GCT":138.665}
If you specify scale 100, the following result.
2014-03-17 13:44:36 +0900 hiveserver.jstat: {"S0":0.0,"S1":0.0,"E":125.0,"O":4129.0,"P":6354.0,"YGC":25300.0,"YGCT":151.9,"FGC":25200.0,"FGCT":13714.5,"GCT":13866.5}
- Fork it ( http://github.com/wyukawa/fluent-plugin-jstat/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request