Supplement hippo4j core monitoring load

pull/160/head
chen.ma 3 years ago
parent 3714b84e1e
commit 850147297d

@ -48,6 +48,9 @@ public class MetricMonitorHandler extends AbstractDynamicThreadPoolMonitor {
Tag.of(APPLICATION_NAME_TAG, applicationName)
);
// load
Metrics.gauge(metricName("current.load"), tags, poolRunStateInfo, PoolRunStateInfo::getSimpleCurrentLoad);
Metrics.gauge(metricName("peak.load"), tags, poolRunStateInfo, PoolRunStateInfo::getSimplePeakLoad);
// thread pool
Metrics.gauge(metricName("core.size"), tags, poolRunStateInfo, PoolRunStateInfo::getCoreSize);
Metrics.gauge(metricName("maximum.size"), tags, poolRunStateInfo, PoolRunStateInfo::getMaximumSize);

Loading…
Cancel
Save