Support Questions

Find answers, ask questions, and share your expertise
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

Does Ambari Database Stores Data about YARN memory consumption?

New Contributor

Hello, 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?


Super Mentor

@Nidhee Jaiswal

Teh Ambari Server does not store the YARN (or other components) metrics data. But Ambari Metrics Collector Does that.

We can use the following kind of APIs t find out the Heap & Non Heap Memory Consumed by the Yarn Resource Manager:


For Heap Max

For Heap Used

For Heap Committed

For Non Heap Used

For Non Heap Committed


Here the "" need to be replaced with the "timeline.metrics.service.webapp.address"


You can also use the Grafana (which actually pulls data fromAmbari Metrics) to see the memory use graph based on different time time interval:


Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.