Skip to content

Rename Pulsar lb metrics to specify OpenMetrics - #16611

Merged
hezhangjian merged 1 commit into
apache:masterfrom
hezhangjian:lb-metrics
Jul 17, 2022
Merged

hezhangjian merged 1 commit into
apache:masterfrom
hezhangjian:lb-metrics

Conversation

@hezhangjian

Copy link
Copy Markdown
Member

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 pulsar_lb_unload_broker_count to pulsar_lb_unload_broker_total
  • rename pulsar_lb_unload_bundle_count to pulsar_lb_unload_bundle_total
  • rename pulsar_lb_bundles_split_count to pulsar_lb_bundles_split_total

Documentation

  • doc
    As mentioned above, the metrics name has changed

@github-actions github-actions Bot added the doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. label Jul 15, 2022
hezhangjian added a commit to apache/bookkeeper that referenced this pull request Jul 16, 2022
### 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
@hezhangjian

Copy link
Copy Markdown
Member Author

/pulsarbot run-failure-checks

@codelipenghui codelipenghui added this to the 2.11.0 milestone Jul 16, 2022
@codelipenghui codelipenghui added area/metrics release/important-notice The changes which are important should be mentioned in the release note labels Jul 16, 2022
@hezhangjian

Copy link
Copy Markdown
Member Author

@hezhangjian
hezhangjian merged commit b45751c into apache:master Jul 17, 2022
@hezhangjian
hezhangjian deleted the lb-metrics branch July 17, 2022 06:58
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
### 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/metrics doc Your PR contains doc changes, no matter whether the changes are in markdown or code files. release/important-notice The changes which are important should be mentioned in the release note

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants