No commit activity in last 3 years
No release in over 3 years
jstat input plugin for Fluent event collector
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

~> 1.5
>= 0

Runtime

 Project Readme

fluent-plugin-jstat

Fluentd plugin to input jstat command result.

Installation

install with gem or fluent-gem command as:

### native gem
$ gem install fluent-plugin-jstat

### fluentd gem
$ fluent-gem install fluent-plugin-jstat

Configuration

<source>
  type jstat
  option -gcutil
  emit_interval 60
  tag hiveserver.jstat
  pid_path /var/run/hiveserver.pid
  scale 1
 </source>

Parameters

  • 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)

Output

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}

Contributing

  1. Fork it ( http://github.com/wyukawa/fluent-plugin-jstat/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request