Skip to content

wyukawa/fluent-plugin-jstat

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages