title: Retrieve SQS Messages-available/Message-in-flight using Node.js Aws-sdk
body: <p>I need to get the number of SQS messages available and messages in flight using aws-sdk with javascript.
  Can someone please give me some kind of reference or code snippet?
  I need metadata for this SQS. I can send Messages and read it but need this info to conclude if there is high load on my infrastructure</p>
  <p><a href="https://i.stack.imgur.com/5z03a.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5z03a.png" alt="enter image description here" /></a></p>