Adding length of queue to metrics