Search in sources :

Example 1 with VertxInfluxDbOptions

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");
}
Also used : VertxInfluxDbOptions(io.vertx.micrometer.VertxInfluxDbOptions) Vertx(io.vertx.core.Vertx) VertxOptions(io.vertx.core.VertxOptions) MicrometerMetricsOptions(io.vertx.micrometer.MicrometerMetricsOptions) MeterRegistry(io.micrometer.core.instrument.MeterRegistry) PrometheusMeterRegistry(io.micrometer.prometheus.PrometheusMeterRegistry)

Aggregations

MeterRegistry (io.micrometer.core.instrument.MeterRegistry)1 PrometheusMeterRegistry (io.micrometer.prometheus.PrometheusMeterRegistry)1 Vertx (io.vertx.core.Vertx)1 VertxOptions (io.vertx.core.VertxOptions)1 MicrometerMetricsOptions (io.vertx.micrometer.MicrometerMetricsOptions)1 VertxInfluxDbOptions (io.vertx.micrometer.VertxInfluxDbOptions)1