use of com.hazelcast.internal.metrics.MetricsRegistry in project hazelcast by hazelcast.
the class ClientMetricsPropertiesTest method testDebugMetricsSysPropNotSet.
@Test
public void testDebugMetricsSysPropNotSet() {
MetricsRegistry metricsRegistry = createClient().client.getMetricsRegistry();
assertEquals(INFO, metricsRegistry.minimumLevel());
}
use of com.hazelcast.internal.metrics.MetricsRegistry in project hazelcast by hazelcast.
the class ClientMetricsTest method testLongClientMetricIsMergedIntoMemberMetrics.
@Test
public void testLongClientMetricIsMergedIntoMemberMetrics() {
HazelcastInstance memberInstance = givenMemberWithTwoClients();
MetricsRegistry metricsRegistry = getNodeEngineImpl(memberInstance).getMetricsRegistry();
// randomly chosen long client metric, we just check that
// we have client-side metrics merged into the member metrics
assertClientMetricsObservedEventually(memberInstance, metricsRegistry, "gc", "minorCount", COUNT);
}
use of com.hazelcast.internal.metrics.MetricsRegistry in project hazelcast by hazelcast.
the class ClientMetricsTest method testDoubleClientMetricIsMergedIntoMemberMetrics.
@Test
public void testDoubleClientMetricIsMergedIntoMemberMetrics() {
HazelcastInstance memberInstance = givenMemberWithTwoClients();
MetricsRegistry metricsRegistry = getNodeEngineImpl(memberInstance).getMetricsRegistry();
// randomly chosen double client metric, we just check that
// we have client-side metrics merged into the member metrics
assertClientMetricsObservedEventually(memberInstance, metricsRegistry, "os", "systemLoadAverage", null);
}
use of com.hazelcast.internal.metrics.MetricsRegistry in project hazelcast by hazelcast.
the class ClientMetricsPropertiesTest method testDebugMetricsSysPropDisabled.
@Test
public void testDebugMetricsSysPropDisabled() {
System.setProperty(ClientProperty.METRICS_DEBUG.getName(), "false");
MetricsRegistry metricsRegistry = createClient().client.getMetricsRegistry();
assertEquals(INFO, metricsRegistry.minimumLevel());
}
use of com.hazelcast.internal.metrics.MetricsRegistry in project hazelcast by hazelcast.
the class ClientMetricsPropertiesTest method testDebugMetricsSysPropEnabled.
@Test
public void testDebugMetricsSysPropEnabled() {
System.setProperty(ClientProperty.METRICS_DEBUG.getName(), "true");
MetricsRegistry metricsRegistry = createClient().client.getMetricsRegistry();
assertEquals(DEBUG, metricsRegistry.minimumLevel());
}
Aggregations