Interface PrometheusPublisherConfig

All Superinterfaces:
MetricsPublisherConfig, Prototype.Api, Prototype.Factory<PrometheusPublisher>
All Known Implementing Classes:
PrometheusPublisherConfig.BuilderBase.PrometheusPublisherConfigImpl

public interface PrometheusPublisherConfig extends Prototype.Api
Settings for a Micrometer Prometheus meter registry.
See Also:
  • Method Details

    • builder

      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • create

      static PrometheusPublisherConfig create(Config config)
      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      Create a new instance from configuration.
      Parameters:
      config - used to configure the new instance
      Returns:
      a new instance configured from configuration
    • create

      static PrometheusPublisherConfig create()
      Create a new instance with default values.
      Returns:
      a new instance
    • enabled

      boolean enabled()
      Whether the configured publisher is enabled.
      Returns:
      true if enabled, false otherwise
    • prefix

      Optional<String> prefix()
      Property name prefix.
      Returns:
      property name prefix
    • descriptions

      Optional<Boolean> descriptions()
      Whether to include meter descriptions in Prometheus output.
      Returns:
      true to include descriptions, false otherwise
    • interval

      Optional<Duration> interval()
      Step size used in computing "windowed" statistics. Micrometer advises that this value should be close to the interval with which backend systems scrape the Prometheus-format metrics data.
      Returns:
      step time