Skip to content

Commit

Permalink
Merge pull request #4 from easybiblabs/t/haproxy-metrics
Browse files Browse the repository at this point in the history
Improve statsd metrics
  • Loading branch information
baccenfutter committed Nov 30, 2015
2 parents 13de45c + d1f9080 commit c22d5ee
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/haproxyctl
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ begin
status.each do |line|
if not line.chomp == ""
stats=Hash[HEADERS.zip(line.split(','))]
%w(scur smax ereq econ rate).each do |statname|
%w(scur smax ereq econ rate act chkfail chkdown).each do |statname|
next unless stats['svname'] == 'BACKEND'
puts "HAProxy.#{INSTANCE}.#{stats['pxname']}.#{stats['svname']}.#{statname}:#{stats[statname]}|g"
end
end
Expand Down

0 comments on commit c22d5ee

Please sign in to comment.