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

Auto-configure binding of Micrometer's JettyServerThreadPoolMetrics #14591

Closed
matsumana opened this issue Sep 24, 2018 · 11 comments
Closed

Auto-configure binding of Micrometer's JettyServerThreadPoolMetrics #14591

matsumana opened this issue Sep 24, 2018 · 11 comments
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@matsumana
Copy link

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Sep 24, 2018
@wilkinsona
Copy link
Member

Thanks for the suggestion. We can take a look at what's possible, but I don't think we can implement this in the same way as has been done in Micrometer. The biggest problem is that, if a user has customised Jetty's thread pool, the auto-configuration will overwrite that customisation.

@wilkinsona
Copy link
Member

wilkinsona commented Sep 25, 2018

I asked a few questions on the Micrometer PR. We'll need some feedback on those to make progress on this one.

@wilkinsona wilkinsona added the status: waiting-for-feedback We need additional information before we can continue label Sep 25, 2018
@spring-projects-issues
Copy link
Collaborator

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

@spring-projects-issues spring-projects-issues added the status: feedback-reminder We've sent a reminder that we need additional information before we can continue label Oct 2, 2018
@matsumana
Copy link
Author

I commented in micrometer-metrics/micrometer#593 (comment).
Could you please check it?

@spring-projects-issues spring-projects-issues added status: feedback-provided Feedback has been provided and removed status: waiting-for-feedback We need additional information before we can continue status: feedback-reminder We've sent a reminder that we need additional information before we can continue labels Oct 8, 2018
@wilkinsona
Copy link
Member

Thanks. I've taken a look. Unfortunately, the problem with overwriting the user's thread pool customisation remains.

@wilkinsona wilkinsona changed the title Add Support for Jetty's Thread Pool metrics auto configuration Auto-configure binding of Micrometer's JettyThreadPoolMetrics Oct 13, 2018
@wilkinsona wilkinsona added type: enhancement A general enhancement and removed status: feedback-provided Feedback has been provided status: waiting-for-triage An issue we've not yet triaged labels Oct 13, 2018
@wilkinsona wilkinsona added this to the 2.1.x milestone Oct 13, 2018
@wilkinsona wilkinsona self-assigned this Oct 13, 2018
@wilkinsona wilkinsona changed the title Auto-configure binding of Micrometer's JettyThreadPoolMetrics Auto-configure binding of Micrometer's JettyServerThreadPoolMetrics Oct 13, 2018
@wilkinsona wilkinsona modified the milestones: 2.1.x, 2.1.0.RC1 Oct 13, 2018
@wilkinsona
Copy link
Member

FYI, @izeye. I think this approach is better than the one that we discussed on the Micrometer PR and the one that Boot was using for TomcatMetrics.

@izeye
Copy link
Contributor

izeye commented Oct 14, 2018

@wilkinsona Thanks for sharing! I'd like to align Spring Boot 1.5.x support with this but ApplicationStartedEvent has been introduced since 2.0.0. Is there any recommendation for Spring Boot 1.5.x?

@wilkinsona
Copy link
Member

ApplicationReadyEvent is a reasonable substitute.

@izeye
Copy link
Contributor

izeye commented Oct 14, 2018

@wilkinsona Thanks for the quick feedback! I'll try with it.

@izeye
Copy link
Contributor

izeye commented Oct 14, 2018

@wilkinsona I created micrometer-metrics/micrometer#925 and micrometer-metrics/micrometer#926 to align Spring Boot 1.5.x support with this approach.

@matsumana
Copy link
Author

Thank you so much!

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

No branches or pull requests

4 participants