Skip to content

Rename Pulsar schema metrics to specify OpenMetrics - #16610

Merged
codelipenghui merged 1 commit into
apache:masterfrom
hezhangjian:schema-metrics
Jul 16, 2022
Merged

codelipenghui merged 1 commit into
apache:masterfrom
hezhangjian:schema-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_schema_del_ops_failed_count to pulsar_schema_del_ops_failed_total
  • rename pulsar_schema_get_ops_failed_count to pulsar_schema_get_ops_failed_total
  • rename pulsar_schema_put_ops_failed_count to pulsar_schema_put_ops_failed_total
  • rename pulsar_schema_compatible_count to pulsar_schema_compatible_total
  • rename pulsar_schema_incompatible_count to pulsar_schema_incompatible_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 release/important-notice The changes which are important should be mentioned in the release note area/metrics labels Jul 16, 2022
@codelipenghui codelipenghui added this to the 2.11.0 milestone Jul 16, 2022
@codelipenghui
codelipenghui merged commit 24c62c1 into apache:master Jul 16, 2022
@hezhangjian
hezhangjian deleted the schema-metrics branch July 16, 2022 13:38
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