public interface Provider
extends org.apache.kafka.common.Configurable
ProviderRegistry.| Modifier and Type | Field and Description |
|---|---|
static Predicate<String> |
EXCLUDE_ALL |
| Modifier and Type | Method and Description |
|---|---|
default Predicate<String> |
configInclude()
Include list for config
|
void |
contextChange(org.apache.kafka.common.metrics.MetricsContext metricsContext)
Sets the metrics labels for the service or library exposing metrics.
|
String |
domain()
Domain of the active provider.
|
default List<MetricsCollector> |
extraCollectors(Context ctx)
The collector for Kafka Metrics library is enabled by default.
|
List<String> |
metricsIncludeRegexDefault()
The metrics include regular expression list used as a default value for this provider.
|
io.opentelemetry.proto.resource.v1.Resource |
resource()
The resource for this provider.
|
boolean |
validate(org.apache.kafka.common.metrics.MetricsContext metricsContext,
Map<String,?> config)
Validate that all the data required for generating correct metrics is present.
|
boolean validate(org.apache.kafka.common.metrics.MetricsContext metricsContext,
Map<String,?> config)
metricsContext - MetricsContextString domain()
io.opentelemetry.proto.resource.v1.Resource resource()
Resource will all the tags.void contextChange(org.apache.kafka.common.metrics.MetricsContext metricsContext)
MetricsReporter.init(List) and may be called anytime after that.metricsContext - MetricsContextList<String> metricsIncludeRegexDefault()
default List<MetricsCollector> extraCollectors(Context ctx)
ctx - Context