-
Notifications
You must be signed in to change notification settings - Fork 505
[observability] introduce prometheus-push mode #2317
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
Changes from 2 commits
5ccc85d
bc2a66e
52e468f
f205db1
9efcd73
157a65c
f754f3d
2d5c936
16c945f
27f0790
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -1773,6 +1773,57 @@ public class ConfigOptions { | |
| + "the CoordinatorServer) it is advisable to use a port range " | ||
| + "like 9250-9260."); | ||
|
|
||
| // ------------------------------------------------------------------------ | ||
| // ConfigOptions for prometheus push gateway reporter | ||
| // ------------------------------------------------------------------------ | ||
| public static final ConfigOption<String> METRICS_REPORTER_PROMETHEUS_PUSHGATEWAY_HOST_URL = | ||
| key("metrics.reporter.prometheus-pushgateway.hostUrl") | ||
| .stringType() | ||
| .noDefaultValue() | ||
| .withDescription("The URL of the Prometheus PushGateway to push metrics to."); | ||
|
|
||
| public static final ConfigOption<String> METRICS_REPORTER_PROMETHEUS_PUSHGATEWAY_JOB_NAME = | ||
| key("metrics.reporter.prometheus-pushgateway.jobName") | ||
| .stringType() | ||
| .noDefaultValue() | ||
| .withDescription( | ||
| "The job name under which to push metrics to Prometheus PushGateway."); | ||
|
|
||
| public static final ConfigOption<Boolean> | ||
| METRICS_REPORTER_PROMETHEUS_PUSHGATEWAY_RANDOM_JOB_NAME_SUFFIX = | ||
| key("metrics.reporter.prometheus-pushgateway.randomJobNameSuffix") | ||
| .booleanType() | ||
| .defaultValue(false) | ||
|
||
| .withDescription( | ||
| "Whether to append a random suffix to the job name. " | ||
| + "This is useful when multiple instances of the reporter " | ||
| + "are running on the same host."); | ||
|
|
||
| public static final ConfigOption<Boolean> | ||
| METRICS_REPORTER_PROMETHEUS_PUSHGATEWAY_DELETE_ON_SHUTDOWN = | ||
| key("metrics.reporter.prometheus-pushgateway.deleteOnShutdown") | ||
| .booleanType() | ||
| .defaultValue(false) | ||
| .withDescription( | ||
| "Whether to delete metrics from PushGateway on shutdown."); | ||
|
||
|
|
||
| public static final ConfigOption<Boolean> | ||
| METRICS_REPORTER_PROMETHEUS_PUSHGATEWAY_FILTER_LABEL_VALUE_CHARACTERS = | ||
| key("metrics.reporter.prometheus-pushgateway.filterLabelValueCharacters") | ||
| .booleanType() | ||
| .defaultValue(true) | ||
| .withDescription( | ||
| "Whether to filter characters in label values to conform to the " | ||
| + "Prometheus character set ([a-zA-Z0-9:_])."); | ||
|
|
||
| public static final ConfigOption<String> METRICS_REPORTER_PROMETHEUS_PUSHGATEWAY_GROUPING_KEY = | ||
| key("metrics.reporter.prometheus-pushgateway.groupingKey") | ||
| .stringType() | ||
| .noDefaultValue() | ||
| .withDescription( | ||
| "The grouping key to use when pushing metrics to Prometheus PushGateway. " | ||
| + "The format should be k1=v1;k2=v2."); | ||
|
||
|
|
||
| // ------------------------------------------------------------------------ | ||
| // ConfigOptions for jmx reporter | ||
| // ------------------------------------------------------------------------ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The configuration key is not aligned with Fluss format, I suggest to change them into
Use
prometheus-pushin the key as it is the identifier ofmetric.reporters=prometheus-push