use of com.codahale.metrics.Gauge in project metrics by dropwizard.
the class MemoryUsageGaugeSetTest method hasAGaugeForTotalCommitted.
@Test
public void hasAGaugeForTotalCommitted() throws Exception {
final Gauge gauge = (Gauge) gauges.getMetrics().get("total.committed");
assertThat(gauge.getValue()).isEqualTo(11L);
}
use of com.codahale.metrics.Gauge in project metrics by dropwizard.
the class MemoryUsageGaugeSetTest method hasAGaugeForNonHeapMax.
@Test
public void hasAGaugeForNonHeapMax() throws Exception {
final Gauge gauge = (Gauge) gauges.getMetrics().get("non-heap.max");
assertThat(gauge.getValue()).isEqualTo(4L);
}
use of com.codahale.metrics.Gauge in project metrics by dropwizard.
the class MemoryUsageGaugeSetTest method hasAGaugeForWeirdMemoryPoolCommitted.
@Test
public void hasAGaugeForWeirdMemoryPoolCommitted() throws Exception {
final Gauge gauge = (Gauge) gauges.getMetrics().get("pools.Weird-Pool.committed");
assertThat(gauge.getValue()).isEqualTo(100L);
}
use of com.codahale.metrics.Gauge in project metrics by dropwizard.
the class MemoryUsageGaugeSetTest method hasAGaugeForWeirdMemoryPoolUsed.
@Test
public void hasAGaugeForWeirdMemoryPoolUsed() throws Exception {
final Gauge gauge = (Gauge) gauges.getMetrics().get("pools.Weird-Pool.used");
assertThat(gauge.getValue()).isEqualTo(300L);
}
use of com.codahale.metrics.Gauge in project metrics by dropwizard.
the class MemoryUsageGaugeSetTest method hasAGaugeForNonHeapUsed.
@Test
public void hasAGaugeForNonHeapUsed() throws Exception {
final Gauge gauge = (Gauge) gauges.getMetrics().get("non-heap.used");
assertThat(gauge.getValue()).isEqualTo(3L);
}
Aggregations