No commit activity in last 3 years
No release in over 3 years
Disk Usage plugin for FluentD
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.10
~> 10.0

Runtime

< 2, >= 0.10.30
 Project Readme

Fluent::Plugin::Diskusage

Send disk usage per mountpoint as events to FluentD.

Installation

fluent-gem install fluent-plugin-diskusage

or

/usr/lib64/fluent/ruby/bin/fluent-gem install fluent-plugin-diskusage

Dependencies

This plugin depends on the sys-filesystem ruby gem

Usage

refresh_interval is an optional parameter, by default the plugin will poll every 2 minutes (120 seconds)

label is a custom label that will be included in the event record

<source>
	type        diskusage
	tag         <YOUR TAG>
	mountpoint  /
	label       rootfs
</source>

<source>
	type             diskusage
	tag              <YOUR TAG>
	mountpoint       /data
	label            DataFiles
	refresh_interval 1800
</source>

Record Format

	"label"        => 'rootfs',
	"total_bytes"  => 10737418240
	"free_bytes"   => 6442450944
	"used_bytes"   => 4294967296
	"used_percent" => 0.4
	"free_percent" => 0.6
	"label"        => 'DataFiles',
	"total_bytes"  => 1099511627775
	"free_bytes"   => 536870912000
	"used_bytes"   => 536870912000
	"used_percent" => 0.5
	"free_percent" => 0.5

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/jwestbrook/fluent-plugin-diskusage.

License

The gem is available as open source under the terms of the MIT License.