Skip to content

Rename bookkeeper metrics to specify OpenMetrics - #3406

Merged
hezhangjian merged 1 commit into
apache:masterfrom
hezhangjian:rename-bookkeeper-metrics
Jul 16, 2022
Merged

hezhangjian merged 1 commit into
apache:masterfrom
hezhangjian:rename-bookkeeper-metrics

Conversation

@hezhangjian

@hezhangjian hezhangjian commented Jul 15, 2022 •

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 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

@eolivelli eolivelli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@hezhangjian

Copy link
Copy Markdown
Member Author

@dlg99 @nicoloboschi @hangc0276 PTAL

@hezhangjian

Copy link
Copy Markdown
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
9 of 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