io.vertx.core.spi.metrics.HttpServerMetrics Java Examples
The following examples show how to use
io.vertx.core.spi.metrics.HttpServerMetrics.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DefaultVertxMetrics.java From servicecomb-java-chassis with Apache License 2.0 | 5 votes |
@Override public HttpServerMetrics<?, ?, ?> createHttpServerMetrics(HttpServerOptions options, SocketAddress localAddress ) { DefaultServerEndpointMetric endpointMetric = serverEndpointMetricMap .computeIfAbsent(localAddress.toString(), DefaultServerEndpointMetric::new); return new DefaultHttpServerMetrics(endpointMetric); }
Example #2
Source File: VertxHttpServerMetrics.java From vertx-micrometer-metrics with Apache License 2.0 | 4 votes |
@Override HttpServerMetrics forAddress(SocketAddress localAddress) { String local = Labels.fromAddress(localAddress); return new Instance(local); }