Graylog: 3.0.2
Plugin version: Beta 4
I have cloned and built graylog-plugin-metric-reporter-beta.4. Mounted the plugin for metrics-reporter-jmx-2.4.0-beta.4-SNAPSHOT.jar to my graylog docker instance. However, I am getting this error:
LAB -XX:+UseConcMarkSweepGC -XX:+CMSConcurrentMTEnabled -XX:+CMSClassUnloadingEnabled -XX:+UseParNewGC -XX:-OmitStackTraceInFastThrow -Dlog4j.configurationFile=/usr/share/graylog/data/config/log4j2.xml -Djava.library.path=/usr/share/graylog/lib/sigar/ -Dgraylog2.installation_source=docker
graylog_1 | 2019-07-18 22:17:44,130 INFO : org.hibernate.validator.internal.util.Version - HV000001: Hibernate Validator 5.1.3.Final
graylog_1 | Exception in thread “main” java.lang.NoClassDefFoundError: com/codahale/metrics/JmxReporter
graylog_1 | at org.graylog.plugins.metrics.jmx.MetricsJmxReporterModule.configure(MetricsJmxReporterModule.java:35)
graylog_1 | at com.google.inject.AbstractModule.configure(AbstractModule.java:61)
graylog_1 | at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:344)
graylog_1 | at org.graylog2.shared.bindings.PluginBindings.configure(PluginBindings.java:51)
graylog_1 | at com.google.inject.AbstractModule.configure(AbstractModule.java:61)
graylog_1 | at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:344)
graylog_1 | at com.google.inject.spi.Elements.getElements(Elements.java:103)
graylog_1 | at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:137)
graylog_1 | at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:103)
graylog_1 | at com.google.inject.Guice.createInjector(Guice.java:87)
graylog_1 | at org.graylog2.shared.bindings.GuiceInjectorHolder.createInjector(GuiceInjectorHolder.java:34)
graylog_1 | at org.graylog2.bootstrap.CmdLineTool.setupInjector(CmdLineTool.java:379)
graylog_1 | at org.graylog2.bootstrap.CmdLineTool.run(CmdLineTool.java:194)
graylog_1 | at org.graylog2.bootstrap.Main.main(Main.java:50)
graylog_1 | Caused by: java.lang.ClassNotFoundException: com.codahale.metrics.JmxReporter
graylog_1 | at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
graylog_1 | at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
graylog_1 | at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:817)
graylog_1 | at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
graylog_1 | … 14 more
graylog_graylog_1 exited with code 1
I am looking at other people’s issues with this. Seems like class jmxreporter moved classes. However, I am not sure if pom.xml addresses this change or if this is only issue. I am still looking into class change.