$ fluent-gem install fluent-plugin-graphite
<match graphite>
type graphite
host localhost # optional
port 2003 # optional
</match>
fluent_logger.post('graphite',
:key => 'mycounter',
:count => 1
)
fluent_logger.post('graphite',
:key => 'myrenderingtime',
:count => 1,
:sampling => 0.1
)
fluent_logger.post('graphite',
:key => 'gaugor',
:gauge => 333
)
# not work now...
fluent_logger.post('graphite',
:key => 'myrenderingtime',
:timer => 320
)
Copyright (c) 2012- Yuichi Tateno
Apache License, Version 2.0