yyj8 opened a new pull request, #21935: URL: https://github.com/apache/pulsar/pull/21935
For detailed improvement instructions, please refer to issues: https://github.com/apache/pulsar/issues/21934 ### Motivation Currently, Pulsar does not monitor the number of connections to client IPs and roles. When there are many business teams accessing the cluster, and there are also many topics and production consumers, it is difficult for us to quickly locate which IPs or roles are accessing the cluster abnormally from a global perspective and optimize them. So, we hope to have a monitoring indicator that can statistically analyze the connection information between IP and role dimensions, making it easier to quickly locate problems in the later stage. ### Modifications Add new metircs to ServerCnx.java class: ``` private static final Gauge clientIpAndRoleConnections = Gauge.build() .name("pulsar_broker_client_ip_role_connections") .labelNames("ip", "role") .help("The number of client IP and role connections") .register(); ``` ### Documentation - [ ] `doc` <!-- Your PR contains doc changes --> - [ ] `doc-required` <!-- Your PR changes impact docs and you will update later --> - [ ] `doc-not-needed` <!-- Your PR changes do not impact docs --> - [ ] `doc-complete` <!-- Docs have been already added --> ### Matching PR in forked repository PR in forked repository: https://github.com/yyj8/pulsar/pull/7 -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
