Package | Description |
---|---|
io.micrometer.core.instrument |
Copyright 2017 Pivotal Software, Inc.
|
io.micrometer.core.instrument.config |
Copyright 2017 Pivotal Software, Inc.
|
Modifier and Type | Method and Description |
---|---|
MeterRegistry.Config |
MeterRegistry.Config.meterFilter(MeterFilter filter)
Add a meter filter to the registry.
|
Modifier and Type | Method and Description |
---|---|
static MeterFilter |
MeterFilter.accept()
Include a meter in published metrics.
|
static MeterFilter |
MeterFilter.accept(Predicate<Meter.Id> iff)
When the given predicate is
true , the meter should be present in published metrics. |
static MeterFilter |
MeterFilter.commonTags(Iterable<Tag> tags)
Add common tags that are applied to every meter created afterward.
|
static MeterFilter |
MeterFilter.deny()
Reject a meter in published metrics.
|
static MeterFilter |
MeterFilter.deny(Predicate<Meter.Id> iff)
When the given predicate is
true , the meter should NOT be present in published metrics. |
static MeterFilter |
MeterFilter.denyNameStartsWith(String prefix)
Meters that start with the provided name should NOT be present in published metrics.
|
static MeterFilter |
MeterFilter.denyUnless(Predicate<Meter.Id> iff)
Can be used to build a whitelist of metrics matching certain criteria.
|
static MeterFilter |
MeterFilter.ignoreTags(String... tagKeys)
Suppress tags with a given tag key.
|
static MeterFilter |
MeterFilter.maxExpected(String prefix,
Duration max)
Set a maximum expected value on any
Timer whose name begins with the given prefix. |
static MeterFilter |
MeterFilter.maxExpected(String prefix,
long max)
Set a maximum expected value on any
DistributionSummary whose name begins with the given prefix. |
static MeterFilter |
MeterFilter.maximumAllowableMetrics(int maximumTimeSeries)
Useful for cost-control in monitoring systems which charge directly or indirectly by the
total number of time series you generate.
|
static MeterFilter |
MeterFilter.maximumAllowableTags(String meterNamePrefix,
String tagKey,
int maximumTagValues,
MeterFilter onMaxReached)
Places an upper bound on the number of tags produced by matching metrics.
|
static MeterFilter |
MeterFilter.minExpected(String prefix,
Duration min)
Set a minimum expected value on any
Timer whose name begins with the given prefix. |
static MeterFilter |
MeterFilter.minExpected(String prefix,
long min)
Set a minimum expected value on any
DistributionSummary whose name begins with the given prefix. |
static MeterFilter |
MeterFilter.renameTag(String meterNamePrefix,
String fromTagKey,
String toTagKey)
Rename a tag key for every metric beginning with a given prefix.
|
static MeterFilter |
MeterFilter.replaceTagValues(String tagKey,
Function<String,String> replacement,
String... exceptions)
Replace tag values according to the provided mapping for all matching tag keys.
|
Modifier and Type | Method and Description |
---|---|
static MeterFilter |
MeterFilter.maximumAllowableTags(String meterNamePrefix,
String tagKey,
int maximumTagValues,
MeterFilter onMaxReached)
Places an upper bound on the number of tags produced by matching metrics.
|
Copyright © 2019. All rights reserved.