Kubernetes: Collect metrics from Cassandra via JMX Exporter

766 views
Skip to first unread message

avig...@3base.co.il

unread,
Jul 19, 2017, 3:47:35 AM7/19/17
to Prometheus Developers, Chany Israelian
Hi,

We are trying to use JMx Exporter as an HTTP server for our Cassandra that runs on kebernetes as a daemond set.

We use this docker image: https://hub.docker.com/r/sscaling/jmx-prometheus-exporter/

In the logs we see an authentication error:
cassandra kubernetes SEVERE: JMX scrape failed: java.lang.SecurityException: Authentication failed! Credentials required

When disabling the authentication from Cassandra by "JVM_OPTS -Dcom.sun.management.jmxremote.authenticate=false" it works fine.

Is there any way to get it work with the authentication?
How can I set user+psw in the exporter?

Should we use JavaAgent for it? we do not want to run exporter on each pod.

Brian Brazil

unread,
Jul 19, 2017, 3:50:15 AM7/19/17
to avig...@3base.co.il, Prometheus Developers, Chany Israelian
It is recommended to always use the java agent for JMX monitoring, see https://www.robustperception.io/monitoring-cassandra-with-prometheus/

--

niranj...@gmail.com

unread,
Aug 23, 2018, 4:21:15 AM8/23/18
to Prometheus Developers

Can you share the steps for using JMX exporter.?

Reply all
Reply to author
Forward
0 new messages