Class HttpExporterConfig
java.lang.Object
org.apache.kafka.common.config.AbstractConfig
io.confluent.telemetry.events.exporter.ExporterConfig
io.confluent.telemetry.events.exporter.http.HttpExporterConfig
Configuration for the HttpExporter.
Note that we maintain the defaults in the `telemetry-client` library, so many of the defaults
in this class are null.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class io.confluent.telemetry.events.exporter.ExporterConfig
ExporterConfig.ExporterType -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final booleanstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class io.confluent.telemetry.events.exporter.ExporterConfig
ENABLED_CONFIG, ENABLED_CONFIG_DEFAULT, ENABLED_CONFIG_DOC, EVENTS_ENABLED_CONFIG, EVENTS_ENABLED_CONFIG_DEFAULT, EVENTS_ENABLED_CONFIG_DOC, EXPORTER_COMMON_CONFIG_PREFIXES, EXPORTER_COMMON_CONFIGS, METRICS_ENABLED_CONFIG, METRICS_ENABLED_CONFIG_DEFAULT, METRICS_ENABLED_CONFIG_DOC, PREFIX_EVENTS, PREFIX_EXPORTER, RECONFIGURABLES, TYPE_CONFIG, TYPE_CONFIG_DOCFields 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 TypeMethodDescriptionbooleanEquality and hash code based on all fields that determine HTTP client identity, including initial credentials and proxy settings.<Data, Req extends com.google.protobuf.MessageLite, Res extends com.google.protobuf.MessageLite>
io.confluent.telemetry.client.BufferingAsyncTelemetryHttpClient.Builder<Data, Req, Res> <Req extends com.google.protobuf.MessageLite, Resp extends com.google.protobuf.MessageLite>
io.confluent.telemetry.client.TelemetryHttpClient.Builder<Req, Resp> io.confluent.telemetry.client.CompressionAlgorithmGet the compression algorithm.io.confluent.telemetry.client.Credentialsio.confluent.telemetry.client.ProxyConfiginthashCode()booleanstatic voidMethods inherited from class io.confluent.telemetry.events.exporter.ExporterConfig
parseTypeMethods inherited from class org.apache.kafka.common.config.AbstractConfig
documentationOf, getBoolean, getClass, getConfiguredInstance, getConfiguredInstance, getConfiguredInstances, getConfiguredInstances, getConfiguredInstances, getDouble, getInt, getList, getLong, getPassword, getShort, getString, ignore, logUnused, nonInternalValues, originals, originals, originalsStrings, originalsWithPrefix, originalsWithPrefix, typeOf, unused, values, valuesWithPrefixAllOrNothing, valuesWithPrefixOverride
-
Field Details
-
PREFIX_BUFFER
- See Also:
-
PREFIX_CLIENT
- See Also:
-
PREFIX_PROXY
- See Also:
-
API_KEY
- See Also:
-
API_KEY_DOC
- See Also:
-
API_SECRET
- See Also:
-
API_SECRET_DOC
- See Also:
-
BUFFER_MAX_BATCH_DURATION_MS
- See Also:
-
BUFFER_MAX_BATCH_DURATION_MS_DOC
- See Also:
-
BUFFER_MAX_BATCH_SIZE
- See Also:
-
BUFFER_MAX_BATCH_SIZE_DOC
- See Also:
-
BUFFER_MAX_PENDING_BATCHES
- See Also:
-
BUFFER_MAX_PENDING_BATCHES_DOC
- See Also:
-
BUFFER_MAX_INFLIGHT_SUBMISSIONS
- See Also:
-
BUFFER_MAX_INFLIGHT_SUBMISSIONS_DOC
- See Also:
-
CLIENT_BASE_URL
- See Also:
-
CLIENT_BASE_URL_DOC
- See Also:
-
CLIENT_REQUEST_TIMEOUT_MS
- See Also:
-
CLIENT_REQUEST_TIMEOUT_MS_DOCS
- See Also:
-
CLIENT_CONNECT_TIMEOUT_MS
- See Also:
-
CLIENT_CONNECT_TIMEOUT_MS_DOC
- See Also:
-
CLIENT_MAX_ATTEMPTS
- See Also:
-
CLIENT_MAX_ATTEMPTS_DOC
- See Also:
-
CLIENT_RETRY_DELAY_SEC
- See Also:
-
CLIENT_RETRY_DELAY_SEC_DOC
- See Also:
-
CLIENT_COMPRESSION
- See Also:
-
CLIENT_COMPRESSION_DOC
- See Also:
-
PROXY_URL
- See Also:
-
PROXY_URL_DOC
- See Also:
-
PROXY_USERNAME
- See Also:
-
PROXY_USERNAME_DOC
- See Also:
-
PROXY_PASSWORD
- See Also:
-
PROXY_PASSWORD_DOC
- See Also:
-
CONNECTION_SSL_CONFIG_PREFIX
- See Also:
-
FILTERING_ENABLED
- See Also:
-
FILTERING_ENABLED_DOC
- See Also:
-
DEFAULT_FILTERING_ENABLED
public static final boolean DEFAULT_FILTERING_ENABLED- See Also:
-
ROUTES_ALLOWED
- See Also:
-
ROUTES_ALLOWED_DOC
- See Also:
-
DEFAULT_ROUTES_ALLOWED
-
RECONFIGURABLE_CONFIGS
-
-
Constructor Details
-
HttpExporterConfig
-
-
Method Details
-
main
-
equals
Equality and hash code based on all fields that determine HTTP client identity, including initial credentials and proxy settings. Used byHttpClientFactoryto share clients across exporters with identical configs.Credentials and proxy are included so that exporters with different credentials never share a client, avoiding credential supplier mixing. Per-exporter configs (filtering) are excluded as they do not affect client construction.
- Overrides:
equalsin classorg.apache.kafka.common.config.AbstractConfig
-
hashCode
public int hashCode()- Overrides:
hashCodein classorg.apache.kafka.common.config.AbstractConfig
-
getCredentials
public io.confluent.telemetry.client.Credentials getCredentials() -
getProxyConfig
public io.confluent.telemetry.client.ProxyConfig getProxyConfig() -
getCompressionAlgorithm
Get the compression algorithm. If the algorithm is unknown, this returns null. -
getClientBuilder
public <Req extends com.google.protobuf.MessageLite, Resp extends com.google.protobuf.MessageLite> io.confluent.telemetry.client.TelemetryHttpClient.Builder<Req,Resp> getClientBuilder() -
getBufferingAsyncClientBuilder
public <Data, Req extends com.google.protobuf.MessageLite, Res extends com.google.protobuf.MessageLite> io.confluent.telemetry.client.BufferingAsyncTelemetryHttpClient.Builder<Data,Req, getBufferingAsyncClientBuilder()Res> -
canEmitTelemetry
-
isFilteringEnabled
public boolean isFilteringEnabled() -
getAllowedRoutes
-
sslConfigs
-