@Target(value=METHOD) @Retention(value=RUNTIME) public @interface MetricsLabels
metrics.labels
field
and its value to the descriptor
for a method on an MBean. The existence of this annotation on
an MBean attribute indicates that the MBean attribute is mapped to
a metrics value with additional tags.
By default, an MBean attribute is not mapped to a metrics value
or
metrics tag.
This annotation is intended to be put on MBean attribute type's
containing meta info about all the metrics.values associated with an MBean.
Modifier and Type | Fields and Description |
---|---|
static String |
DESCRIPTOR_KEY
The MBean descriptor key that this annotation creates.
|
public static final String DESCRIPTOR_KEY
@DescriptorKey(value="metric.labels") public abstract String[] value
The value should be a String array of key/value pairs, therefore there should be an even number of String values.