How to Enable io.druid.server.metrics.QueryCountStatsMonitor metric for Middle Manager

597 views
Skip to first unread message

Kashif Khan

unread,
Jun 4, 2018, 12:07:59 PM6/4/18
to Druid User

Hi Experts,


I am using Druid 0.10.1 and trying to enable io.druid.server.metrics.QueryCountStatsMonitor metric for middle manager nodes. This works fine for historical and broker nodes but middle manager is shutting down with below error. 


Would appreciate any help here.



2018-06-04T15:46:21,926 INFO [main] io.druid.server.metrics.MetricsModule - Adding monitor[com.metamx.metrics.JvmMonitor@557a84fe]

Exception in thread "main" com.google.inject.CreationException: Unable to create injector, see the following errors:


1) No implementation for io.druid.server.metrics.QueryCountStatsProvider was bound.

  while locating io.druid.server.metrics.QueryCountStatsProvider

    for the 1st parameter of io.druid.server.metrics.QueryCountStatsMonitor.<init>(QueryCountStatsMonitor.java:39)

  while locating io.druid.server.metrics.QueryCountStatsMonitor

  at io.druid.server.metrics.MetricsModule.getMonitorScheduler(MetricsModule.java:90) (via modules: com.google.inject.util.Modules$OverrideModule -> com.google.inject.util.Modules$OverrideModule -> io.druid.server.metrics.MetricsModule)

  at io.druid.server.metrics.MetricsModule.getMonitorScheduler(MetricsModule.java:90) (via modules: com.google.inject.util.Modules$OverrideModule -> com.google.inject.util.Modules$OverrideModule -> io.druid.server.metrics.MetricsModule)

  while locating com.metamx.metrics.MonitorScheduler

  at io.druid.server.metrics.MetricsModule.configure(MetricsModule.java:75) (via modules: com.google.inject.util.Modules$OverrideModule -> com.google.inject.util.Modules$OverrideModule -> io.druid.server.metrics.MetricsModule)

  while locating com.metamx.metrics.MonitorScheduler annotated with @com.google.inject.name.Named(value=ForTheEagerness)


1 error

        at com.google.inject.internal.Errors.throwCreationExceptionIfErrorsExist(Errors.java:470)

        at com.google.inject.internal.InternalInjectorCreator.injectDynamically(InternalInjectorCreator.java:184)

        at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:110)

        at com.google.inject.Guice.createInjector(Guice.java:99)

        at com.google.inject.Guice.createInjector(Guice.java:73)

        at com.google.inject.Guice.createInjector(Guice.java:62)

        at io.druid.initialization.Initialization.makeInjectorWithModules(Initialization.java:386)

        at io.druid.cli.GuiceRunnable.makeInjector(GuiceRunnable.java:63)

        at io.druid.cli.ServerRunnable.run(ServerRunnable.java:40)

        at io.druid.cli.Main.main(Main.java:108)

Prabakaran Hadoop

unread,
May 21, 2019, 3:16:57 AM5/21/19
to Druid User
Same issue for me. Any update

Sashidhar Thallam

unread,
Jun 12, 2019, 2:15:01 PM6/12/19
to druid...@googlegroups.com
Can you check if you have added io.druid.server.metrics.QueryCountStatsMonitor to the list druid.monitoring.monitors in common.runtime.properties ?

Thanks,
Sashi

--
You received this message because you are subscribed to the Google Groups "Druid User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to druid-user+...@googlegroups.com.
To post to this group, send email to druid...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/druid-user/e7dfb207-6d2c-41a9-b4f0-433231409615%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Amal Varghese

unread,
Jul 10, 2019, 5:21:00 AM7/10/19
to Druid User
I am facing the same issue with Druid 15. Please let me know if you could resolve it.

Guillaume Lhermenier

unread,
Jul 10, 2019, 7:58:01 AM7/10/19
to druid...@googlegroups.com
Hi, 
The druid base package has changed and is now org.apache instead of Io.
You should add  org.apache.druid.server.metrics.QueryCountStatsMonitor


--
You received this message because you are subscribed to the Google Groups "Druid User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to druid-user+...@googlegroups.com.
To post to this group, send email to druid...@googlegroups.com.

Alon Shoshani

unread,
Jul 15, 2019, 5:48:27 AM7/15/19
to Druid User
what about this one?
org.apache.druid.java.util.metrics.JvmMonitor is it right?
I'm using druid 0.14 and is not sending Java metrics to graphite.
To unsubscribe from this group and stop receiving emails from it, send an email to druid...@googlegroups.com.

Sashidhar Thallam

unread,
Jul 15, 2019, 12:42:33 PM7/15/19
to druid...@googlegroups.com

To unsubscribe from this group and stop receiving emails from it, send an email to druid-user+...@googlegroups.com.

To post to this group, send email to druid...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages