-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
JMX monitoring via "v1/jmx/mbean" endpoint is not discussed in trino documentation #17259
Comments
fyi @mosabua |
From what I know you can just use a JMX connection directly via dedicated ports as described in You don't need to go through the API. Also the JMX connector is available for SQL based access to the info. https://trino.io/docs/current/connector/jmx.html If we want to document the REST endpoint for the mbean access it should be documented in Also related to some degree.. and also not yet documented .. we have opentelemtry support now as well.. |
This is helpful! Thank you @mosabua. |
Can someone help to resolve jmx does not work? $ cat jvm.config $ cat config.properties I configured jmx as above and opened port-forward 9080:9080. But JConsole, VisualVM can't get any jmx informtion. jConsole shows "Connecting" forever and VisualVM shows nothing. The connection is: localhost:9080 |
We updated JMX docs a while ago .. do you have the ports open as documented? Specifically do you have -Dcom.sun.management.jmxremote.rmi.port=9081 in the jvm config? I am not sure if we consider the /v1/jmx/mbean part of the REST API ... I kinda think not .. either go directly via JMX or use the JMX connector. Going to JMX info via REST seems convoluted. |
I think we can close this ticket .. if you cant get JMX directly to work please reopen with more details. |
Hey all! I was in the process of setting up jolokia for trino 411, specifically for the REST interface to JMX, when I came across this comment from 2021. The
v1/jmx/mbean
endpoint seems like a durable, useful, and working solution for JMX monitoring, but I couldn't find any mention of this in the official docs. It's readily available via HTTP and essentially any measure can be parsed.Is there a reason this isn't in the docs? I would hate to start using it and then have the feature disappear or become unsupported. If there isn't a reason, I could take a stab at updating the docs to include a reference to this endpoint.
The text was updated successfully, but these errors were encountered: