luchunliang opened a new pull request #1788:
URL: https://github.com/apache/incubator-inlong/pull/1788
[Feature]Inlong-common provide monitoring indicator reporting mechanism with
JMX, user can implement the code that read the metrics and report to
user-defined monitor system.
Title Name: [INLONG-1786][component] [Feature]Inlong-common provide
monitoring indicator reporting mechanism with JMX, user can implement the code
that read the metrics and report to user-defined monitor system.
Fixes #<1786>
Motivation
Inlong-common provide monitoring indicator reporting mechanism with JMX,
user can implement the code that read the metrics and report to user-defined
monitor system.
Inlong-module can add monitor metric class that is the subclass of
org.apache.inlong.commons.config.metrics.MetricItem, and register it to
MBeanServer.
User-defined plugin can get module metric with JMX, and report metric data
to different monitor system.
Test case1 of one metric item:
org.apache.inlong.commons.config.metrics.item.TestMetricItemMBean
Test case2 of a group of similar metric items:
org.apache.inlong.commons.config.metrics.item.TestMetricItemSetMBean
### Modifications
*Describe the modifications you've done.*
### Verifying this change
- [ ] Make sure that the change passes the CI checks.
*(Please pick either of the following options)*
This change is a trivial rework / code cleanup without any test coverage.
*(or)*
This change is already covered by existing tests, such as *(please describe
tests)*.
*(or)*
This change added tests and can be verified as follows:
*(example:)*
- *Added integration tests for end-to-end deployment with large payloads
(10MB)*
- *Extended integration test for recovery after broker failure*
### Documentation
- Does this pull request introduce a new feature? (yes / no)
- If yes, how is the feature documented? (not applicable / docs / JavaDocs
/ not documented)
- If a feature is not applicable for documentation, explain why?
- If a feature is not documented yet in this PR, please create a followup
issue for adding the documentation
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]