-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Bump prometheus client version from 0.5.0 to 0.15.0 #13785
Bump prometheus client version from 0.5.0 to 0.15.0 #13785
Conversation
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.
LGTM +1
b190f84
to
f2d9af8
Compare
4bea6a1
to
84181c9
Compare
prometheus/client_java#615 |
84181c9
a2a6238
to
7e5b04f
Compare
9b5ff9b
to
2b50604
Compare
460171e
to
466a663
Compare
3d62ce9
to
8e9d266
Compare
…ats/prometheus/PrometheusMetricsGeneratorUtils.java Co-authored-by: Michael Marshall <[email protected]>
/pulsarbot run-failure-checks |
Version 0.16.0 is now available: https://github.com/prometheus/client_java/releases |
### Motivation - prometheus `simpleclient` has broken api, it makes `pulsar-client-origin` can not well used with other libraries - specify `OpenMetrics` This PR contains metric name broken changes. ### Modifications Bump prometheus client version from 0.5.0 to 0.15.0 ### changes - bump the client version - rename the field prometheus client `UNTYPED` to `UNKNOWN` - `OpenMetrics`'s counter name needs a `_total` suffix ### metrics name broken changes - rename `pulsar_expired_token_count` to `pulsar_expired_token_total` - rename `pulsar_authentication_success_count` to `pulsar_authentication_success_total` - rename `pulsar_authentication_failures_count` to `pulsar_authentication_failures_total` - rename `pulsar_sink_sink_exceptions_total_1min` to `pulsar_sink_sink_exceptions_1min_total` - rename `pulsar_source_received_total_1min` to `pulsar_source_received_1min_total` - rename `pulsar_source_written_total_1min` to `pulsar_source_written_1min_total` - rename `pulsar_source_source_total_1min` to `pulsar_source_source_exceptions_1min_total ` - rename `pulsar_source_system_exceptions_total_1min` to `pulsar_source_system_exceptions_1min_total ` - rename `pulsar_function_received_total_1min` to `pulsar_function_received_1min_total ` - rename `pulsar_function_user_exceptions_total_1min` to `pulsar_function_user_exceptions_1min_total` - rename `pulsar_function_system_exceptions_total_1min` to `pulsar_function_system_exceptions_1min_total` - rename `pulsar_function_processed_successfully_total_1min` to `pulsar_function_processed_successfully_1min_total` - rename `pulsar_function_received_total_1min` to `pulsar_function_received_1min_total` - rename `pulsar_function_user_exceptions_total_1min` to `pulsar_function_user_exceptions_1min_total` - rename `pulsar_function_system_exceptions_total_1min` to `pulsar_function_system_exceptions_1min_total` - rename `pulsar_function_processed_successfully_total_1min` to `pulsar_function_processed_successfully_1min_total` - rename `pulsar_sink_received_total_1min` to `pulsar_sink_received_1min_total` - rename `pulsar_sink_written_total_1min` to `pulsar_sink_written_1min_total` - rename `pulsar_sink_sink_exceptions_total_1min` to `pulsar_sink_sink_exceptions_1min_total` - rename `pulsar_sink_system_exceptions_total_1min` to `pulsar_sink_system_exceptions_1min_total` - rename `pulsar_sink_received_total_1min` to `pulsar_sink_received_1min_total` - rename `pulsar_sink_written_total_1min` to `pulsar_sink_written_1min_total` - rename `pulsar_sink_sink_exceptions_total_1min` to `pulsar_sink_sink_exceptions_1min_total` - rename `pulsar_sink_system_exceptions_total_1min` to `pulsar_sink_system_exceptions_1min_total` ### Documentation Check the box below or label this PR directly. Need to update docs? - [x] `doc-required` As mentioned above, the metrics name has changed
@dave2wave - thanks for sharing. Based on two of the enhancements, we should probably upgrade before cutting the 2.11 branch. Here are the two that we should specifically benefit from:
|
@dave2wave @michaeljmarshall Thanks, I will follow up on this |
### Motivation - prometheus `simpleclient` has broken api, it makes `pulsar-client-origin` can not well used with other libraries - specify `OpenMetrics` This PR contains metric name broken changes. ### Modifications Bump prometheus client version from 0.5.0 to 0.15.0 ### changes - bump the client version - rename the field prometheus client `UNTYPED` to `UNKNOWN` - `OpenMetrics`'s counter name needs a `_total` suffix ### metrics name broken changes - rename `pulsar_expired_token_count` to `pulsar_expired_token_total` - rename `pulsar_authentication_success_count` to `pulsar_authentication_success_total` - rename `pulsar_authentication_failures_count` to `pulsar_authentication_failures_total` - rename `pulsar_sink_sink_exceptions_total_1min` to `pulsar_sink_sink_exceptions_1min_total` - rename `pulsar_source_received_total_1min` to `pulsar_source_received_1min_total` - rename `pulsar_source_written_total_1min` to `pulsar_source_written_1min_total` - rename `pulsar_source_source_total_1min` to `pulsar_source_source_exceptions_1min_total ` - rename `pulsar_source_system_exceptions_total_1min` to `pulsar_source_system_exceptions_1min_total ` - rename `pulsar_function_received_total_1min` to `pulsar_function_received_1min_total ` - rename `pulsar_function_user_exceptions_total_1min` to `pulsar_function_user_exceptions_1min_total` - rename `pulsar_function_system_exceptions_total_1min` to `pulsar_function_system_exceptions_1min_total` - rename `pulsar_function_processed_successfully_total_1min` to `pulsar_function_processed_successfully_1min_total` - rename `pulsar_function_received_total_1min` to `pulsar_function_received_1min_total` - rename `pulsar_function_user_exceptions_total_1min` to `pulsar_function_user_exceptions_1min_total` - rename `pulsar_function_system_exceptions_total_1min` to `pulsar_function_system_exceptions_1min_total` - rename `pulsar_function_processed_successfully_total_1min` to `pulsar_function_processed_successfully_1min_total` - rename `pulsar_sink_received_total_1min` to `pulsar_sink_received_1min_total` - rename `pulsar_sink_written_total_1min` to `pulsar_sink_written_1min_total` - rename `pulsar_sink_sink_exceptions_total_1min` to `pulsar_sink_sink_exceptions_1min_total` - rename `pulsar_sink_system_exceptions_total_1min` to `pulsar_sink_system_exceptions_1min_total` - rename `pulsar_sink_received_total_1min` to `pulsar_sink_received_1min_total` - rename `pulsar_sink_written_total_1min` to `pulsar_sink_written_1min_total` - rename `pulsar_sink_sink_exceptions_total_1min` to `pulsar_sink_sink_exceptions_1min_total` - rename `pulsar_sink_system_exceptions_total_1min` to `pulsar_sink_system_exceptions_1min_total` ### Documentation Check the box below or label this PR directly. Need to update docs? - [x] `doc-required` As mentioned above, the metrics name has changed
### Motivation See https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md A COUNTER needs `metrics_name_total` or `metrics_name_created` This PR contains metric name broken changes. ### Modifications Rename counter's `_count` to `_total` ### metrics name broken changes - rename `FAILED_TO_RESOLVE_NETWORK_LOCATION_COUNTER` to `FAILED_TO_RESOLVE_NETWORK_LOCATION_TOTAL` - rename `ENSEMBLE_NOT_ADHERING_TO_PLACEMENT_POLICY_COUNT` to `ENSEMBLE_NOT_ADHERING_TO_PLACEMENT_POLICY_TOTAL` - rename `ACTIVE_ENTRY_LOG_COUNT` to `ACTIVE_ENTRY_LOG_TOTAL` - rename `MAJOR_COMPACTION_COUNT` to `MAJOR_COMPACTION_TOTAL` - rename `MINOR_COMPACTION_COUNT` to `MINOR_COMPACTION_TOTAL` - rename `ACTIVE_LEDGER_COUNT` to `ACTIVE_LEDGER_TOTAL` - rename `DELETED_LEDGER_COUNT` to `DELETED_LEDGER_TOTAL` - rename `JOURNAL_FORCE_WRITE_GROUPING_COUNT` to `JOURNAL_FORCE_WRITE_GROUPING_TOTAL` ### Also see - apache/pulsar#13785 - apache/pulsar#16591 - apache/pulsar#16610 - apache/pulsar#16611
The doc update has been included in the PR. The |
### Motivation - prometheus `simpleclient` has broken api, it makes `pulsar-client-origin` can not well used with other libraries - specify `OpenMetrics` This PR contains metric name broken changes. ### Modifications Bump prometheus client version from 0.5.0 to 0.15.0 ### changes - bump the client version - rename the field prometheus client `UNTYPED` to `UNKNOWN` - `OpenMetrics`'s counter name needs a `_total` suffix ### metrics name broken changes - rename `pulsar_expired_token_count` to `pulsar_expired_token_total` - rename `pulsar_authentication_success_count` to `pulsar_authentication_success_total` - rename `pulsar_authentication_failures_count` to `pulsar_authentication_failures_total` - rename `pulsar_sink_sink_exceptions_total_1min` to `pulsar_sink_sink_exceptions_1min_total` - rename `pulsar_source_received_total_1min` to `pulsar_source_received_1min_total` - rename `pulsar_source_written_total_1min` to `pulsar_source_written_1min_total` - rename `pulsar_source_source_total_1min` to `pulsar_source_source_exceptions_1min_total ` - rename `pulsar_source_system_exceptions_total_1min` to `pulsar_source_system_exceptions_1min_total ` - rename `pulsar_function_received_total_1min` to `pulsar_function_received_1min_total ` - rename `pulsar_function_user_exceptions_total_1min` to `pulsar_function_user_exceptions_1min_total` - rename `pulsar_function_system_exceptions_total_1min` to `pulsar_function_system_exceptions_1min_total` - rename `pulsar_function_processed_successfully_total_1min` to `pulsar_function_processed_successfully_1min_total` - rename `pulsar_function_received_total_1min` to `pulsar_function_received_1min_total` - rename `pulsar_function_user_exceptions_total_1min` to `pulsar_function_user_exceptions_1min_total` - rename `pulsar_function_system_exceptions_total_1min` to `pulsar_function_system_exceptions_1min_total` - rename `pulsar_function_processed_successfully_total_1min` to `pulsar_function_processed_successfully_1min_total` - rename `pulsar_sink_received_total_1min` to `pulsar_sink_received_1min_total` - rename `pulsar_sink_written_total_1min` to `pulsar_sink_written_1min_total` - rename `pulsar_sink_sink_exceptions_total_1min` to `pulsar_sink_sink_exceptions_1min_total` - rename `pulsar_sink_system_exceptions_total_1min` to `pulsar_sink_system_exceptions_1min_total` - rename `pulsar_sink_received_total_1min` to `pulsar_sink_received_1min_total` - rename `pulsar_sink_written_total_1min` to `pulsar_sink_written_1min_total` - rename `pulsar_sink_sink_exceptions_total_1min` to `pulsar_sink_sink_exceptions_1min_total` - rename `pulsar_sink_system_exceptions_total_1min` to `pulsar_sink_system_exceptions_1min_total` ### Documentation Check the box below or label this PR directly. Need to update docs? - [x] `doc-required` As mentioned above, the metrics name has changed (cherry picked from commit c0b4d57)
This change cannot go to branch-2.10 @Jason918 please revert |
@eolivelli |
### Motivation See https://github.com/OpenObservability/OpenMetrics/blob/main/specification/OpenMetrics.md A COUNTER needs `metrics_name_total` or `metrics_name_created` This PR contains metric name broken changes. ### Modifications Rename counter's `_count` to `_total` ### metrics name broken changes - rename `FAILED_TO_RESOLVE_NETWORK_LOCATION_COUNTER` to `FAILED_TO_RESOLVE_NETWORK_LOCATION_TOTAL` - rename `ENSEMBLE_NOT_ADHERING_TO_PLACEMENT_POLICY_COUNT` to `ENSEMBLE_NOT_ADHERING_TO_PLACEMENT_POLICY_TOTAL` - rename `ACTIVE_ENTRY_LOG_COUNT` to `ACTIVE_ENTRY_LOG_TOTAL` - rename `MAJOR_COMPACTION_COUNT` to `MAJOR_COMPACTION_TOTAL` - rename `MINOR_COMPACTION_COUNT` to `MINOR_COMPACTION_TOTAL` - rename `ACTIVE_LEDGER_COUNT` to `ACTIVE_LEDGER_TOTAL` - rename `DELETED_LEDGER_COUNT` to `DELETED_LEDGER_TOTAL` - rename `JOURNAL_FORCE_WRITE_GROUPING_COUNT` to `JOURNAL_FORCE_WRITE_GROUPING_TOTAL` ### Also see - apache/pulsar#13785 - apache/pulsar#16591 - apache/pulsar#16610 - apache/pulsar#16611
Motivation
simpleclient
has broken api, it makespulsar-client-origin
can not well used with other librariesOpenMetrics
This PR contains metric name broken changes.
Modifications
Bump prometheus client version from 0.5.0 to 0.15.0
changes
UNTYPED
toUNKNOWN
OpenMetrics
's counter name needs a_total
suffixmetrics name broken changes
pulsar_expired_token_count
topulsar_expired_token_total
pulsar_authentication_success_count
topulsar_authentication_success_total
pulsar_authentication_failures_count
topulsar_authentication_failures_total
pulsar_sink_sink_exceptions_total_1min
topulsar_sink_sink_exceptions_1min_total
pulsar_source_received_total_1min
topulsar_source_received_1min_total
pulsar_source_written_total_1min
topulsar_source_written_1min_total
pulsar_source_source_total_1min
topulsar_source_source_exceptions_1min_total
pulsar_source_system_exceptions_total_1min
topulsar_source_system_exceptions_1min_total
pulsar_function_received_total_1min
topulsar_function_received_1min_total
pulsar_function_user_exceptions_total_1min
topulsar_function_user_exceptions_1min_total
pulsar_function_system_exceptions_total_1min
topulsar_function_system_exceptions_1min_total
pulsar_function_processed_successfully_total_1min
topulsar_function_processed_successfully_1min_total
pulsar_function_received_total_1min
topulsar_function_received_1min_total
pulsar_function_user_exceptions_total_1min
topulsar_function_user_exceptions_1min_total
pulsar_function_system_exceptions_total_1min
topulsar_function_system_exceptions_1min_total
pulsar_function_processed_successfully_total_1min
topulsar_function_processed_successfully_1min_total
pulsar_sink_received_total_1min
topulsar_sink_received_1min_total
pulsar_sink_written_total_1min
topulsar_sink_written_1min_total
pulsar_sink_sink_exceptions_total_1min
topulsar_sink_sink_exceptions_1min_total
pulsar_sink_system_exceptions_total_1min
topulsar_sink_system_exceptions_1min_total
pulsar_sink_received_total_1min
topulsar_sink_received_1min_total
pulsar_sink_written_total_1min
topulsar_sink_written_1min_total
pulsar_sink_sink_exceptions_total_1min
topulsar_sink_sink_exceptions_1min_total
pulsar_sink_system_exceptions_total_1min
topulsar_sink_system_exceptions_1min_total
Documentation
Check the box below or label this PR directly.
Need to update docs?
doc
As mentioned above, the metrics name has changed