-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Provide a configuration property for setting the path used by auto-configured disk space metrics #27660
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
.../src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/MetricsProperties.java
Outdated
Show resolved
Hide resolved
@wilkinsona I rebased and moved from jvm->system |
@Bono007 Are you interested in reworking this to support multiple paths? In light of #27306 (comment), that can be done without considering the disk space health indicator. I think we'd probably end up with a |
.../src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/MetricsProperties.java
Outdated
Show resolved
Hide resolved
You know I am 😺 I like the MeterBinder -> N DiskSpaceMetrics approach as well. This also allows us to close micrometer-metrics/micrometer#2747 (comment) . I will get to it in the next 1-2 days. That timeline work? |
😀 I didn’t want to assume you would be
Absolutely. It’d be good to get the change in before RC1. |
.../src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/MetricsProperties.java
Show resolved
Hide resolved
.../src/main/java/org/springframework/boot/actuate/autoconfigure/metrics/MetricsProperties.java
Outdated
Show resolved
Hide resolved
...or/src/main/java/org/springframework/boot/actuate/metrics/system/DiskSpaceMetricsBinder.java
Show resolved
Hide resolved
Thanks Chris, that's excellent. FYI, you might be interested by the polish commit, in particular:
|
You're welcome Stéphane. And thank you for taking the time to point me to the polish commit and outline what changed - much appreciated.
Yep, I know about this one and was almost certain that public static <T> List<T> asList(T... a) {
return new ArrayList<>(a);
}
Good catch. I think this crossed my mind at one point as something to follow up on as I was unsure if it would find that complex default (obviously I forgot to circle back :) ) |
@wilkinsona I was playing around w/ the options listed in the ticket and had this simple approach coded up so went ahead and submitted this proposal. I know I did not wait for feedback on the ticket and am more than happy to close this out if If you end up leaning another direction.
This goes w/ the simple approach of not sharing properties w/ the
DiskSpaceHealthIndicator
and only configures a single path for now (in theMetricsProperties
).Fixed gh-27306