xiaotongwang1 commented on pull request #9778:
URL: https://github.com/apache/pulsar/pull/9778#issuecomment-789382546
@merlimat yes ,agree. I check the zookeeper state code ,it register a key
with "num_alive_connections" ,and current AOP register a key with
"zookeeper_server_connections",i think it can support export both 8000(current
AOP style) and 7000 (zookeeper 3.6.x) next one or two release version ,then
change the grafana template with
num_alive_connections、watch_count、ephemerals_count..... and pulsar-zookeeper
ZooKeeperStarter
============code of zookeeper 3.6.x=============
/**
* return the total number of client connections that are alive
* to this server
*/
public int getNumAliveConnections() {
int numAliveConnections = 0;
if (serverCnxnFactory != null) {
numAliveConnections +=
serverCnxnFactory.getNumAliveConnections();
}
if (secureServerCnxnFactory != null) {
numAliveConnections +=
secureServerCnxnFactory.getNumAliveConnections();
}
return numAliveConnections;
}
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]