14 lines
342 B
Python
Executable File
14 lines
342 B
Python
Executable File
#!/usr/bin/env python
|
|
import memcache
|
|
|
|
servers = ('127.0.0.1:11211',)
|
|
|
|
mc = memcache.Client(servers)
|
|
|
|
for server_stats in mc.get_stats():
|
|
server, stats = server_stats
|
|
server = server.split(' ', 2)
|
|
print '<<<app-memcached-'+server[0]+'>>>'
|
|
for stat_name, value in sorted(stats.iteritems()):
|
|
print '%s:%s' % (stat_name, value)
|