1
0

Add the document to the PUSHGATEWAY configuration item (#3627)

This commit is contained in:
liujinhui
2021-09-09 15:53:58 +08:00
committed by GitHub
parent db2ab9a150
commit 3c4eb60913

View File

@@ -40,7 +40,7 @@ public class HoodieMetricsPrometheusConfig extends HoodieConfig {
.key(PUSHGATEWAY_PREFIX + ".host") .key(PUSHGATEWAY_PREFIX + ".host")
.defaultValue("localhost") .defaultValue("localhost")
.sinceVersion("0.6.0") .sinceVersion("0.6.0")
.withDocumentation("Hostname of the prometheus push gateway"); .withDocumentation("Hostname of the prometheus push gateway.");
public static final ConfigProperty<Integer> PUSHGATEWAY_PORT_NUM = ConfigProperty public static final ConfigProperty<Integer> PUSHGATEWAY_PORT_NUM = ConfigProperty
.key(PUSHGATEWAY_PREFIX + ".port") .key(PUSHGATEWAY_PREFIX + ".port")
@@ -58,7 +58,7 @@ public class HoodieMetricsPrometheusConfig extends HoodieConfig {
.key(PUSHGATEWAY_PREFIX + ".delete.on.shutdown") .key(PUSHGATEWAY_PREFIX + ".delete.on.shutdown")
.defaultValue(true) .defaultValue(true)
.sinceVersion("0.6.0") .sinceVersion("0.6.0")
.withDocumentation(""); .withDocumentation("Delete the pushgateway info or not when job shutdown, true by default.");
public static final ConfigProperty<String> PUSHGATEWAY_JOBNAME = ConfigProperty public static final ConfigProperty<String> PUSHGATEWAY_JOBNAME = ConfigProperty
.key(PUSHGATEWAY_PREFIX + ".job.name") .key(PUSHGATEWAY_PREFIX + ".job.name")
@@ -70,7 +70,7 @@ public class HoodieMetricsPrometheusConfig extends HoodieConfig {
.key(PUSHGATEWAY_PREFIX + ".random.job.name.suffix") .key(PUSHGATEWAY_PREFIX + ".random.job.name.suffix")
.defaultValue(true) .defaultValue(true)
.sinceVersion("0.6.0") .sinceVersion("0.6.0")
.withDocumentation(""); .withDocumentation("Whether the pushgateway name need a random suffix , default true.");
// Prometheus HttpServer // Prometheus HttpServer
public static final String PROMETHEUS_PREFIX = METRIC_PREFIX + ".prometheus"; public static final String PROMETHEUS_PREFIX = METRIC_PREFIX + ".prometheus";