class Fluent::Plugin::GraphiteOutput

Public Instance Methods

configure(conf) click to toggle source
Calls superclass method
# File lib/fluent/plugin/out_graphite.rb, line 21
def configure(conf)
  super
end
process(tag, es) click to toggle source
# File lib/fluent/plugin/out_graphite.rb, line 25
def process(tag, es)
  es.each do |time, record|
    emit_tag = tag.dup
    metrics = format_metrics(emit_tag, record)

    # implemented to immediate call post method in this loop, because graphite-api.gem has the buffers.
    post(metrics, time)
  end

end
start() click to toggle source
Calls superclass method
# File lib/fluent/plugin/out_graphite.rb, line 16
def start
  super
  init_client(@log_level, @host, @port)
end