Class PrometheusNamingConventionConfig.BuilderBase.PrometheusNamingConventionConfigImpl

java.lang.Object
io.helidon.metrics.providers.micrometer.PrometheusNamingConventionConfig.BuilderBase.PrometheusNamingConventionConfigImpl
All Implemented Interfaces:
Prototype.Api, PrometheusNamingConventionConfig
Enclosing class:
PrometheusNamingConventionConfig.BuilderBase<BUILDER extends PrometheusNamingConventionConfig.BuilderBase<BUILDER, PROTOTYPE>, PROTOTYPE extends PrometheusNamingConventionConfig>

protected static class PrometheusNamingConventionConfig.BuilderBase.PrometheusNamingConventionConfigImpl extends Object implements PrometheusNamingConventionConfig
Generated implementation of the prototype, can be extended by descendant prototype implementations.
  • Constructor Details

    • PrometheusNamingConventionConfigImpl

      protected PrometheusNamingConventionConfigImpl(PrometheusNamingConventionConfig.BuilderBase<?,?> builder)
      Create an instance providing a builder.
      Parameters:
      builder - extending builder base of this prototype
  • Method Details

    • timerSuffix

      public String timerSuffix()
      Description copied from interface: PrometheusNamingConventionConfig
      Suffix which identifies a timer name before Prometheus adds _seconds.
      Specified by:
      timerSuffix in interface PrometheusNamingConventionConfig
      Returns:
      timer suffix
    • nonLetterPrefix

      public Optional<String> nonLetterPrefix()
      Description copied from interface: PrometheusNamingConventionConfig
      Prefix to add to metric names and tag keys which do not begin with a letter; configuring this setting enables legacy simpleclient-compatible normalization, with m_ reproducing the naming from earlier Helidon releases, and preserves user-supplied reserved suffixes such as _total, _created, _bucket, and _info, whereas leaving it unset uses the new Prometheus client's normalization; the prefix must be non-empty and match [A-Za-z][A-Za-z0-9_]*, and constructing the publisher fails if the value is invalid.
      Specified by:
      nonLetterPrefix in interface PrometheusNamingConventionConfig
      Returns:
      non-letter prefix
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object