No commit activity in last 3 years
No release in over 3 years
Fluentd top command input plugin
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

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