Skip to content

Commit

Permalink
[FLINK-23845][docs] Improve PushGatewayReporter config:deleteOnShutdo…
Browse files Browse the repository at this point in the history
…wn description

This closes apache#16823.
  • Loading branch information
camilesing authored and tillrohrmann committed Aug 25, 2021
1 parent b09978b commit 18f176c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<td><h5>deleteOnShutdown</h5></td>
<td style="word-wrap: break-word;">true</td>
<td>Boolean</td>
<td>Specifies whether to delete metrics from the PushGateway on shutdown.</td>
<td>Specifies whether to delete metrics from the PushGateway on shutdown. Flink will try its best to delete the metrics but this is not guaranteed. See <a href="https://issues.apache.org/jira/browse/FLINK-13787">here</a> for more details.</td>
</tr>
<tr>
<td><h5>filterLabelValueCharacters</h5></td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,14 @@ public class PrometheusPushGatewayReporterOptions {
ConfigOptions.key("deleteOnShutdown")
.defaultValue(true)
.withDescription(
"Specifies whether to delete metrics from the PushGateway on shutdown.");
Description.builder()
.text(
"Specifies whether to delete metrics from the PushGateway on shutdown."
+ " Flink will try its best to delete the metrics but this is not guaranteed. See %s for more details.",
LinkElement.link(
"https://issues.apache.org/jira/browse/FLINK-13787",
"here"))
.build());

public static final ConfigOption<Boolean> FILTER_LABEL_VALUE_CHARACTER =
ConfigOptions.key("filterLabelValueCharacters")
Expand Down

0 comments on commit 18f176c

Please sign in to comment.