bin/metrics-elasticache.rb in sensu-plugins-aws-10.1.1 vs bin/metrics-elasticache.rb in sensu-plugins-aws-10.1.2
- old
+ new
@@ -105,10 +105,11 @@
output key.downcase.to_s, value.average, value[:timestamp].to_i
end
end
def run
- elasticaches.describe_cache_clusters.cache_clusters.each do |elasticache|
+ # TODO: come back and refactor
+ elasticaches.describe_cache_clusters.cache_clusters.each do |elasticache| # rubocop:disable Metrics/BlockLength)
if elasticache.engine.include? 'redis'
if config[:statistic] == ''
default_statistic_per_metric = {
'BytesUsedForCache' => 'Average',
'CacheHits' => 'Average',