Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GUI Monitor #354

Open
de-wax-apple opened this issue Nov 19, 2021 · 8 comments
Open

GUI Monitor #354

de-wax-apple opened this issue Nov 19, 2021 · 8 comments

Comments

@de-wax-apple
Copy link

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?

@github-actions
Copy link

This is your first issue in the repository. Thank you for raising this issue.' first issue

@zigarn
Copy link
Contributor

zigarn commented Dec 21, 2021

You need to enable the Jolokia service and then open the file webapp/index.html.

@Moenaert
Copy link

Hi, what do you mean with enabling the Jolokia service?

@zigarn
Copy link
Contributor

zigarn commented Mar 18, 2022

"jolokia-service": {
"class.name": "com.linkedin.xinfra.monitor.services.JolokiaService"
},

@sean-rossignol
Copy link

@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?

@zigarn
Copy link
Contributor

zigarn commented Oct 12, 2022

@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
Copy link

@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?

@zigarn
Copy link
Contributor

zigarn commented Oct 13, 2022

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):

var ip = location.host.split(':')[0];
var j4p = new Jolokia({url: "http://" + ip + ":8778/jolokia"});

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants