I am trying to create a custom alert for YARN memory consumption. I got to know that there is no direct REST API which can give me amount of YARN memory consumed at particular moment. So, I thought maybe Ambari DB will be storing this data somewhere.
Can anyone help me to calculate the available YARN memory at a particular moment using Ambari DB? Or is there any other way I could do that?