GitHub user rhauch opened a pull request:
https://github.com/apache/kafka/pull/3864
KAFKA-5899 Added Connect metrics for connectors
Added metrics for each connector using Kafkaâs existing `Metrics`
framework. Since this is the first of several changes to add several groups of
metrics, this change starts by adding a very simple `ConnectMetrics` object
that is owned by each worker and that makes it easy to define multiple groups
of metrics, called `ConnectMetricGroup` objects. Each metric group maps to a
JMX MBean, and each metric within the group maps to an MBean attribute.
Future PRs will build upon this simple pattern to add metrics for source
and sink tasks, workers, and worker rebalances.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/rhauch/kafka kafka-5899
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/kafka/pull/3864.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #3864
----
commit 02da9b0ebaa9df70c0dfb34799d3a08b051b9570
Author: Randall Hauch <[email protected]>
Date: 2017-09-13T14:48:14Z
KAFKA-5899 Added Connect metrics for connectors
Added metrics for each connector using Kafkaâs existing `Metrics`
framework. Since this is the first of several changes to add several groups of
metrics, this change starts by adding a very simple `ConnectMetrics` object
that is owned by each worker and that makes it easy to define multiple groups
of metrics, called `ConnectMetricGroup` objects. Each metric group maps to a
JMX MBean, and each metric within the group maps to an MBean attribute.
Future PRs will build upon this simple pattern to add metrics for source
and sink tasks, workers, and worker rebalances.
----
---