diff --git a/plugins/twemproxy/nutcracker_requests_ b/plugins/twemproxy/nutcracker_requests_ index bc06d654..655ed61c 100755 --- a/plugins/twemproxy/nutcracker_requests_ +++ b/plugins/twemproxy/nutcracker_requests_ @@ -41,7 +41,7 @@ def process_data(): if(type(value) == dict): total = 0 # get server requests - for pool_key, pool_value in value.iteritems(): + for pool_key, pool_value in value.items(): if(type(pool_value) == dict): total += pool_value["requests"] print "requests_"+key+".value"+" "+str(total) @@ -52,7 +52,7 @@ def process_config(): print "graph_vlabel requests/s" data = get_stats(); - for key, value in data.iteritems(): + for key, value in data.items(): if(type(value) == dict): print "requests_"+key+".label "+key print "requests_"+key+".type COUNTER"