-
Notifications
You must be signed in to change notification settings - Fork 566
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
Allow use of config to set up built-in disk space and heap memory health checks #2934
Conversation
Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
@@ -144,5 +151,19 @@ public Builder thresholdPercent(double threshold) { | |||
this.threshold = threshold; | |||
return this; | |||
} | |||
|
|||
/** | |||
* Set up the heap space health check via config key, if present. |
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.
The javadoc should contain a table of config keys used, description and default value.
Example:
Configuration options:
* <table class="config">
* <caption>Secret configuration</caption>
* <tr>
* <th>key</th>
* <th>default value</th>
* <th>description</th>
* <th>builder method</th>
* </tr>
* <tr>
* <td>{@value CONFIG_KEY_THRESHOLD_PERCENT_SUFFIX}</td>
* <td>{@code 99.9}</td>
* <td>Percentage of heap memory that needs to be full for this health check to fail</td>
* <td>{@link #tresholdPercent(double}</td>
* </tr>
* </table>
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.
Added for both classes.
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.
LGTM
…lth checks (helidon-io#2934) * Allow set-up of built-in liveness checks using configuration Signed-off-by: tim.quinn@oracle.com <tim.quinn@oracle.com>
Resolves #2885