mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 14:16:00 +00:00
twemproxy: add python3 support
This commit is contained in:
parent
4d8456af03
commit
1e81c032d5
1 changed files with 2 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue