Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

About

Fluentd input plugin for top command.

Resources

License

Languages

You can’t perform that action at this time.