Modifier and Type | Field and Description |
---|---|
static String |
DOMAIN |
static String |
NAMESPACE |
EXCLUDE_ALL
Constructor and Description |
---|
KafkaRestProvider() |
Modifier and Type | Method and Description |
---|---|
void |
configure(Map<String,?> configs) |
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.
|
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.opencensus.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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configInclude
public static final String DOMAIN
public static final String NAMESPACE
public void configure(Map<String,?> configs)
configure
in interface org.apache.kafka.common.Configurable
public boolean validate(org.apache.kafka.common.metrics.MetricsContext metricsContext, Map<String,?> config)
Provider
public void contextChange(org.apache.kafka.common.metrics.MetricsContext metricsContext)
Provider
MetricsReporter.init(List)
and may be called anytime after that.contextChange
in interface Provider
metricsContext
- MetricsContext
public io.opencensus.proto.resource.v1.Resource resource()
Provider
public String domain()
Provider
public List<MetricsCollector> extraCollectors(Context ctx)
Provider
extraCollectors
in interface Provider
ctx
- Context
public List<String> metricsIncludeRegexDefault()
Provider
metricsIncludeRegexDefault
in interface Provider