Package io.confluent.telemetry.provider
Class KsqlProvider
java.lang.Object
io.confluent.telemetry.provider.KsqlProvider
- All Implemented Interfaces:
Provider,org.apache.kafka.common.Configurable
-
Field Summary
FieldsFields inherited from interface io.confluent.telemetry.provider.Provider
EXCLUDE_ALL -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidcontextChange(org.apache.kafka.common.metrics.MetricsContext metricsContext) Sets the metrics labels for the service or library exposing metrics.domain()Domain of the active provider.extraCollectors(Context ctx) The collector for Kafka Metrics library is enabled by default.The metrics include regular expression list used as a default value for this provider.io.opentelemetry.proto.resource.v1.Resourceresource()The resource for this provider.booleanValidate that all the data required for generating correct metrics is present.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.confluent.telemetry.provider.Provider
configInclude
-
Field Details
-
DOMAIN
- See Also:
-
NAMESPACE
- See Also:
-
KSQL_SERVICE_ID
- See Also:
-
-
Constructor Details
-
KsqlProvider
public KsqlProvider()
-
-
Method Details
-
configure
- Specified by:
configurein interfaceorg.apache.kafka.common.Configurable
-
validate
public boolean validate(org.apache.kafka.common.metrics.MetricsContext metricsContext, Map<String, ?> config) Description copied from interface:ProviderValidate that all the data required for generating correct metrics is present. The provider will be disabled if validation fails. -
contextChange
public void contextChange(org.apache.kafka.common.metrics.MetricsContext metricsContext) Description copied from interface:ProviderSets the metrics labels for the service or library exposing metrics. This will be called beforeMetricsReporter.init(List)and may be called anytime after that.- Specified by:
contextChangein interfaceProvider- Parameters:
metricsContext-MetricsContext
-
metricsIncludeRegexDefault
Description copied from interface:ProviderThe metrics include regular expression list used as a default value for this provider. This list will be joined as following '.*.*|.* .*' to form a union. - Specified by:
metricsIncludeRegexDefaultin interfaceProvider- Returns:
- a list of regular expressions to match metric names
-
resource
public io.opentelemetry.proto.resource.v1.Resource resource()Description copied from interface:ProviderThe resource for this provider. -
domain
Description copied from interface:ProviderDomain of the active provider. This is used by other parts of the reporter. -
extraCollectors
Description copied from interface:ProviderThe collector for Kafka Metrics library is enabled by default. If you need any more, add them here.- Specified by:
extraCollectorsin interfaceProvider- Parameters:
ctx-Context- Returns:
- List of extra collectors
-