public abstract class AbstractMeterRegistry extends java.lang.Object implements MeterRegistry
| Modifier and Type | Field and Description |
|---|---|
protected Clock |
clock |
protected java.util.List<Tag> |
commonTags |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMeterRegistry(Clock clock) |
| Modifier and Type | Method and Description |
|---|---|
void |
commonTags(java.lang.Iterable<Tag> tags)
Append a list of common tags to apply to all metrics reported to the monitoring system.
|
protected abstract DistributionSummary |
distributionSummary(java.lang.String name,
java.lang.Iterable<Tag> tags,
Quantiles quantiles,
Histogram<?> histogram) |
Clock |
getClock() |
DistributionSummary.Builder |
summaryBuilder(java.lang.String name)
Build a new Distribution Summary, which is registered with this registry once
DistributionSummary.Builder.create() is called. |
protected abstract Timer |
timer(java.lang.String name,
java.lang.Iterable<Tag> tags,
Quantiles quantiles,
Histogram<?> histogram) |
Timer.Builder |
timerBuilder(java.lang.String name)
Build a new Timer, which is registered with this registry once
Timer.Builder.create() is called. |
protected java.lang.Iterable<Tag> |
withCommonTags(java.lang.Iterable<Tag> tags) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcollectionSize, collectionSize, commonTags, counter, counter, counter, counter, counter, counter, findMeter, findMeter, findMeter, findMeter, gauge, gauge, gauge, gauge, getMeters, longTaskTimer, longTaskTimer, mapSize, mapSize, register, summary, summary, timer, timerprotected final Clock clock
protected final java.util.List<Tag> commonTags
protected AbstractMeterRegistry(Clock clock)
public Clock getClock()
getClock in interface MeterRegistrypublic Timer.Builder timerBuilder(java.lang.String name)
MeterRegistryTimer.Builder.create() is called.timerBuilder in interface MeterRegistryname - The name of the timer (which is the only requirement for a new timer).protected abstract Timer timer(java.lang.String name, java.lang.Iterable<Tag> tags, Quantiles quantiles, Histogram<?> histogram)
public DistributionSummary.Builder summaryBuilder(java.lang.String name)
MeterRegistryDistributionSummary.Builder.create() is called.summaryBuilder in interface MeterRegistryname - The name of the distribution summary (which is the only requirement for a new distribution summary).protected abstract DistributionSummary distributionSummary(java.lang.String name, java.lang.Iterable<Tag> tags, Quantiles quantiles, Histogram<?> histogram)
public void commonTags(java.lang.Iterable<Tag> tags)
MeterRegistrycommonTags in interface MeterRegistry