Support Questions
Find answers, ask questions, and share your expertise

Ambari Alerts - Namenode heap source code

Hi,

Can any help me on finding source code of Namenode/Resourcemanager/datanode heap in Ambari alerts

1 ACCEPTED SOLUTION

Super Collaborator

There are several alerts which cover heap. For example, if you wanted to see the raw DataNode heap value, then you'd check the metric alert definition for it:

https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HDFS/2....

For NameNode, we don't alert on heap directly but we measure average heap deviation values:

https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HDFS/2....

https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HDFS/2....

View solution in original post

4 REPLIES 4

Super Mentor

@rmr1989

Heap Alerts are Available for NameNode & DataNodes by default (not for Resourcemanager).

38593-heap-alerts.png


You can find it in the following locations:

NameNode: (they are of "type": "SCRIPT" alert, and the following scripts are used)

https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HDFS/2....

https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HDFS/3....

.



DataNode: (It's a "type": "METRIC" kind of alert) Which uses the JMX. It checks the DataNode JMXServlet for the MemHeapUsedM and MemHeapMaxM properties.

https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HDFS/2....


To know more about SCRIPT or METRIC type alerts please refer to https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.1.0/bk_ambari-operations/content/alert_types.ht...

.

Thank you...

Super Collaborator

There are several alerts which cover heap. For example, if you wanted to see the raw DataNode heap value, then you'd check the metric alert definition for it:

https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HDFS/2....

For NameNode, we don't alert on heap directly but we measure average heap deviation values:

https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HDFS/2....

https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HDFS/2....

Thank you..

; ;