Ambari alerts work natively off of JMX metrics, so if HBase exposes a metric 
through JMX then you can consume it. We used to do something similar for "dead" 
RegionServers, but it was determined that a "dead" RegionServer was part of the 
normal lifecycle and shouldn't have an alert: 

https://github.com/apache/ambari/commit/d1e59133f7f867a16d6cb4c7e5cc8508893a29fe#diff-c6c19e2641a79e05745b9320dfb7a6e1

However, if the metric you want isn't exposed by HBase, then you'd have to 
write a Python script to do the work for you.

On 1/10/19, 1:04 AM, "Fabien Carrion" <[email protected]> wrote:

    Hello,
    
    I need to create an ambari' alert if I have a failed region.
    
    I didnt see this metric in the widget creator so I was thinking to
    create an ambari metrics, and then create an ambari alert on it.
    
    I would like to know if there is a way to access to this hbase metric
    through ganglia or if I need to create a whole new python script to
    download the metric.
    
    As I am new to ambari, I am open to any suggestion.
    
    Thanks for the help
    
    -- 
    Fabien Carrion
    
    ()  Campagne du ruban ASCII -- Contre les mails en html
    /\  contre les pieces-jointes Microsoft
    Web: http://fabien.carrion.free.fr/
    
    

Reply via email to