Interface NamingConvention
-
public interface NamingConventionMonitoring systems make different recommendations regarding naming convention.Also, many systems have constraints on valid characters that may appear in a tag key/value or metric name. While it is recommended to choose tag keys/values that are absent special characters that are invalid on any common metrics backend, sometimes this is hard to avoid (as in the format of the URI template for parameterized URIs like /api/person/{id} emanating from Spring Web).
-
-
Field Summary
Fields Modifier and Type Field Description static NamingConventioncamelCasestatic NamingConventiondotThis maps to identity because we suggest using dot notation everywhere in Micrometer-instrumented codestatic NamingConventionidentitystatic NamingConventionsnakeCasestatic NamingConventionupperCamelCase
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default Stringname(String name, Meter.Type type)Stringname(String name, Meter.Type type, String baseUnit)default StringtagKey(String key)default StringtagValue(String value)
-
-
-
Field Detail
-
identity
static final NamingConvention identity
-
dot
static final NamingConvention dot
This maps to identity because we suggest using dot notation everywhere in Micrometer-instrumented code
-
snakeCase
static final NamingConvention snakeCase
-
camelCase
static final NamingConvention camelCase
-
upperCamelCase
static final NamingConvention upperCamelCase
-
-