bin/metrics-cassandra-graphite.rb in sensu-plugins-cassandra-2.0.2 vs bin/metrics-cassandra-graphite.rb in sensu-plugins-cassandra-2.1.0

- old
+ new

@@ -345,10 +345,11 @@ metric.gsub!(/[^a-zA-Z0-9]/, '_') # convert all other chars to _ metric.gsub!(/[_]*$/, '') # remove any _'s at end of the string metric.gsub!(/[_]{2,}/, '_') # convert sequence of multiple _'s to single _ metric.downcase! # sanitize metric values for graphite. Numbers only, please. - value = value.chomp(' ms.').gsub(/([0-9.]+)$/, '\1') + # some versions of nodetool omit the '.' following the 'ms' unit. + value = value.chomp(' ms.').chomp(' ms') end [metric, value] end cfstats = nodetool_cmd('cfstats')