bin/metrics-es-cluster.rb in sensu-plugins-elasticsearch-1.5.0 vs bin/metrics-es-cluster.rb in sensu-plugins-elasticsearch-1.5.1

- old
+ new

@@ -189,10 +189,10 @@ acquire_health.each do |k, v| output(config[:scheme] + '.' + k, v) end acquire_cluster_metrics.each do |cluster_metric| cluster_metric[1].each do |k, v| - output(config[:scheme] + '.' + cluster_metric[0] + '.' + k, v) + output(config[:scheme] + '.' + cluster_metric[0] + '.' + k, v || 0) end end output(config[:scheme] + '.document_count', acquire_document_count) output(config[:scheme] + '.allocation_status', acquire_allocation_status) unless acquire_allocation_status.nil? end