Replies: 1 comment 4 replies
-
The JMX Exporter just exposes the existing Kafka JMX metrics. That means that just because something is available on the REST API it might not be available as JMX metric. But if Kafka provides such metric and it is not currently exposed by the example JMX Exporter configuration, you can update the exporter configuration to expose it (and open a PR with it ideally) or open an enhancement issue and someone else might have a look at it. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I'm using the strimzi operator and created a Kafka Connect cluster with some connectors and exposed metrics as described in this example:
https://github.com/strimzi/strimzi-kafka-operator/blob/main/examples/metrics/kafka-connect-metrics.yaml
There is a metric stat that exposes the connector task status:
However when the connector fails to start none of the metrics being exposed, in Kafka Connect rest API you can expose connector status that returns connector state:
GET /connectors/my-connector/status
https://docs.confluent.io/platform/current/connect/references/restapi.html#get--connectors-(string-name)-status
"connector": { "state": "RUNNING", "worker_id": "fakehost:8083" }
I'm wondering if it's possible to get the same metric from the JMX exporter, looking in confluent official docs(https://docs.confluent.io/home/connect/monitoring.html#connector-metrics), looks like that there is MBean kafka.connect:type=connector-metrics,connector=”{([-.w]+) which should export it, can anyone help me to expose this metric ?
Beta Was this translation helpful? Give feedback.
All reactions