public class PrometheusNamingConvention extends Object implements NamingConvention
camelCase, dot, identity, slashes, snakeCase, upperCamelCase
Constructor and Description |
---|
PrometheusNamingConvention() |
PrometheusNamingConvention(String timerSuffix) |
Modifier and Type | Method and Description |
---|---|
String |
name(String name,
Meter.Type type,
String baseUnit)
Names are snake-cased.
|
String |
tagKey(String key)
Label names may contain ASCII letters, numbers, as well as underscores.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
name, tagValue
public PrometheusNamingConvention()
public PrometheusNamingConvention(String timerSuffix)
public String name(String name, Meter.Type type, @Nullable String baseUnit)
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_:]*
name
in interface NamingConvention
public String tagKey(String key)
tagKey
in interface NamingConvention
Copyright © 2018. All rights reserved.