use of io.dropwizard.metrics.JvmAttributeGaugeSet in project light-4j by networknt.
the class JvmAttributeGaugeSetTest method autoDiscoversTheRuntimeBean.
@Test
public void autoDiscoversTheRuntimeBean() throws Exception {
final Gauge gauge = (Gauge) new JvmAttributeGaugeSet().getMetrics().get(MetricName.build("uptime"));
assertThat((Long) gauge.getValue()).isPositive();
}
Aggregations