Skip to content
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

Rename bookkeeper metrics to specify OpenMetrics #3406

Merged
merged 1 commit into from
Jul 16, 2022

Conversation

hezhangjian
Copy link
Member

@hezhangjian hezhangjian commented Jul 15, 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

Copy link
Contributor

@eolivelli eolivelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@hezhangjian
Copy link
Member Author

@dlg99 @nicoloboschi @hangc0276 PTAL

@hezhangjian
Copy link
Member Author

@hangc0276 I don't think it's necessary to modify these variable names. Let's keep the _count suffix consistent.

@hezhangjian hezhangjian merged commit ba22bee into apache:master Jul 16, 2022
@hezhangjian hezhangjian deleted the rename-bookkeeper-metrics branch July 16, 2022 01:23
@hangc0276 hangc0276 mentioned this pull request Jul 20, 2022
11 tasks
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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants