Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KAFKA-5066: Add KafkaMetricsConfig (Yammer metrics reporters) props to documentation #5563

Closed

Conversation

omkreddy
Copy link
Contributor

@omkreddy omkreddy commented Aug 23, 2018

Committer Checklist (excluded from commit message)

  • Verify design and implementation
  • Verify test coverage and CI build status
  • Verify documentation (including upgrade notes)

@omkreddy omkreddy changed the title KAFKA-5066: Add KafkaMetricsConfig (Yammer metrics reporter) props to documentation KAFKA-5066: Add KafkaMetricsConfig (Yammer metrics reporters) props to documentation Aug 23, 2018
@omkreddy
Copy link
Contributor Author

@hachikuji Please take a look at this minor change for doc purpose.

@omkreddy
Copy link
Contributor Author

omkreddy commented Sep 7, 2018

@junrao @ijuma minor PR for doc purpose.

@omkreddy
Copy link
Contributor Author

@lindong28 Please take a look whenever you get a chance. This is a minor change for doc purpose.

@lindong28 lindong28 self-assigned this Sep 21, 2018
Copy link
Member

@lindong28 lindong28 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the patch @omkreddy. Looks good overall. Left only one minor comment.

@@ -22,16 +22,33 @@ package kafka.metrics

import kafka.utils.{VerifiableProperties, CoreUtils}

object KafkaMetricsConfig {

val KafkaMetricsReporterClassesProp = "kafka.metrics.reporters"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would it be more readable and consistent with existing code style by moving these variables (property name, doc and default value) to KafkaConfig.java?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lindong28 Makes sense. Updated the PR to make it consistent with existing configs.

@omkreddy omkreddy force-pushed the KAFKA-5066-KAFKA-METRICS-CONFIG branch from 8538076 to c2e5961 Compare September 24, 2018 09:14
@omkreddy omkreddy force-pushed the KAFKA-5066-KAFKA-METRICS-CONFIG branch from c2e5961 to 07e9fe0 Compare September 24, 2018 09:16

class KafkaMetricsConfig(props: VerifiableProperties) {

/**
* Comma-separated list of reporter types. These classes should be on the
* classpath and will be instantiated at run-time.
*/
val reporters = CoreUtils.parseCsvList(props.getString("kafka.metrics.reporters", ""))
val reporters = CoreUtils.parseCsvList(props.getString(KafkaConfig.KafkaMetricsReporterClassesProp, ""))
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the update. Just one more minor comment. Would it be slightly better to also define KafkaMetricsReporterClasses = "" in kafka.serverDefaults, similar to the existing Defaults.MetricReporterClasses = ""? It seems that in the existing KafkaConfig.java, we always use use a default variable with value "" rather than using "" directly. Otherwise LGTM.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@lindong28 Thanks for the review. Updated the PR.

@lindong28 lindong28 closed this in c835331 Sep 25, 2018
@omkreddy omkreddy deleted the KAFKA-5066-KAFKA-METRICS-CONFIG branch September 25, 2018 06:17
@lindong28
Copy link
Member

Thanks for the patch @omkreddy :)

pengxiaolong pushed a commit to pengxiaolong/kafka that referenced this pull request Jun 14, 2019
…o documentation

Author: Manikumar Reddy <manikumar.reddy@gmail.com>

Reviewers: Dong Lin <lindong28@gmail.com>

Closes apache#5563 from omkreddy/KAFKA-5066-KAFKA-METRICS-CONFIG
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants