Skip to content

Commit

Permalink
Update statsd.rb
Browse files Browse the repository at this point in the history
Added gauge client.
  • Loading branch information
alistar79 committed Jun 23, 2013
1 parent 86e2186 commit a3e0371
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/logstash/outputs/statsd.rb
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,10 @@ def receive(event)
@client.timing(build_stat(event.sprintf(metric), sender),
event.sprintf(val).to_f, @sample_rate)
end
@gauge.each do |metric, val|
@client.gauge(build_stat(event.sprintf(metric), sender),
event.sprintf(val).to_f, @sample_rate)
end
end # def receive

def build_stat(metric, sender=@sender)
Expand Down

0 comments on commit a3e0371

Please sign in to comment.