Interface MetricsFactory


public interface MetricsFactory
Extensions can create or register metrics using this factory independent of the enabled metrics provider
  • Field Details

    • MICROMETER

      static final String MICROMETER
      A well-known string for Micrometer metrics provided by the Micrometer Metrics quarkus extension
      See Also:
  • Method Details

    • metricsSystemSupported

      boolean metricsSystemSupported(String name)
      Returns:
      true if this factory supports the named metrics system. Arbitrary strings are allowed. Constants are present for a few.
      See Also:
    • builder

      default MetricsFactory.MetricBuilder builder(String name)
      Parameters:
      name - The name of the metric (required)
      Returns:
      a fluid builder for registering metrics (default VENDOR type).
      See Also:
    • builder

      Parameters:
      name - The name of the metric (required)
      type - The scope or type of the metric (optional, may not be used)
      Returns:
      a fluid builder for registering metrics.
      See Also: