-
Notifications
You must be signed in to change notification settings - Fork 13.9k
[FLINK-21309][metrics] Add UUID as grouping key for prom pushgateway #27744
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
base: master
Are you sure you want to change the base?
Changes from all commits
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 |
|---|---|---|
|
|
@@ -45,12 +45,15 @@ public class PrometheusPushGatewayReporterOptions { | |
| .defaultValue("") | ||
| .withDescription("The job name under which metrics will be pushed"); | ||
|
|
||
| @Deprecated | ||
| public static final ConfigOption<Boolean> RANDOM_JOB_NAME_SUFFIX = | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Are we sure we want to remove this configuration entirely? I’d imagine there are existing jobs and/or users already relying on it. This would also require updating the associated documentation and, at a minimum, feels like something that should be deprecated before being removed.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Good point. Let me deprecate it in the PR. I'm wondering should I also change the default value to
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sent a followup commit in this sense. |
||
| ConfigOptions.key("randomJobNameSuffix") | ||
| .booleanType() | ||
| .defaultValue(true) | ||
| .defaultValue(false) | ||
| .withDescription( | ||
| "Specifies whether a random suffix should be appended to the job name."); | ||
| "Specifies whether random suffixing `job` label (the old way) to avoid metric collision among reporters from taskamangers." | ||
| + " When disabled (now default) , metrics will be grouped under a random reporter id while job name is faithful to configuration." | ||
| + " This option is deprecated and it is recommended to rely on the reporter id grouping key."); | ||
|
|
||
| public static final ConfigOption<Boolean> DELETE_ON_SHUTDOWN = | ||
| ConfigOptions.key("deleteOnShutdown") | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
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.
We'll want to add a test here to cover the assertion against the user supplying "flink_prometheus_push_gateway_reporter_id" as an explicit grouping (asserting the expected exception).
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.
Done