Kafka | Cassandra: jmx exporter throwing same error

128 views
Skip to first unread message

AK

unread,
Jun 15, 2021, 1:24:27 AM6/15/21
to Prometheus Users
Hi All,

I'm trying to run jmx-exporter for Kafka and Cassandra but facing exact same problem with both as below:

java -javaagent:/home/username/jmx_prometheus_javaagent-0.15.0.jar=8080:/home/username/kafka-0-8-2.yml
Exception in thread "main" java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)
        at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)
Caused by: mapping values are not allowed here
 in 'reader', line 104, column 65:
     ... e" content="{"version": "4", "rollouts& ...
                                         ^

        at io.prometheus.jmx.shaded.org.yaml.snakeyaml.scanner.ScannerImpl.fetchValue(ScannerImpl.java:870)
        at io.prometheus.jmx.shaded.org.yaml.snakeyaml.scanner.ScannerImpl.fetchMoreTokens(ScannerImpl.java:358)
        at io.prometheus.jmx.shaded.org.yaml.snakeyaml.scanner.ScannerImpl.peekToken(ScannerImpl.java:250)
        at io.prometheus.jmx.shaded.org.yaml.snakeyaml.parser.ParserImpl$ParseDocumentEnd.produce(ParserImpl.java:253)
        at io.prometheus.jmx.shaded.org.yaml.snakeyaml.parser.ParserImpl.peekEvent(ParserImpl.java:158)
        at io.prometheus.jmx.shaded.org.yaml.snakeyaml.parser.ParserImpl.getEvent(ParserImpl.java:168)
        at io.prometheus.jmx.shaded.org.yaml.snakeyaml.composer.Composer.getNode(Composer.java:87)
        at io.prometheus.jmx.shaded.org.yaml.snakeyaml.composer.Composer.getSingleNode(Composer.java:108)
        at io.prometheus.jmx.shaded.org.yaml.snakeyaml.constructor.BaseConstructor.getSingleData(BaseConstructor.java:139)
        at io.prometheus.jmx.shaded.org.yaml.snakeyaml.Yaml.loadFromReader(Yaml.java:524)
        at io.prometheus.jmx.shaded.org.yaml.snakeyaml.Yaml.load(Yaml.java:467)
        at io.prometheus.jmx.shaded.io.prometheus.jmx.JmxCollector.<init>(JmxCollector.java:78)
        at io.prometheus.jmx.shaded.io.prometheus.jmx.JavaAgent.premain(JavaAgent.java:29)
        ... 6 more
FATAL ERROR in native method: processing of -javaagent failed
Aborted (core dumped)




AK

unread,
Jun 16, 2021, 3:55:06 AM6/16/21
to Prometheus Users

Please ignore this as yaml files were downloaded with wget git_uri were having lot of unwanted values. Downloaded the raw files and this was resolved.

Ian Billett

unread,
Jun 16, 2021, 5:13:25 AM6/16/21
to AK, Prometheus Users
Glad you figured out the problem, and thank you for letting us know the fix!

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/fb84ee02-075d-47ad-999a-c43be1c37873n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages