I have set up a rest proxy deployment on kubernetes which ia working as expected. Now i would like to retrieve some JMX metrics, so that i can feed them in to elasticsearch.
However, i have been unable to dechipher how this is achieved.
Basically i just want to enable the metrics, but i am unsure if the are actually enabled by default, or if i have to set some parameter in my deployment.
And once they are enabled, do i then need to either mount in a jolokia jvm agent, or a prometheus jmx exporter?
welcome back
just to be sure:
you like to get onl yrest proxy metrics or metrics from all your services deployed?
how did you deploy your environment?
using confluent helm charts or something else?
to the deployment in hopes that it would expose the metrics on that port as i had been informed that the afore mentioned metrics are exposed by default.
Hi @mmuehlbeyer
I actually did not even consider it, but i just checked the link you gave me.
It appears that it has a dependency to a running and accissible zookeeper ensemble, which i cant honor.
This rest proxy i ment to work with confluent cloud, where is dont have any url’s to any zokeepers.
I will try and see if i can find inspiration from the chart though and see if there are some things i can incorporate.
short update.
was able to connect my local test stack (docker-based) to my confluent cloud trial.
converted the compose file with kompose to some kubernetes usable files.
need to sanitize them could provide them afterwards, guess it might help
Hi @mmuehlbeyer
Thanks so much for that. It looks interesting, and very different as to how i have created my own deployment , i cant wait to try it out.
I will report back here tomorrow in the evening with my findings… Now it is time to sleep
Hi @mmuehlbeyer
Sorry about the latency.
I was delegated to other tasks
Your provided solution deploys just fine, but i have been unable to connect to jmx.
I will dig more into this d.uring the week. This week is easter holiday/playtime, so i can commit some time to it
I will let you know in a day or two how it goes!
Again, thanks so much for taking the time to help with this.
@mmuehlbeyer
I once again have to appologize for the latency.
Tasks piled up, and product owner asked me to shift my attention to an immidiate delivery.
However, your solution totally applies, but i still have to verify metrics availbility and such. Mind if i keep you posted?
I have a deleviry deadline on wednessday for a service, which will keep me tied up until then.
After that, i will revive this convo
Again, your help is always much appreaciated!
I’ve followed your suggestion in github, but I still can’t access the jmx/metric endpoint at port 1095
I use confluentinc/cp-kafka-rest:7.7.1 and it is also deployed to k8s cluster. Would you please help me get this fix? I’ve googled a lot but I couldn’t find any helpful suggestions.