Class MicrometerMetricsProvider

java.lang.Object
org.neo4j.driver.internal.metrics.MicrometerMetricsProvider
All Implemented Interfaces:
MetricsProvider

public final class MicrometerMetricsProvider extends Object implements MetricsProvider
An adapter to bridge between driver metrics and Micrometer meter registry.
  • Method Details

    • forGlobalRegistry

      public static MetricsProvider forGlobalRegistry()
    • of

      public static MetricsProvider of(io.micrometer.core.instrument.MeterRegistry meterRegistry)
    • metrics

      public Metrics metrics()
      Specified by:
      metrics in interface MetricsProvider
      Returns:
      The actual metrics type to use
    • metricsListener

      public MetricsListener metricsListener()
      Specified by:
      metricsListener in interface MetricsProvider
      Returns:
      A listener that will be notified on certain events so that it can collect metrics about them.