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

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” 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>(

while locating io.druid.server.metrics.QueryCountStatsMonitor

at io.druid.server.metrics.MetricsModule.getMonitorScheduler( (via modules:$OverrideModule ->$OverrideModule -> io.druid.server.metrics.MetricsModule)

at io.druid.server.metrics.MetricsModule.getMonitorScheduler( (via modules:$OverrideModule ->$OverrideModule -> io.druid.server.metrics.MetricsModule)

while locating com.metamx.metrics.MonitorScheduler

at io.druid.server.metrics.MetricsModule.configure( (via modules:$OverrideModule ->$OverrideModule -> io.druid.server.metrics.MetricsModule)

while locating com.metamx.metrics.MonitorScheduler annotated with

1 error







    at io.druid.initialization.Initialization.makeInjectorWithModules(

    at io.druid.cli.GuiceRunnable.makeInjector(


    at io.druid.cli.Main.main(

Same issue for me. Any update

Can you check if you have added io.druid.server.metrics.QueryCountStatsMonitor to the list druid.monitoring.monitors in ?


I am facing the same issue with Druid 15. Please let me know if you could resolve it.

The druid base package has changed and is now org.apache instead of Io.

You should add org.apache.druid.server.metrics.QueryCountStatsMonitor

what about this one? is it right?
I’m using druid 0.14 and is not sending Java metrics to graphite.

The package for JvmMonitor doesn’t seem to have changed.****See