kafka-monitor
kafka-monitor copied to clipboard
GUI Monitor
Hi, From this blog https://engineering.linkedin.com/blog/2016/05/open-sourcing-kafka-monitor, seems there is a GUI available for Xinfra Monitor. However, the readme page does not provide detailed steps on how to access such GUI?
This is your first issue in the repository. Thank you for raising this issue.' first issue
You need to enable the Jolokia service and then open the file webapp/index.html.
Hi, what do you mean with enabling the Jolokia service?
https://github.com/linkedin/kafka-monitor/blob/77f965527fc594c28ccb87644df534f785398c98/config/xinfra-monitor.properties#L82-L84
@zigarn since the jolokia service needs to run to view the xinfra-monitor web ui I assume the port needed to access the xinfra-monitor ui will be the jolokia port(8778 by default)? I am unable to hit the webapp/index.html end point using the jolokia port both with and without the /jolokia specified. Example end points which are not working:
my.host.com:8778/webapp/index.html
my.host.com:8778/jolokia/webapp/index.html
Can you offer further guidance on how to reach the xinfra-monitor web ui?
@sean-rossignol : once the jolokia service is enabled in xinfra-monitor, you just open directly in your browser directly the static file webapp/index.html, it contains JS code that will call the jolokia service to display data from it.
@sean-rossignol : once the jolokia service is enabled in xinfra-monitor, you just open directly in your browser directly the static file
webapp/index.html, it contains JS code that will call the jolokia service to display data from it.
Thanks for your reply. If no port is specified then the browser will default to one of 80 or 443 and neither of those ports are open on our nodes which run xinfra-monitor at present. So just to confirm, are you stating that one of these ports has to be opened to access the xinfra-mnitor web ui? Is there a way to specify a separate port to access the xinfra-montior web ui through?
Looks like this web UI is not automatically exposed anymore (#220) and that's why the doc about it disappeared (#315).
So, you need to expose yourself the webapp folder through a simple webserver of your choice like nginx, lighttpd, or even a simple python3 -m http.server --directory $PATH_TO_WEBAPP_FOLDER, with the port of your choice, with or without TLS (e.g. for 443).
Or you can simply open locally this file in your browser (with file:// and not http:// protocol) after adapting the IP it uses to call Jolokia (put the literal value of your jolokia IP or hostname): https://github.com/linkedin/kafka-monitor/blob/a97a60b2c392e9fca557b2d38c32c3a6df9f9049/webapp/index.html#L203-L204