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 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 Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Provider
configInclude
-
Field Details
-
DOMAIN
- See Also:
-
NAMESPACE
- See Also:
-
KSQL_SERVICE_ID
- See Also:
-
-
Constructor Details
-
KsqlProvider
public KsqlProvider()
-
-
Method Details
-
configure
-
validate
-
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
-
domain
-
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
-