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
IGNITE-14428 Formalizes the names of the metrics included in the metric registry. #8937
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.
@ololo3000 , LGTM
@nizhikov , Hi. Could you take a look too, please?
@nizhikov Could you confirm please that you are willing to take a look when you will have spare time? |
modules/core/src/main/java/org/apache/ignite/internal/processors/metric/MetricRegistry.java
Outdated
Show resolved
Hide resolved
modules/core/src/test/java/org/apache/ignite/internal/metric/MetricsSelfTest.java
Show resolved
Hide resolved
@ololo3000 I left couple of minor comments. Please, fix them prior merge. Thanks for reaching out. |
modules/core/src/main/java/org/apache/ignite/internal/processors/metric/MetricRegistry.java
Outdated
Show resolved
Hide resolved
.../core/src/main/java/org/apache/ignite/spi/discovery/tcp/internal/TcpDiscoveryStatistics.java
Show resolved
Hide resolved
@nizhikov I have updated PR as we discussed. |
modules/core/src/main/java/org/apache/ignite/internal/processors/metric/MetricRegistry.java
Outdated
Show resolved
Hide resolved
modules/core/src/main/java/org/apache/ignite/internal/processors/metric/impl/MetricUtils.java
Outdated
Show resolved
Hide resolved
LGTM. |
Current PR constraints name of the metrics that can be registered through MetricRegistry#register(Metric) - it must start with the name of metric registry it's registered into.
The purpose of this change is to make all metrics that belongs to one MetricRegistry have the name that obeys mentioned above rule regardless how they were registered. It helps to use a consistent approach to work with all metrics.
The following metric names was changed to obey this rule:
JoinedNodes -> io.discovery.JoinedNodes
LeftNodes -> io.discovery.LeftNodes
FailedNodes -> io.discovery.FailedNodes
PendingMessagesRegistered -> io.discovery.PendingMessagesRegistered
CommunicationErrors -> io.discovery.CommunicationErrors
CurrentTopologyVersion -> io.discovery.CurrentTopologyVersion
Thank you for submitting the pull request to the Apache Ignite.
In order to streamline the review of the contribution
we ask you to ensure the following steps have been taken:
The Contribution Checklist
The description explains WHAT and WHY was made instead of HOW.
The following pattern must be used:
IGNITE-XXXX Change summary
whereXXXX
- number of JIRA issue.(see the Maintainers list)
the
green visa
attached to the JIRA ticket (see TC.Bot: Check PR)Notes
If you need any help, please email dev@ignite.apache.org or ask anу advice on http://asf.slack.com #ignite channel.