Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

MBeanMetric/Attribute NameDescription
kafka.connect:type=connect-worker-metrics,connector=([-.\w]+)connector-total-task-countThe number of tasks of the connector on the worker
kafka.connect:type=connect-worker-metrics,connector=([-.\w]+)connector-running-task-countThe number of running tasks of the connector on the worker.
kafka.connect:type=connect-worker-metrics,connector=([-.\w]+)connector-paused-task-countThe number of paused tasks of the connector on the worker.
kafka.connect:type=connect-worker-metrics,connector=([-.\w]+)connector-failed-task-countThe number of failed tasks of the connector on the worker.
kafka.connect:type=connect-worker-metrics,connector=([-.\w]+)connector-unassigned-task-countThe number of unassigned tasks of the connector on the worker.
kafka.connect:type=connect-worker-metrics,connector=([-.\w]+)connector-destroyed-task-countThe number of destroyed tasks of the connector on the worker.

Since each task must always have exactly one non-null status, and we've covered every task status, the "connector-total-task-count" will be equal to the sum of each status.

...

Then the metrics will be:

W1 reports:

MBeanMetric NameValue
kafka.connect:type=connect-worker-metrics,connector=C1connector-total-task-count2
kafka.connect:type=connect-worker-metrics,connector=C2connector-total-task-count1

and similar values for each of the "running", "paused", "failed", "unassigned", and "destroyed" statuses.

W2 reports:

BeanMetric NameValue
kafka.connect:type=connect-worker-metrics,connector=C1connector-total-task-count2
kafka.connect:type=connect-worker-metrics,connector=C2connector-total-task-count1

and similar values for each of the "running", "paused", "failed", "unassigned", and "destroyed" statuses.

...