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

Support prometheus as a metrics interface #442

Closed
siddarthsreeni opened this issue May 11, 2021 · 5 comments · Fixed by #2190
Closed

Support prometheus as a metrics interface #442

siddarthsreeni opened this issue May 11, 2021 · 5 comments · Fixed by #2190
Assignees
Labels
scope/backend status/accepted An issue which has passed triage and has been accepted type/feature A new feature
Milestone

Comments

@siddarthsreeni
Copy link

This is more of a bug on the existing minimalistic dashboard. I am connected to AWS MSK and Currently I do not see any realtime production/consumption metrics under tab General. There is no error in the logs.

image

@germanosin
Copy link
Contributor

Hi @siddarthsreeni, thank you for creating this issue. Could you please share your config? Please make sure to pass jmx address to collect metrics.

@siddarthsreeni
Copy link
Author

@germanosin Thanks for the input, I am currently using Aws MSK & have enabled "Open Monitoring" Under which the port 11001 can be used by the JMX port. I tried like you suggested. I am getting the following errors when I add -e KAFKA_CLUSTERS_0_JMXPORT=11001

But I understand that this is "Open Monitoring" JMX port provides metrics from JMX, but it is Prometheus protocol. (Came here searching for whether Prometheus fetching had been added yet.) I was getting the following error

ERROR com.provectus.kafka.ui.util.JmxClusterUtil - Cannot invalidate object in pool, service:jmx:rmi:///jndi/rmi://xxx.xxxx.xxxx.kafka.us-east-1.amazonaws.com:11001/jmxrmi
       java.net.SocketTimeoutException: Read timed out]
        at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:370) ~[?:?]
        at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:270) ~[?:?]
        at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:229) ~[?:?]
        at com.provectus.kafka.ui.util.JmxPoolFactory.create(JmxPoolFactory.java:17) ~[classes!/:?]
        at com.provectus.kafka.ui.util.JmxPoolFactory.create(JmxPoolFactory.java:12) ~[classes!/:?]
        at org.apache.commons.pool2.BaseKeyedPooledObjectFactory.makeObject(BaseKeyedPooledObjectFactory.ja

Please not, In my configuration I have 2 different kafka cluster specificied, out of which I'm only looking forward to monitoring one of them (which is in MSK)

@Haarolean
Copy link
Contributor

hey @siddarthsreeni, sorry for the delay, somehow this issue mired in the abyss for some time 😅 I'll investigate the problem and will get back to you.

@Haarolean Haarolean self-assigned this Oct 14, 2021
@Haarolean Haarolean added scope/infrastructure CI / Dev. Env status/accepted An issue which has passed triage and has been accepted type/bug Something isn't working labels Oct 14, 2021
@Haarolean
Copy link
Contributor

Turns out there's no more JMX for MSK, there was one previously but they probably disabled. We'll have to implement prometheus support for such things.

@Haarolean Haarolean changed the title Real time metrics of data inflow & out flow topic wise in dashboard Support prometheus as a metrics interface Oct 29, 2021
@Haarolean Haarolean removed their assignment Oct 29, 2021
@Haarolean Haarolean added scope/backend type/enhancement En enhancement to an already existing feature and removed type/bug Something isn't working scope/infrastructure CI / Dev. Env labels Oct 29, 2021
@Haarolean Haarolean added this to the 0.4 milestone Oct 29, 2021
@Haarolean Haarolean added type/feature A new feature and removed type/enhancement En enhancement to an already existing feature labels Dec 21, 2021
@Haarolean Haarolean linked a pull request Dec 24, 2021 that will close this issue
@Haarolean Haarolean removed this from the 0.4 milestone Feb 8, 2022
@Haarolean Haarolean added this to the 0.5 milestone Feb 8, 2022
@Haarolean
Copy link
Contributor

@MaratGumarov please note that there's a branch issues/442

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope/backend status/accepted An issue which has passed triage and has been accepted type/feature A new feature
Projects
None yet
6 participants