Class PrometheusEndpoint

java.lang.Object
org.opends.server.api.HttpEndpoint<PrometheusEndpointCfg>
org.opends.server.protocols.http.PrometheusEndpoint

public final class PrometheusEndpoint extends HttpEndpoint<PrometheusEndpointCfg>
Represents an HTTP endpoint exposing OpenDJ metrics using Prometheus text format.
  • Constructor Details

  • Method Details

    • newHttpApplication

      public org.forgerock.http.HttpApplication newHttpApplication()
      Description copied from class: HttpEndpoint
      Create a new HttpApplication.
      Specified by:
      newHttpApplication in class HttpEndpoint<PrometheusEndpointCfg>
      Returns:
      an HttpApplication configured and ready to be started.
    • isConfigurationValid

      public boolean isConfigurationValid(List<LocalizableMessage> unacceptableReasons)
      Description copied from class: HttpEndpoint
      Check that the configuration of this HttpEndpoint is valid. This default implementation try to instantiate and start the underlying HttpApplication.
      Overrides:
      isConfigurationValid in class HttpEndpoint<PrometheusEndpointCfg>
      Parameters:
      unacceptableReasons - A list that can be used to hold messages about why the configuration is not acceptable.
      Returns:
      true if the configuration is valid.