apache / hertzbeat

Apache HertzBeat(incubating) is a real-time monitoring system with agentless, performance cluster, prometheus-compatible, custom monitoring and status page building capabilities.
https://hertzbeat.apache.org/
Apache License 2.0
5.68k stars 984 forks source link

[Question] kafka monitoring is not working. #510

Open liudonghua123 opened 1 year ago

liudonghua123 commented 1 year ago

Question

I tried to add kafka monitoring, filled host and port (9092). And when I click test button, I got 测试连接失败 Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: java.io.EOFException].

I have also tested port connectivity via nc -nz <IP> 9092.

I did not find how can I specify the username/password either.

tomsun28 commented 1 year ago

Hi, The kafka monitor need enable jmx service, like this. https://hertzbeat.com/docs/help/kafka#kafka%E5%BC%80%E5%90%AFjmx%E5%8D%8F%E8%AE%AE%E6%AD%A5%E9%AA%A4