Giter VIP home page Giter VIP logo

Comments (8)

github-actions avatar github-actions commented on June 2, 2024

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

from kafka-monitor.

zigarn avatar zigarn commented on June 2, 2024

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

from kafka-monitor.

Moenaert avatar Moenaert commented on June 2, 2024

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

from kafka-monitor.

zigarn avatar zigarn commented on June 2, 2024

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

from kafka-monitor.

sean-rossignol avatar sean-rossignol commented on June 2, 2024

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

from kafka-monitor.

zigarn avatar zigarn commented on June 2, 2024

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

from kafka-monitor.

sean-rossignol avatar sean-rossignol commented on June 2, 2024

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

from kafka-monitor.

zigarn avatar zigarn commented on June 2, 2024

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"});

from kafka-monitor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.