From 3c4eb60913cac9cd22c768ae404b9e4078df7a9d Mon Sep 17 00:00:00 2001 From: liujinhui <965147871@qq.com> Date: Thu, 9 Sep 2021 15:53:58 +0800 Subject: [PATCH] Add the document to the PUSHGATEWAY configuration item (#3627) --- .../apache/hudi/config/HoodieMetricsPrometheusConfig.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/config/HoodieMetricsPrometheusConfig.java b/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/config/HoodieMetricsPrometheusConfig.java index 615222f4a..9ec2ec62e 100644 --- a/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/config/HoodieMetricsPrometheusConfig.java +++ b/hudi-client/hudi-client-common/src/main/java/org/apache/hudi/config/HoodieMetricsPrometheusConfig.java @@ -40,7 +40,7 @@ public class HoodieMetricsPrometheusConfig extends HoodieConfig { .key(PUSHGATEWAY_PREFIX + ".host") .defaultValue("localhost") .sinceVersion("0.6.0") - .withDocumentation("Hostname of the prometheus push gateway"); + .withDocumentation("Hostname of the prometheus push gateway."); public static final ConfigProperty PUSHGATEWAY_PORT_NUM = ConfigProperty .key(PUSHGATEWAY_PREFIX + ".port") @@ -58,7 +58,7 @@ public class HoodieMetricsPrometheusConfig extends HoodieConfig { .key(PUSHGATEWAY_PREFIX + ".delete.on.shutdown") .defaultValue(true) .sinceVersion("0.6.0") - .withDocumentation(""); + .withDocumentation("Delete the pushgateway info or not when job shutdown, true by default."); public static final ConfigProperty PUSHGATEWAY_JOBNAME = ConfigProperty .key(PUSHGATEWAY_PREFIX + ".job.name") @@ -70,7 +70,7 @@ public class HoodieMetricsPrometheusConfig extends HoodieConfig { .key(PUSHGATEWAY_PREFIX + ".random.job.name.suffix") .defaultValue(true) .sinceVersion("0.6.0") - .withDocumentation(""); + .withDocumentation("Whether the pushgateway name need a random suffix , default true."); // Prometheus HttpServer public static final String PROMETHEUS_PREFIX = METRIC_PREFIX + ".prometheus";