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

Regarding Ambari Alert ?

Suppose I have cluster consisting of 1 high configuration master node on which are installed all the master components I need and two medium configuration machines which only have the components of DataNode and NodeManager. Now, from what I could tell, there is no "Alert" among the list of alerts that would notify me if my cluster CPU(By this I refer to only the datanodes) usage is above a certain percentage, so that it can send me an alert whenever it does go above it. And Why Ambari is not providing such type of "Alert"?

7 REPLIES 7

Re: Regarding Ambari Alert ?

Super Mentor
@Abhishek Tripathi

By default in Ambari there is no predefined alert for monitoring Specifically CPU used by DataNode. But ambari provides you an option to create and register your own custom alert.

For example, I have written an article to register a custom alert in ambari: (Which will find the disk usage for different mount points and will trigger the alert according to the threshold defined.

https://community.hortonworks.com/articles/38149/how-to-create-and-register-custom-ambari-alerts.htm...

.

Similarly you can also write your own script to calculate the DataNode CPU usage and then register the alert using "alerts.json" file as described in the above article.

Re: Regarding Ambari Alert ?

@Jay SenSharma

Could it be possible to create an Aggregate Alert which will give information about Percent DataNodes CPU Usage..?

Re: Regarding Ambari Alert ?

Super Mentor

@Abhishek Tripathi

As per Ambari Document : https://docs.hortonworks.com/HDPDocuments/Ambari-2.5.0.3/bk_ambari-operations/content/alert_types.ht...

You should be able to create the "Aggregate" type alert as well.

AGGREGATE Alert Type

AGGREGATE alerts aggregate the alert status as a percentage of the alert instances affected. For example, the "Percent DataNodes Available" alert aggregates the DataNode Process alert. The threshold units are “%”.

However registering the custom alert process will be same as mentioned in my previous doc.

Re: Regarding Ambari Alert ?

@Jay SenSharma

Hi Sir how can i find out more about writing custom alerts specifically what all sort of functions and other things are available in the ambari libraries that your custom script imports (for example : mount, OsFamilyFuncImpl, OsFamilyImpl,logger)

Re: Regarding Ambari Alert ?

Super Mentor

@Abhishek Tripathi

Most of the Ambari Python scripts you can find inside the "ambari-commons" (like OsFamilyFuncImpl, OsFamilyImpl,logger)

https://github.com/apache/ambari/tree/trunk/ambari-common/src/main/python/ambari_commons

.

Re: Regarding Ambari Alert ?

@Jay SenSharma

What are mountPoints in your alert script sir ?

Please Sir reply ?

Re: Regarding Ambari Alert ?

The author describes his alert script as alerting for allocated space in specified mount points. It is clear (for me) that mountPoints in the alert script is just referring to, indeed, a filesystem mount point.