cancel
Showing results for 
Search instead for 
Did you mean: 

Feedmaster queue size monitoring for all ultra tasks automatically

shwetagupta9
New Contributor

We are exploring options to automate the monitoring of queue depth for all the ultra tasks in Production at FeedMaster. Do we have any public API available or any other method which we can use to monitor the queue size from the feed master nodes?

1 REPLY 1

feenst
New Contributor II

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.