Created
July 30, 2012 09:20
-
-
Save toritori0318/3205827 to your computer and use it in GitHub Desktop.
fluentd+growthforecastのグラフ化時、自動でHOSTNAMEつけるパターン
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # http://d.hatena.ne.jp/toritori0318/20120723/1343059303 | |
| <source> | |
| type tail | |
| format /^(?<date>[^\t]+)\t(?<cpu-usr>[^\t]+)\t(?<cpu-sys>[^\t]+)\t(?<cpu-idl>[^\t]+)\t(?<cpu-wai>[^\t]+)\t(?<cpu-hiq>[^\t]+)\t(?<cpu-siq>[^\t]+)\t(?<la-1m>[^\t]+)\t(?<la-5m>[^\t]+)\t(?<la-15m>[^\t]+)\t(?<mem-used>[^\t]+)\t(?<mem-buff>[^\t]+)\t(?<mem-cach>[^\t]+)\t(?<mem-free>[^\t]+)\t(?<dsk-read>[^\t]+)\t(?<dsk-writ>[^\t]+)\t(?<io-read>[^\t]+)\t(?<io-writ>[^\t]+)\t(?<net-recv>[^\t]+)\t(?<net-send>[^\t]+)/ | |
| path /tmp/dstat.log | |
| tag dstat.Tclmdrn | |
| </source> | |
| <match dstat.Tclmdrn> | |
| type forest | |
| subtype rewrite_tag_filter | |
| <template> | |
| rewriterule1 date ^.*$ dstat.Tclmdrn.__HOSTNAME__ | |
| </template> | |
| </match> | |
| <match dstat.Tclmdrn.**> | |
| type copy | |
| <store> | |
| type growthforecast | |
| gfapi_url http://growthforecast_server:5009/api/ | |
| service dstat | |
| tag_for section | |
| remove_prefix dstat.Tclmdrn | |
| name_key_pattern . | |
| </store> | |
| </match> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment