Background: I'm going to be doing some experiments with OpenFaaS (running in Kubernetes) where I will be invoking several asynchronous execution requests. OpenFaaS uses NATS Streaming to queue these requests for asynchronous function execution.
What I need is a way to determine the size of this NATS Streaming queue so I can know how many items are in the queue. Is there a command to get the size or number of items in a NATS Streaming Queue? I searched Google and the NATS documentation and found nothing of use.
I did find the command kubectl logs deployment/queue-worker -n openfaas
from here which displays the logs of the queue; however, this is not quite what I want (I want the number of items left in the queue, not the queue's full logs).