Class PrometheusNamingConvention

java.lang.Object
io.micrometer.prometheus.PrometheusNamingConvention
All Implemented Interfaces:
io.micrometer.core.instrument.config.NamingConvention
Direct Known Subclasses:
PrometheusDurationNamingConvention

@Deprecated public class PrometheusNamingConvention extends Object implements io.micrometer.core.instrument.config.NamingConvention
Deprecated.
since 1.13.0, use the class with the same name from io.micrometer:micrometer-registry-prometheus instead: io.micrometer.prometheusmetrics.PrometheusNamingConvention.
See https://prometheus.io/docs/concepts/data_model/#metric-names-and-labels for a specification of the constraints on metric names and labels
  • Field Summary

    Fields inherited from interface io.micrometer.core.instrument.config.NamingConvention

    camelCase, dot, identity, slashes, snakeCase, upperCamelCase
  • Constructor Summary

    Constructors
    Constructor
    Description
    Deprecated.
     
    Deprecated.
     
  • Method Summary

    Modifier and Type
    Method
    Description
    name(String name, io.micrometer.core.instrument.Meter.Type type, String baseUnit)
    Deprecated.
    Names are snake-cased.
    Deprecated.
    Label names may contain ASCII letters, numbers, as well as underscores.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface io.micrometer.core.instrument.config.NamingConvention

    name, tagValue
  • Constructor Details

    • PrometheusNamingConvention

      public PrometheusNamingConvention()
      Deprecated.
    • PrometheusNamingConvention

      public PrometheusNamingConvention(String timerSuffix)
      Deprecated.
  • Method Details

    • name

      public String name(String name, io.micrometer.core.instrument.Meter.Type type, @Nullable String baseUnit)
      Deprecated.
      Names are snake-cased. They contain a base unit suffix when applicable.

      Names may contain ASCII letters and digits, as well as underscores and colons. They must match the regex [a-zA-Z_:][a-zA-Z0-9_:]*

      Specified by:
      name in interface io.micrometer.core.instrument.config.NamingConvention
    • tagKey

      public String tagKey(String key)
      Deprecated.
      Label names may contain ASCII letters, numbers, as well as underscores. They must match the regex [a-zA-Z_][a-zA-Z0-9_]*. Label names beginning with __ are reserved for internal use.
      Specified by:
      tagKey in interface io.micrometer.core.instrument.config.NamingConvention