use of io.vertx.micrometer.MetricsService in project vertx-micrometer-metrics by vert-x3.
the class MetricsExamples method createSnapshotFromPrefix.
public void createSnapshotFromPrefix() {
MetricsService metricsService = MetricsService.create(vertx);
// Client + server
JsonObject metrics = metricsService.getMetricsSnapshot("vertx.http");
System.out.println(metrics);
}
use of io.vertx.micrometer.MetricsService in project vertx-micrometer-metrics by vert-x3.
the class MetricsExamples method createFullSnapshot.
public void createFullSnapshot() {
MetricsService metricsService = MetricsService.create(vertx);
JsonObject metrics = metricsService.getMetricsSnapshot();
System.out.println(metrics);
}
use of io.vertx.micrometer.MetricsService in project vertx-micrometer-metrics by vert-x3.
the class MetricsExamples method createPartialSnapshot.
public void createPartialSnapshot() {
HttpServer server = vertx.createHttpServer();
MetricsService metricsService = MetricsService.create(server);
JsonObject metrics = metricsService.getMetricsSnapshot();
System.out.println(metrics);
}
Aggregations