-
Notifications
You must be signed in to change notification settings - Fork 41.5k
Add support for Diagnostic MBean in actuator #18294
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
Conversation
Thanks very much for the pull-request @ldebello. We plan to discuss this a little more as team when we meet at Spring One in a few weeks. Unfortunately we probably won't be able to merge this in time for 2.2, but we'll review it and consider the options for 2.3. |
@philwebb thanks for the update, let me know if I can help in something |
Hi, I would like to know if there is something from my side that I can do to help with this |
Awesome, thanks :) |
*/ | ||
private int computeParameterPosition(Descriptor parameterDescriptor) { | ||
Integer parameterPosition = (Integer) parameterDescriptor.getFieldValue(ARGUMENT_POSITION_DESCRIPTOR); | ||
return (parameterPosition != -1) ? parameterPosition : 0; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(parameterPosition == -1) ? 0 : parameterPosition
maybe more readable
Hi team. Do I need to update my branch to allow you to review this or you can review and if this is ok do the update branch later? |
Hi, @ldebello. Thanks again for the offer. We don't need anything from you at the moment. The core team have discussed this a bit. We're currently leaning towards not merging the changes but we haven't reached a final decision. The general problem of exposing MBeans over HTTP is something that we'd prefer to be solved by Jolokia for which Spring Boot already has auto-configuration. For those that want access specifically to the diagnostics MBean but do not want to use Jolokia, our current feeling is that support would be better maintained as a third-party starter rather than in Spring Boot itself. I'll flag this for team attention so that we can discuss this again sometime soon and hopefully reach a final decision. |
Awesome, thanks for the reply. Before sending the PR I thought the same about using jolokia, but I thought it could be more useful to expose this in a different way for diagnostics tools. I also thought about exposing it as starter project but I believed as contribution could be more valuable but I can create a starter for this :). If the team arrives to a conclusion please let me know and I can close the PR and create the starter-project. |
We discussed this one today and I'm afraid that we concluded that we don't want to merge and support it ourselves. Thanks again for your PR and for your understanding of our decision. If you do create a third-party starter with this functionality, we'd be happy to add it to the list of community starters. |
Hi,
Currently at work I have created a simple endpoint for exposing Diagnostic MBean from actuator, so I decided to contribute to it with this change.
Functionality:
Screenshots
Get Operations

Get Operation Details

Execute Operation

If you consider this can be useful but it requires more changes I can work on that but if you consider this is not a valid use case for actuator endpoints just close the pull request.