01-30-2020 03:32 AM
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?
03-05-2020 04:31 PM
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.