Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not able to export jmx metrics in cruisecontrol #1738

Open
kaushal1562 opened this issue Nov 18, 2021 · 5 comments
Open

Not able to export jmx metrics in cruisecontrol #1738

kaushal1562 opened this issue Nov 18, 2021 · 5 comments
Labels
question A code or meta question about the project.

Comments

@kaushal1562
Copy link

I have tried all steps mentioned here https://github.com/linkedin/cruise-control#quick-start
but JMX is not getting configured. There is no data coming in the http://localhost:/kafkacruisecontrol/state (or http://localhost:\[port\]/kafkacruisecontrol/state

Run the following command ./gradlew jar copyDependantLibs ./kafka-cruise-control-start.sh [-jars PATH_TO_YOUR_JAR_1,PATH_TO_YOUR_JAR_2] config/cruisecontrol.properties [port] JAR files correspond to your applications and port enables customizing the Cruise Control port number (default: 9090). (Note) To emit Cruise Control JMX metrics on a particular port (e.g. 56666), export JMX_PORT=56666 before running kafka-cruise-control-start.sh

Any other option how we can configure it ?

@nileshdt2000
Copy link

We have also tried to get JMX metircs for CruiseControl.
Steps given in
https://github.com/linkedin/cruise-control#quick-start
But its not working.
Are we missing something ?
Can someone guide please.

To emit Cruise Control JMX metrics on a particular port (e.g. 56666), export JMX_PORT=56666 before running kafka-cruise-control-start.sh

@nileshdt2000
Copy link

Is someone able to export JMX Metrics for Cruse-control as per given steps ?

@efeg efeg added the question A code or meta question about the project. label Apr 12, 2022
@efeg
Copy link
Collaborator

efeg commented Apr 12, 2022

Not sure if this is still an issue, but if it still is, please make sure that you set/export JMX_PORT env. variable before running cruise control. You can verify if you have completed this step correctly by checking the flags on the running cruise control instance. You should see the following flag being set correctly

-Dcom.sun.management.jmxremote.port=$JMX_PORT

Source: https://github.com/linkedin/cruise-control/blob/migrate_to_kafka_2_4/kafka-cruise-control-start.sh#L71

@varunaditya-jadwal
Copy link

@efeg I have configured port 5666 by exporting it as JMX_PORT variable. I even confirmed that the port is being used by the process and with the flag.

-Dcom.sun.management.jmxremote.port=5666

However, I am still not getting any metrics when I hit this port. Am I missing something? Any help would be really appreciated. Thank you.

Cruise Control Version: migrate_to_kafka_2_5
Kafka Version: 3.5.1

@Sourabh-Dilraj
Copy link

Is the above issue resolved?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A code or meta question about the project.
Projects
None yet
Development

No branches or pull requests

5 participants