bin/metrics-elasticache.rb in sensu-plugins-aws-2.1.0 vs bin/metrics-elasticache.rb in sensu-plugins-aws-2.1.1
- old
+ new
@@ -90,14 +90,14 @@
region: config[:aws_region]
}
end
def run
- if config[:scheme] == ''
- graphitepath = "elasticache.#{config[:cacheclusterid]}"
- else
- graphitepath = config[:scheme]
- end
+ graphitepath = if config[:scheme] == ''
+ "elasticache.#{config[:cacheclusterid]}"
+ else
+ config[:scheme]
+ end
statistic_type = {
'redis' => {
'CPUUtilization' => 'Percent',
'SwapUsage' => 'Bytes',