Search in sources :

Example 6 with SimpleMeterRegistry

use of io.micrometer.api.instrument.simple.SimpleMeterRegistry in project reactor-netty by reactor.

the class UdpMetricsTests method setUp.

@BeforeEach
void setUp() {
    udpServer = UdpServer.create().host("127.0.0.1").port(0).metrics(true);
    udpClient = UdpClient.create().remoteAddress(() -> serverConnection.address()).metrics(true);
    registry = new SimpleMeterRegistry();
    Metrics.addRegistry(registry);
}
Also used : SimpleMeterRegistry(io.micrometer.api.instrument.simple.SimpleMeterRegistry) BeforeEach(org.junit.jupiter.api.BeforeEach)

Example 7 with SimpleMeterRegistry

use of io.micrometer.api.instrument.simple.SimpleMeterRegistry in project reactor-netty by reactor.

the class AddressResolverGroupMetricsTest method setUp.

@BeforeEach
void setUp() {
    registry = new SimpleMeterRegistry();
    Metrics.addRegistry(registry);
}
Also used : SimpleMeterRegistry(io.micrometer.api.instrument.simple.SimpleMeterRegistry) BeforeEach(org.junit.jupiter.api.BeforeEach)

Aggregations

SimpleMeterRegistry (io.micrometer.api.instrument.simple.SimpleMeterRegistry)7 BeforeEach (org.junit.jupiter.api.BeforeEach)7 Counter (io.micrometer.api.instrument.Counter)1 DistributionSummary (io.micrometer.api.instrument.DistributionSummary)1 Gauge (io.micrometer.api.instrument.Gauge)1 MeterRegistry (io.micrometer.api.instrument.MeterRegistry)1 Metrics (io.micrometer.api.instrument.Metrics)1 Tags (io.micrometer.api.instrument.Tags)1 Timer (io.micrometer.api.instrument.Timer)1 MeterRegistryAssert (io.micrometer.core.tck.MeterRegistryAssert)1 ByteBuf (io.netty.buffer.ByteBuf)1 SslProvider (io.netty.handler.ssl.SslProvider)1 InsecureTrustManagerFactory (io.netty.handler.ssl.util.InsecureTrustManagerFactory)1 SelfSignedCertificate (io.netty.handler.ssl.util.SelfSignedCertificate)1 InetSocketAddress (java.net.InetSocketAddress)1 SocketAddress (java.net.SocketAddress)1 CertificateException (java.security.cert.CertificateException)1 Duration (java.time.Duration)1 CountDownLatch (java.util.concurrent.CountDownLatch)1 TimeUnit (java.util.concurrent.TimeUnit)1