public class Metrics extends Object implements MetricsRegistry
| Constructor and Description |
|---|
Metrics(MetricsRegistry registry) |
Metrics(MetricsRegistry registry,
String baseName,
Collection<Tag> commonTags) |
| Modifier and Type | Method and Description |
|---|---|
protected Collection<Tag> |
combineTags(Collection<Tag> tags) |
Counter |
counter(String name) |
Counter |
counter(String name,
Collection<Tag> tags) |
protected String |
formatName(String name) |
<T> Gauge |
gauge(String name,
Collection<Tag> tags,
T obj,
ToDoubleFunction<T> f) |
<T> Gauge |
gauge(String name,
T obj,
ToDoubleFunction<T> f) |
Timer |
timer(String name) |
Timer |
timer(String name,
Collection<Tag> tags) |
public Metrics(MetricsRegistry registry, String baseName, Collection<Tag> commonTags)
public Metrics(MetricsRegistry registry)
protected Collection<Tag> combineTags(Collection<Tag> tags)
public <T> Gauge gauge(String name, T obj, ToDoubleFunction<T> f)
gauge in interface MetricsRegistrypublic <T> Gauge gauge(String name, Collection<Tag> tags, T obj, ToDoubleFunction<T> f)
gauge in interface MetricsRegistrypublic Counter counter(String name)
counter in interface MetricsRegistrypublic Counter counter(String name, Collection<Tag> tags)
counter in interface MetricsRegistrypublic Timer timer(String name)
timer in interface MetricsRegistrypublic Timer timer(String name, Collection<Tag> tags)
timer in interface MetricsRegistryCopyright © 2019. All rights reserved.