bin/metrics-elasticache.rb in sensu-plugins-aws-2.0.1 vs bin/metrics-elasticache.rb in sensu-plugins-aws-2.1.0

- old
+ new

@@ -14,11 +14,12 @@ # DEPENDENCIES: # gem: aws-sdk-v1 # gem: sensu-plugin # # USAGE: -# #YELLOW +# elasticache-metrics.rb -n rediscluster -c redis -a key -k secret +# elasticache-metrics.rb -n memcachedcluster -c memcached -a key -k secret # # NOTES: # Redis: http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CacheMetrics.Redis.html # Memcached: http://docs.aws.amazon.com/AmazonCloudWatch/latest/DeveloperGuide/CacheMetrics.Memcached.html # @@ -90,10 +91,10 @@ } end def run if config[:scheme] == '' - graphitepath = "#{config[:elasticachename]}.#{config[:metric].downcase}" + graphitepath = "elasticache.#{config[:cacheclusterid]}" else graphitepath = config[:scheme] end statistic_type = {