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. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
collectionSize, collectionSize, commonTags, counter, counter, findMeter, findMeter, findMeter, findMeter, gauge, gauge, gauge, gauge, getMeters, longTaskTimer, longTaskTimer, mapSize, mapSize, register, summary, summary, timer, timer
protected final Clock clock
protected final java.util.List<Tag> commonTags
protected AbstractMeterRegistry(Clock clock)
public Clock getClock()
getClock
in interface MeterRegistry
public Timer.Builder timerBuilder(java.lang.String name)
MeterRegistry
Timer.Builder.create()
is called.timerBuilder
in interface MeterRegistry
name
- 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)
MeterRegistry
DistributionSummary.Builder.create()
is called.summaryBuilder
in interface MeterRegistry
name
- 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)
MeterRegistry
commonTags
in interface MeterRegistry