use of io.vertx.micrometer.VertxInfluxDbOptions in project vertx-micrometer-metrics by vert-x3.
the class MetricsExamples method setupAndAccessCustomRegistry.
public void setupAndAccessCustomRegistry() {
Vertx vertx = Vertx.vertx(new VertxOptions().setMetricsOptions(new MicrometerMetricsOptions().setInfluxDbOptions(// or VertxPrometheusOptions
new VertxInfluxDbOptions().setEnabled(true)).setRegistryName("my registry").setEnabled(true)));
// Later on:
MeterRegistry registry = BackendRegistries.getNow("my registry");
}
Aggregations