use of io.micrometer.api.instrument.simple.SimpleMeterRegistry in project reactor-netty by reactor.
the class PooledConnectionProviderDefaultMetricsTest method setUp.
@BeforeEach
void setUp() {
registry = new SimpleMeterRegistry();
Metrics.addRegistry(registry);
}
use of io.micrometer.api.instrument.simple.SimpleMeterRegistry in project reactor-netty by reactor.
the class ByteBufAllocatorMetricsTest method setUp.
@BeforeEach
void setUp() {
registry = new SimpleMeterRegistry();
Metrics.addRegistry(registry);
}
use of io.micrometer.api.instrument.simple.SimpleMeterRegistry in project reactor-netty by reactor.
the class TransportEventLoopMetricsTest method setUp.
@BeforeEach
void setUp() {
registry = new SimpleMeterRegistry();
Metrics.addRegistry(registry);
}
use of io.micrometer.api.instrument.simple.SimpleMeterRegistry in project reactor-netty by reactor.
the class TcpMetricsTests method setUp.
@BeforeEach
void setUp() {
tcpServer = customizeServerOptions(TcpServer.create().host("127.0.0.1").port(0).metrics(true));
provider = ConnectionProvider.create("TcpMetricsTests", 1);
tcpClient = customizeClientOptions(TcpClient.create(provider).remoteAddress(() -> disposableServer.address()).metrics(true));
registry = new SimpleMeterRegistry();
Metrics.addRegistry(registry);
}
use of io.micrometer.api.instrument.simple.SimpleMeterRegistry in project reactor-netty by reactor.
the class HttpMetricsHandlerTests method setUp.
/**
* Initialization done before running each test.
* <ul>
* <li> /1 is used by testExistingEndpoint test</li>
* <li> /2 is used by testExistingEndpoint, and testUriTagValueFunctionNotSharedForClient tests</li>
* <li> /3 does not exists but is used by testNonExistingEndpoint, checkExpectationsNonExisting tests</li>
* <li> /4 is used by testServerConnectionsMicrometer test</li>
* <li> /5 is used by testServerConnectionsRecorder test</li>
* </ul>
*/
@BeforeEach
void setUp() {
httpServer = createServer().host("127.0.0.1").metrics(true, Function.identity()).route(r -> r.post("/1", (req, res) -> res.header("Connection", "close").send(req.receive().retain().delayElements(Duration.ofMillis(10)))).post("/2", (req, res) -> res.header("Connection", "close").send(req.receive().retain().delayElements(Duration.ofMillis(10)))).post("/4", (req, res) -> res.header("Connection", "close").send(req.receive().retain().doOnNext(b -> checkServerConnectionsMicrometer(req.hostAddress())))).post("/5", (req, res) -> res.header("Connection", "close").send(req.receive().retain().doOnNext(b -> checkServerConnectionsRecorder(req.hostAddress())))));
provider = ConnectionProvider.create("HttpMetricsHandlerTests", 1);
httpClient = createClient(provider, () -> disposableServer.address()).metrics(true, Function.identity());
registry = new SimpleMeterRegistry();
Metrics.addRegistry(registry);
}
Aggregations