Query Metrics on Broker (io.druid.server.metrics.QueryCountStatsMonitor)

Hi,
I’ve activated the Query Metrics on Brokers, Historical and Indexing services into common.runtime.properties setting io.druid.server.metrics.QueryCountStatsMonitor in the list of monitors

druid.monitoring.emissionPeriod = PT1m

druid.monitoring.monitors=[“com.metamx.metrics.SysMonitor”,“com.metamx.metrics.JvmMonitor”,“io.druid.client.cache.CacheMonitor”,“io.druid.server.metrics.QueryCountStatsMonitor”]

druid.emitter=composing

druid.emitter.composing.emitters=[“logging”,“http”]

``

However, on all Brokers values are always 0 for success, failed and interrupted (obviously query are incoming) while the Historical nodes have values.

Can you please help me on investigating why it’s happening

Thanks,

Maurizio

Hi,
does anyone is using QueryCountStatsMonitor? Is it working on Broker service?

Thanks
Maurizio

Hi Maurizio,

Currently those metrics are always reported as zero, it’s a bug that will be fixed in Druid 0.11.0. Until then, you could count the number of “query/time” metrics – it should be equivalent to the number of queries made. The “success” dimension will let you differentiate successful from failed queries.

Thanks Gian for the feedback!
I'll do as suggested.

Maurizio