diff --git a/hbase-exporter b/hbase-exporter index dbc9fd0..b473c6a 100755 --- a/hbase-exporter +++ b/hbase-exporter @@ -170,16 +170,16 @@ class zk(): num_active_servers += 1 if match.group(1) == "leader": - has_leader = 1 + zk_has_leader = 1 zk_leader_address = address - prom_zookeeper_has_leader.set(has_leader) + prom_zookeeper_has_leader.set(zk_has_leader) for line in error: logging.info(line) prom_zookeeper_num_live.set(num_active_servers) logging.info("zk: %d active ZooKeeper servers", num_active_servers) - if has_leader: + if zk_has_leader: logging.info("zk: Zookeeper has leader: True") logging.info("zk: leader: %s", zk_leader_address) else: