Skip to content

Instantly share code, notes, and snippets.

@holysugar
Created March 14, 2013 07:32
Show Gist options
  • Save holysugar/5159508 to your computer and use it in GitHub Desktop.
Save holysugar/5159508 to your computer and use it in GitHub Desktop.
fluentd reads df
<source>
type exec
command df -k / | sed -E -e 1d -e 's/ +/ /g' -e 's/%//'
tag df
keys fs,1024_blocks,used,available,capacity,mounted_on
run_interval 30s
</source>
<match df>
type growthforecast
gfapi_url http://gf.example.com/api/
service myservicename
section df_root
name_keys 1024_blocks,used,available,capacity
</match>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment