Class EventEmitterConfig
java.lang.Object
org.apache.kafka.common.config.AbstractConfig
io.confluent.telemetry.events.EventEmitterConfig
public class EventEmitterConfig
extends org.apache.kafka.common.config.AbstractConfig
EventEmitterConfig uses a hash map to save exporter configs, key is event type: events/metrics, value is a hash map, key is
exporter name, value is a map of exporter configs. Actual ExporterConfig will be created when create when exporter is created.
In ce-metrics, ConfluentTelemetryConfig uses a hash map to save exporter configs, key is exporter name, value is ExporterConfig
instance, so it can utilize helper method from ExporterConfig
TODO: consolidate EventEmitterConfig and ConfluentTelemetryConfig, jira: https://confluentinc.atlassian.net/browse/EVENTS-320
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.apache.kafka.common.config.AbstractConfig
AUTOMATIC_CONFIG_PROVIDERS_PROPERTY, CONFIG_PROVIDERS_CONFIG, CONFIG_PROVIDERS_DOC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet exporter configs of a certain event type, only enabled exporters are returnedbooleanisEventExporter(Map<String, Object> exporterConfig) booleanisEventsExporterEnabled(Map<String, Object> exporterConfig) booleanisHttpExporter(Map<String, Object> exporterConfig) booleanisInternalExporter(String exporterName) booleanisKafkaExporter(Map<String, Object> exporterConfig) Methods inherited from class org.apache.kafka.common.config.AbstractConfig
documentationOf, equals, getBoolean, getClass, getConfiguredInstance, getConfiguredInstance, getConfiguredInstances, getConfiguredInstances, getConfiguredInstances, getDouble, getInt, getList, getLong, getPassword, getShort, getString, hashCode, ignore, logUnused, nonInternalValues, originals, originals, originalsStrings, originalsWithPrefix, originalsWithPrefix, typeOf, unused, values, valuesWithPrefixAllOrNothing, valuesWithPrefixOverride
-
Constructor Details
-
EventEmitterConfig
-
-
Method Details
-
getEnabledExporterConfigs
public Map<String, Map<String,Object>> getEnabledExporterConfigs(EventEmitterConfig.EventType eventType) Get exporter configs of a certain event type, only enabled exporters are returned- Parameters:
eventType- : events or metrics- Returns:
- A hashmap of all enabled exporters of this event type, key is exporter name, value is a hashmap with all properties of this exporter, property name of this exporter will have event type prefix stripped off
-
getNonInternalExporterConfigs
-
isKafkaExporter
-
isHttpExporter
-
isInternalExporter
-
isEventExporter
-
isEventsExporterEnabled
-