Exposing Debezium plugin JMX metrics on kafka connect cluster in Strimzi #7914
Replies: 8 comments 16 replies
-
Have you tried to not mix the conflicting configurations and add just the |
Beta Was this translation helpful? Give feedback.
-
I get the feeling this issue is to niche/vague for anyone to necessarily help with, I did look at operator logs, and kafka connect cluster logs, with the debug log level, but didn't find any logs related to JMX or those metrics |
Beta Was this translation helpful? Give feedback.
-
Hi @davidnateberg : I am working on the same stuff and have come across the exact same issue. In my case everything seems to be running normally ie |
Beta Was this translation helpful? Give feedback.
-
Hi @davidnateberg : literally just got today to look into it after I last pinged but basically, with ".*" option, I am able to see all the debezium metrics. I will continue to look into how i can replcae ".*" with something sensible. But for now, some progress :) |
Beta Was this translation helpful? Give feedback.
-
@davidnateberg : yup, just .* (see attached) I am not using strimzi kafka cluster but redpanda BYOC version deployed in GCP. |
Beta Was this translation helpful? Give feedback.
-
@davidnateberg - couple of things :
|
Beta Was this translation helpful? Give feedback.
-
@ee07dazn and @davidnateberg I'm running a Debezium connector in a Strimzi
Searching for them on the connect pods using this command:
I'm also on the latest stable version of Debezium. @davidnateberg did you ever get the metrics to surface? |
Beta Was this translation helpful? Give feedback.
-
Closing this discussion after @jslusher pointed out the metrics only being available on certain pods. I think that's the underlying issue here if anyone else comes along and reads this discussion https://github.com/orgs/strimzi/discussions/7914#discussioncomment-5676210 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, I am currently deploying strimzi in a kubernetes cluster, with the following configuration.
strimzi version: 0.32.0
k8s cluster version: 1.23
helm version: 3.7.1
I have installed the operator with the default values, and everything behaves as expected, except that I am trying to expose metrics from a Debezium postgresql connector connect plugin that is running in the kafka connect cluster. https://debezium.io/documentation/reference/stable/connectors/postgresql.html.
Here is the Debezium documentation for exposing metrics. https://debezium.io/documentation/reference/stable/operations/monitoring.html. I have tried setting the various environment variables on the connect pods as mentioned in the documentation with no luck, though I'm not even sure if that is necessary. I thought these mBeans should be exposed on the connect cluster automatically.
The metrics config I have is the default connect metrics config in the strimzi examples folder, with patters for the debezium plugin included. It looks like this
I am able to see all the kafka connect metrics in prometheus as expected, or if exec into a pod and curl
localhost:9094/metrics
I can see them there as well. However, there are no Debzium metrics exposed. I copied the patterns for the Debezium plugin pattern from their documentation here https://github.com/debezium/debezium-examples/blob/main/monitoring/debezium-jmx-exporter/config.ymlThe kafka connect resource manifest looks like this, though I dont think its an issue with the cluster because everything else works as expected
Any help would be greatly appreciated. To reiterate, I am trying to get JMX metrics from a kafka connect plugin, in this case the Debeziuim postgres plugin, exposed on the kafka connect cluster using the Prometheus JMX exporter. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions