public class DefaultNamer extends java.lang.Object implements Namer
For example, using the default formatter, an actor will have the following metric key:
"metrics.akka.systems.<system>.dispatchers.<dispatcher>.actors.<actor>.<metric>"
| Constructor and Description |
|---|
DefaultNamer(Formatter formatter) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
name(Identity identity,
Descriptor descriptor)
Create the full metric key for a metric.
|
java.lang.String |
simpleName(Identity identity,
Descriptor descriptor)
Create the simple name for a metric, without full hierarchy.
|
java.lang.String |
uniqueName(Identity identity,
Descriptor descriptor)
Create the full metric key for a metric, including unique dimensions.
|
public DefaultNamer(Formatter formatter)
public java.lang.String name(Identity identity, Descriptor descriptor)
Namerpublic java.lang.String simpleName(Identity identity, Descriptor descriptor)
NamersimpleName in interface Nameridentity - identity for the instrumented entitydescriptor - descriptor for the metricpublic java.lang.String uniqueName(Identity identity, Descriptor descriptor)
NameruniqueName in interface Nameridentity - identity for the instrumented entitydescriptor - descriptor for the metricCinnamon API. Copyright (c) 2015–2021 Lightbend.