Class OpenTSDBNamingConvention

java.lang.Object
io.micrometer.opentsdb.OpenTSDBNamingConvention
All Implemented Interfaces:
io.micrometer.core.instrument.config.NamingConvention

public class OpenTSDBNamingConvention extends Object implements io.micrometer.core.instrument.config.NamingConvention
NamingConvention for OpenTSDB.
Since:
1.4.0
  • Field Summary

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

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

    Constructors
    Constructor
    Description
     
     
  • Method Summary

    Modifier and Type
    Method
    Description
    name(String name, io.micrometer.core.instrument.Meter.Type type, String baseUnit)
    Names are snake-cased.
    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

    • OpenTSDBNamingConvention

      public OpenTSDBNamingConvention()
    • OpenTSDBNamingConvention

      public OpenTSDBNamingConvention(String timerSuffix)
  • Method Details

    • name

      public String name(String name, io.micrometer.core.instrument.Meter.Type type, @Nullable String baseUnit)
      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)
      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