|
|
@ -123,7 +123,7 @@ public class ConnectMetricsRegistry { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public ConnectMetricsRegistry(Set<String> tags) { |
|
|
|
public ConnectMetricsRegistry(Set<String> tags) { |
|
|
|
/***** Connector level *****/ |
|
|
|
/* Connector level */ |
|
|
|
Set<String> connectorTags = new LinkedHashSet<>(tags); |
|
|
|
Set<String> connectorTags = new LinkedHashSet<>(tags); |
|
|
|
connectorTags.add(CONNECTOR_TAG_NAME); |
|
|
|
connectorTags.add(CONNECTOR_TAG_NAME); |
|
|
|
|
|
|
|
|
|
|
@ -137,7 +137,7 @@ public class ConnectMetricsRegistry { |
|
|
|
connectorVersion = createTemplate("connector-version", CONNECTOR_GROUP_NAME, |
|
|
|
connectorVersion = createTemplate("connector-version", CONNECTOR_GROUP_NAME, |
|
|
|
"The version of the connector class, as reported by the connector.", connectorTags); |
|
|
|
"The version of the connector class, as reported by the connector.", connectorTags); |
|
|
|
|
|
|
|
|
|
|
|
/***** Worker task level *****/ |
|
|
|
/* Worker task level */ |
|
|
|
Set<String> workerTaskTags = new LinkedHashSet<>(tags); |
|
|
|
Set<String> workerTaskTags = new LinkedHashSet<>(tags); |
|
|
|
workerTaskTags.add(CONNECTOR_TAG_NAME); |
|
|
|
workerTaskTags.add(CONNECTOR_TAG_NAME); |
|
|
|
workerTaskTags.add(TASK_TAG_NAME); |
|
|
|
workerTaskTags.add(TASK_TAG_NAME); |
|
|
@ -165,7 +165,7 @@ public class ConnectMetricsRegistry { |
|
|
|
"The average percentage of this task's offset commit attempts that succeeded.", |
|
|
|
"The average percentage of this task's offset commit attempts that succeeded.", |
|
|
|
workerTaskTags); |
|
|
|
workerTaskTags); |
|
|
|
|
|
|
|
|
|
|
|
/***** Source worker task level *****/ |
|
|
|
/* Source worker task level */ |
|
|
|
Set<String> sourceTaskTags = new LinkedHashSet<>(tags); |
|
|
|
Set<String> sourceTaskTags = new LinkedHashSet<>(tags); |
|
|
|
sourceTaskTags.add(CONNECTOR_TAG_NAME); |
|
|
|
sourceTaskTags.add(CONNECTOR_TAG_NAME); |
|
|
|
sourceTaskTags.add(TASK_TAG_NAME); |
|
|
|
sourceTaskTags.add(TASK_TAG_NAME); |
|
|
@ -219,7 +219,7 @@ public class ConnectMetricsRegistry { |
|
|
|
"The average number of records in the transactions the task has committed so far.", |
|
|
|
"The average number of records in the transactions the task has committed so far.", |
|
|
|
sourceTaskTags); |
|
|
|
sourceTaskTags); |
|
|
|
|
|
|
|
|
|
|
|
/***** Sink worker task level *****/ |
|
|
|
/* Sink worker task level */ |
|
|
|
Set<String> sinkTaskTags = new LinkedHashSet<>(tags); |
|
|
|
Set<String> sinkTaskTags = new LinkedHashSet<>(tags); |
|
|
|
sinkTaskTags.add(CONNECTOR_TAG_NAME); |
|
|
|
sinkTaskTags.add(CONNECTOR_TAG_NAME); |
|
|
|
sinkTaskTags.add(TASK_TAG_NAME); |
|
|
|
sinkTaskTags.add(TASK_TAG_NAME); |
|
|
@ -286,7 +286,7 @@ public class ConnectMetricsRegistry { |
|
|
|
+ "committed/flushed/acknowledged by the sink task.", |
|
|
|
+ "committed/flushed/acknowledged by the sink task.", |
|
|
|
sinkTaskTags); |
|
|
|
sinkTaskTags); |
|
|
|
|
|
|
|
|
|
|
|
/***** Worker level *****/ |
|
|
|
/* Worker level */ |
|
|
|
Set<String> workerTags = new LinkedHashSet<>(tags); |
|
|
|
Set<String> workerTags = new LinkedHashSet<>(tags); |
|
|
|
|
|
|
|
|
|
|
|
connectorCount = createTemplate("connector-count", WORKER_GROUP_NAME, "The number of connectors run in this worker.", workerTags); |
|
|
|
connectorCount = createTemplate("connector-count", WORKER_GROUP_NAME, "The number of connectors run in this worker.", workerTags); |
|
|
@ -341,7 +341,7 @@ public class ConnectMetricsRegistry { |
|
|
|
connectorStatusMetrics.put(connectorRestartingTaskCount, TaskStatus.State.RESTARTING); |
|
|
|
connectorStatusMetrics.put(connectorRestartingTaskCount, TaskStatus.State.RESTARTING); |
|
|
|
connectorStatusMetrics = Collections.unmodifiableMap(connectorStatusMetrics); |
|
|
|
connectorStatusMetrics = Collections.unmodifiableMap(connectorStatusMetrics); |
|
|
|
|
|
|
|
|
|
|
|
/***** Worker rebalance level *****/ |
|
|
|
/* Worker rebalance level */ |
|
|
|
Set<String> rebalanceTags = new LinkedHashSet<>(tags); |
|
|
|
Set<String> rebalanceTags = new LinkedHashSet<>(tags); |
|
|
|
|
|
|
|
|
|
|
|
connectProtocol = createTemplate("connect-protocol", WORKER_REBALANCE_GROUP_NAME, "The Connect protocol used by this cluster", rebalanceTags); |
|
|
|
connectProtocol = createTemplate("connect-protocol", WORKER_REBALANCE_GROUP_NAME, "The Connect protocol used by this cluster", rebalanceTags); |
|
|
@ -358,7 +358,7 @@ public class ConnectMetricsRegistry { |
|
|
|
rebalanceTimeSinceLast = createTemplate("time-since-last-rebalance-ms", WORKER_REBALANCE_GROUP_NAME, |
|
|
|
rebalanceTimeSinceLast = createTemplate("time-since-last-rebalance-ms", WORKER_REBALANCE_GROUP_NAME, |
|
|
|
"The time in milliseconds since this worker completed the most recent rebalance.", rebalanceTags); |
|
|
|
"The time in milliseconds since this worker completed the most recent rebalance.", rebalanceTags); |
|
|
|
|
|
|
|
|
|
|
|
/***** Task Error Handling Metrics *****/ |
|
|
|
/* Task Error Handling Metrics */ |
|
|
|
Set<String> taskErrorHandlingTags = new LinkedHashSet<>(tags); |
|
|
|
Set<String> taskErrorHandlingTags = new LinkedHashSet<>(tags); |
|
|
|
taskErrorHandlingTags.add(CONNECTOR_TAG_NAME); |
|
|
|
taskErrorHandlingTags.add(CONNECTOR_TAG_NAME); |
|
|
|
taskErrorHandlingTags.add(TASK_TAG_NAME); |
|
|
|
taskErrorHandlingTags.add(TASK_TAG_NAME); |
|
|
|