Fluentd input plugin for top command.
Ruby
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib/fluent/plugin
test
.gitignore
.travis.yml
Gemfile
LICENSE.txt
README.md
Rakefile
VERSION
fluent-plugin-top.gemspec

README.md

fluent-plugin-top

Gem Version Build Status

Fluentd input plugin for top command.

If you focus on system metrics rather than each process, you should use dstat plugin.

Configuration

<source>
  @type top
  tag local.top       # *required*
  interval 30         # default: 10.0
  command_line true   # default: true
  extra_switch -w 200 # default: ""
  cpu_percent 50      # default: nil
</source>
  • tag: Output tag. [required]
  • interval: Refresh interval in sec.
  • command_line: Get command line (/usr/bin/ruby foo.rb -v) instead of simple name (ruby).
  • extra_switch: Extra command line switch for top command.
  • cpu_percent: Threshold - CPU usage (percent).
  • mem_percent: Threshold - Memory usage (percent).
  • mem: Threshold - Memory usage in megabytes.

At least one threshold parameter should be specified. Otherwise, this plugin does not output anything. If you specify multiple threshold parameters, they are "OR"ed.

Copyright

Copyright (c) 2016 Tetsu Izawa (@moccos)

Apache License, Version 2.0