Find the total number of indexing tasks running

Hi All,

I am using Druid 0.10.0 version and want to programmatically find out the total number of indexing tasks currently running on the cluster.

One of the options I see it to query zookeeper and count the number of tasks in the below path “/druid/indexer/status/”.

Kindly please let me know if there is any better way available.

Regards,

_ashwani