Skip to content

Instantly share code, notes, and snippets.

@takesato
Forked from holysugar/fluent-df.conf
Created March 23, 2013 08:58
Show Gist options
  • Save takesato/5227066 to your computer and use it in GitHub Desktop.
Save takesato/5227066 to your computer and use it in GitHub Desktop.
<source>
type exec
command df -k / | sed -E -e 1d -e N -e 's/\n//g' -e 's/%//' -e 's/ +/\t/g'
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