def get_cluster_stats(servers):
    stats = {}
    for host, port in servers:
        try:
            zk = ZooKeeperServer(host, port)
            stats["%s:%s" % (host, port)] = zk.get_stats()

        except socket.error, e:
            # ignore because the cluster can still work even 
            # if some servers fail completely

            # this error should be also visible in a variable
            # exposed by the server in the statistics

            logging.info('unable to connect to server '\
                '"%s" on port "%s"' % (host, port))

    return stats
Given a context, return a sorted list of variable names in the context
dataset/ETHPy150Open andreisavu/zookeeper-monitoring/check_zookeeper.py/get_cluster_stats--crossover with--dataset/ETHPy150Open calebsmith/django-template-debug/template_debug/utils.py/get_variables