Class PrometheusSupport.Builder

All Implemented Interfaces:
Builder<PrometheusSupport.Builder,PrometheusSupport>, Supplier<PrometheusSupport>
Enclosing class:
PrometheusSupport

@Deprecated(since="4.5.0", forRemoval=true) public static final class PrometheusSupport.Builder extends HelidonFeatureSupport.Builder<PrometheusSupport.Builder,PrometheusSupport>
Deprecated, for removal: This API element is subject to removal in a future version.
use Helidon's built-in metrics implementation, which already supports Prometheus/OpenMetrics output, instead
A builder of PrometheusSupport.
  • Method Details

    • collectorRegistry

      public PrometheusSupport.Builder collectorRegistry(CollectorRegistry registry)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets collector registry to use, default is CollectorRegistry.defaultRegistry.
      Parameters:
      registry - a registry to use
      Returns:
      updated builder
    • path

      public PrometheusSupport.Builder path(String path)
      Deprecated, for removal: This API element is subject to removal in a future version.
      Sets path of the metrics resource, default is /metrics.
      Parameters:
      path - a resource path
      Returns:
      updated builder
    • build

      public PrometheusSupport build()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Description copied from interface: Builder
      Build the instance from this builder.
      Returns:
      instance of the built type