Hi, is there an easy way to add `org.apache.druid....
# troubleshooting
j
Hi, is there an easy way to add
org.apache.druid.server.metrics.QueryCountStatsMonitor
monitor for Peon ingestion processes running on Middle manager nodes ?
s
Hey including it in
druid.monitoring.monitors
configuration should generally work.
j
We do have it in middle manager config, but that would apply to only middle manager process. I am more curious about the peon processes spawned on the middle managers.
a
For peons, I think you'd need to do something like:
druid.indexer.fork.property.druid.monitoring.monitors=["org.apache.druid.server.metrics.QueryCountStatsMonitor",...]
Fwiw, with a recent change (upcoming in 35.0.0), the monitor scope will be dynamically added to the appropriate servcie when specified in common.runtime.properties: https://github.com/apache/druid/pull/18321
j
Hi @Abhishek Balaji Radhakrishnan I have tried putting
druid.indexer.fork.property.druid.monitoring.monitors
but peons are crashing with below error:
Copy code
1) Problem parsing object at prefix[druid.monitoring]: Cannot construct instance of `java.util.ArrayList` (although at least one Creator exists): no String-argument constructor/factory method to deserialize from String value ('["org.apache.druid.java.util.metrics.JvmMonitor", "org.apache.druid.server.metrics.EventReceiverFirehoseMonitor", "org.apache.druid.java.util.metrics.OshiSysMonitor", "org.apache.druid.java.util.metrics.JvmThreadsMonitor", "org.apache.druid.server.metrics.QueryCountStatsMonitor", "org.apache.druid.server.metrics.ServiceStatusMonitor", ""org.apache.druid.java.util.metrics.JvmCpuMonitor"]')
 at [Source: UNKNOWN; line: -1, column: -1] (through reference chain: org.apache.druid.server.metrics.MonitorsConfig["monitors"]).
I think it is crucial to export metrics from these ingestion peons out of middle managers. There should be a way to configure peons for metrics.
a
Hmm, could you double check the indexer monitor config? From the error it looks like it's looking for
prefix[druid.monitoring]
and not
druid.monitoring.monitors
?
j
I had
druid.indexer.fork.property.druid.monitoring.monitors=[