bin/metrics-haproxy.rb in sensu-plugins-haproxy-0.1.0 vs bin/metrics-haproxy.rb in sensu-plugins-haproxy-0.1.1
- old
+ new
@@ -173,9 +173,10 @@
output "#{config[:scheme]}.#{line[0]}.connect_time", line[59]
output "#{config[:scheme]}.#{line[0]}.response_time", line[60]
output "#{config[:scheme]}.#{line[0]}.average_time", line[61]
elsif config[:server_metrics]
output "#{config[:scheme]}.#{line[0]}.#{line[1]}.session_total", line[7]
+ output "#{config[:scheme]}.#{line[0]}.#{line[1]}.session_current", line[4]
end
if line[1] != 'BACKEND' && !line[1].nil?
up_by_backend[line[0]] ||= 0
up_by_backend[line[0]] += (line[17] == 'UP') ? 1 : 0