-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Allow JMX endpoint ObjectNames to be customized by providing an EndpointObjectNameFactory bean #25317
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
Comments
We allow the endpoints paths to be changed when using HTTP for a couple of reasons:
When using JMX, I don't think either of these needs exists. The MBeans are specific to Spring Boot so any monitoring tool that's querying them will also have to be, in part, Spring Boot specific as well. There's also no possibility of a clash as the MBean's are published with the We generally expect applications to be monitored using either JMX or HTTP so hadn't considered a need for consistent naming between the two. Do you have a particular need for them to be able to match? |
Hi @wilkinsona No particular critical reason, but in some unusual scenario, if we have two oversight working in http and jmx in the same time and each one through a different branch/option, and by remote, they would need coordinate to access to the same endpoints based with the same names. Of course it is not critical, but would be a valid scenario, not very usual, but would happen. I know, it is a trivial request. If you want, proceed to close this issue. |
Thanks, @manueljordan. We have an |
Sounds great @wilkinsona ! Other reason is when a nice project manager in his infinite wisdom wants all the endpoints in Spanish - or perhaps - French, Portuguese I think the point is have this approach available to bring flexibility ... I know is not critical, is trivial, but would be a possible requirement at some point of time. |
Exposing a way to customize the |
Can we expose it via a property that |
A property that defines what part exactly? The ObjectName is quite complex so I am not sure that I'd want that in properties. |
oh I thought we wanted to make just the |
Thanks for confirming. That's what I was suspecting what you were referring to. IMO if we offer a way to customise this, we should aim at the objectname, not a part of it. |
We're going to make |
It is about any domain created by the same Java Application, right?. If I am not correct, expand pls a little more the idea. The goal with the original post is only edit or rename any MBean available only within the |
IDE tooling uses the MBeans provided by the Actuator to display information about your app. If you rename them, that tooling will break. |
I understand now, thanks for the clarification, why not use a kind of alias? Keep the original name for the IDE (nothing is break) and apply the alias (through a special annotation) and a flag set to true to enable recognize that annotation, through a property defined in |
@manueljordan we've already described what our plan is, see this comment above. As we don't think it's not a good idea to rename the JMX beans, we won't provide such first class support for it. |
Hello @snicoll - Yes, it only was a thought. That's all and understood |
Hello SB developers.
Just being curious and how a friendly suggestion and request.
If is possible change the name of an endpoint available through HTTP through
Why not make available the same approach for JMX?, something like:
I know it is not critical, but because it is available through Web. Why not give the developer or oversight the option to have HTTP and JMX keeping the same names.
Thanks for your understanding
The text was updated successfully, but these errors were encountered: