|
|
|
@ -203,6 +203,11 @@ object Defaults {
@@ -203,6 +203,11 @@ object Defaults {
|
|
|
|
|
val MetricReporterClasses = "" |
|
|
|
|
val MetricRecordingLevel = Sensor.RecordingLevel.INFO.toString() |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** ********* Kafka Yammer Metrics Reporter Configuration ***********/ |
|
|
|
|
val KafkaMetricReporterClasses = "" |
|
|
|
|
val KafkaMetricsPollingIntervalSeconds = 10 |
|
|
|
|
|
|
|
|
|
/** ********* SSL configuration ***********/ |
|
|
|
|
val SslProtocol = SslConfigs.DEFAULT_SSL_PROTOCOL |
|
|
|
|
val SslEnabledProtocols = SslConfigs.DEFAULT_SSL_ENABLED_PROTOCOLS |
|
|
|
@ -410,6 +415,10 @@ object KafkaConfig {
@@ -410,6 +415,10 @@ object KafkaConfig {
|
|
|
|
|
val MetricReporterClassesProp: String = CommonClientConfigs.METRIC_REPORTER_CLASSES_CONFIG |
|
|
|
|
val MetricRecordingLevelProp: String = CommonClientConfigs.METRICS_RECORDING_LEVEL_CONFIG |
|
|
|
|
|
|
|
|
|
/** ********* Kafka Yammer Metrics Reporters Configuration ***********/ |
|
|
|
|
val KafkaMetricsReporterClassesProp = "kafka.metrics.reporters" |
|
|
|
|
val KafkaMetricsPollingIntervalSecondsProp = "kafka.metrics.polling.interval.secs" |
|
|
|
|
|
|
|
|
|
/** ******** Common Security Configuration *************/ |
|
|
|
|
val PrincipalBuilderClassProp = BrokerSecurityConfigs.PRINCIPAL_BUILDER_CLASS_CONFIG |
|
|
|
|
|
|
|
|
@ -720,6 +729,17 @@ object KafkaConfig {
@@ -720,6 +729,17 @@ object KafkaConfig {
|
|
|
|
|
val MetricReporterClassesDoc = CommonClientConfigs.METRIC_REPORTER_CLASSES_DOC |
|
|
|
|
val MetricRecordingLevelDoc = CommonClientConfigs.METRICS_RECORDING_LEVEL_DOC |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** ********* Kafka Yammer Metrics Reporter Configuration ***********/ |
|
|
|
|
val KafkaMetricsReporterClassesDoc = "A list of classes to use as Yammer metrics custom reporters." + |
|
|
|
|
" The reporters should implement <code>kafka.metrics.KafkaMetricsReporter</code> trait. If a client wants" + |
|
|
|
|
" to expose JMX operations on a custom reporter, the custom reporter needs to additionally implement an MBean" + |
|
|
|
|
" trait that extends <code>kafka.metrics.KafkaMetricsReporterMBean</code> trait so that the registered MBean is compliant with" + |
|
|
|
|
" the standard MBean convention." |
|
|
|
|
|
|
|
|
|
val KafkaMetricsPollingIntervalSecondsDoc = s"The metrics polling interval (in seconds) which can be used" + |
|
|
|
|
s" in $KafkaMetricsReporterClassesProp implementations." |
|
|
|
|
|
|
|
|
|
/** ******** Common Security Configuration *************/ |
|
|
|
|
val PrincipalBuilderClassDoc = BrokerSecurityConfigs.PRINCIPAL_BUILDER_CLASS_DOC |
|
|
|
|
|
|
|
|
@ -945,6 +965,10 @@ object KafkaConfig {
@@ -945,6 +965,10 @@ object KafkaConfig {
|
|
|
|
|
.define(MetricReporterClassesProp, LIST, Defaults.MetricReporterClasses, LOW, MetricReporterClassesDoc) |
|
|
|
|
.define(MetricRecordingLevelProp, STRING, Defaults.MetricRecordingLevel, LOW, MetricRecordingLevelDoc) |
|
|
|
|
|
|
|
|
|
/** ********* Kafka Yammer Metrics Reporter Configuration for docs ***********/ |
|
|
|
|
.define(KafkaMetricsReporterClassesProp, LIST, Defaults.KafkaMetricReporterClasses, LOW, KafkaMetricsReporterClassesDoc) |
|
|
|
|
.define(KafkaMetricsPollingIntervalSecondsProp, INT, Defaults.KafkaMetricsPollingIntervalSeconds, atLeast(1), LOW, KafkaMetricsPollingIntervalSecondsDoc) |
|
|
|
|
|
|
|
|
|
/** ********* Quota configuration ***********/ |
|
|
|
|
.define(ProducerQuotaBytesPerSecondDefaultProp, LONG, Defaults.ProducerQuotaBytesPerSecondDefault, atLeast(1), HIGH, ProducerQuotaBytesPerSecondDefaultDoc) |
|
|
|
|
.define(ConsumerQuotaBytesPerSecondDefaultProp, LONG, Defaults.ConsumerQuotaBytesPerSecondDefault, atLeast(1), HIGH, ConsumerQuotaBytesPerSecondDefaultDoc) |
|
|
|
|