use of com.hotels.styx.api.MicrometerRegistry in project styx by ExpediaGroup.
the class StaticPipelineBuilderTest method staticPipelineBuilderTest.
@BeforeEach
public void staticPipelineBuilderTest() {
environment = new Environment.Builder().registry(new MicrometerRegistry(new SimpleMeterRegistry())).build();
clientFactory = (backendService, originsInventory, originStatsFactory) -> (request, context) -> Mono.just(response(OK).build());
registry = backendRegistry(newBackendServiceBuilder().origins(newOriginBuilder("localhost", 0).build()).path("/foo").build());
}
use of com.hotels.styx.api.MicrometerRegistry in project styx by ExpediaGroup.
the class ChannelStatisticsHandlerTest method createHandler.
@BeforeEach
public void createHandler() {
this.meterRegistry = new MicrometerRegistry(new SimpleMeterRegistry());
this.handler = new ChannelStatisticsHandler(new CentralisedMetrics(this.meterRegistry));
}
use of com.hotels.styx.api.MicrometerRegistry in project styx by ExpediaGroup.
the class RequestStatsCollectorTest method setUp.
@BeforeEach
public void setUp() {
metrics = new MicrometerRegistry(new SimpleMeterRegistry(SimpleConfig.DEFAULT, clock));
clock.setNanoTime(0);
CentralisedMetrics centralisedMetrics = new CentralisedMetrics(metrics);
sink = new RequestStatsCollector(centralisedMetrics);
}
Aggregations