public interface MetricsFactory
Modifier and Type | Method and Description |
---|---|
Counter |
createCounter(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> tags)
Creates a counter with the given gauge name and set of tags.
|
Gauge |
createGauge(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> tags)
Creates a gauge with the given gauge name and set of tags.
|
Timer |
createTimer(java.lang.String name,
java.util.Map<java.lang.String,java.lang.String> tags)
Creates a timer with the given timer name and set of tags.
|
Counter createCounter(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> tags)
name
- the counter nametags
- the tags to add to the counterCounter
with a metric name following the counter name and tagsMetrics.addTagsToMetricName(String, Map)
Timer createTimer(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> tags)
name
- the timer nametags
- the tags to add to the timerTimer
with a metric name following the counter name and tagsMetrics.addTagsToMetricName(String, Map)
Gauge createGauge(java.lang.String name, java.util.Map<java.lang.String,java.lang.String> tags)
name
- the gauge nametags
- the tags to add to the gaugeGauge
with a metric name following the gauge name and tagsMetrics.addTagsToMetricName(String, Map)