Forum Discussion
1 Reply
- feenstNew Contributor III
Here’s a JavaScript snippet that I think will get the sum of the queue depth for all tasks on a given FeedMaster node:
if (nodeInfo.container_type === 'feed-master') { queueSize = nodeInfo.stats.app_stats.destinations.reduce((sum, cur) => sum + cur.size, 0); }
nodeInfo is one of the elements from response_map[plexPath].cc_info.running from the Snaplex monitoring API.