ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Hurley <>
Subject Re: Ambari Server alerts
Date Thu, 03 Sep 2015 20:01:16 GMT
Hi Milos,

You can use the alert_definition endpoint to create the SERVER alert. See

As an example:

POST api/v1/clusters/<cluster>/alert_definitions

  "AlertDefinition": {
    "name": “my_server_side_alert",
    "label": “My Server Alert",
    "description": "This alert is triggered test when foo.",
    "interval": 1,
    "service_name": "AMBARI",
    "component_name": "AMBARI_SERVER",
    "scope": "HOST",
    "enabled": true,
    "source": {
      "type": "SERVER",
      "class": “com.mycompany.AlertRunnable"

Note that you’ll need to have started Ambari Server with the runnable you reference already
on the class path, otherwise the class loader won’t be able to find it.

On Sep 3, 2015, at 3:54 PM, Obradovic, Milos (Contractor) <<>>


I have a question about creating custom Ambari Server Alerts. I thought initially that I can
create Java class and just add that class with required parameters to alerts.json, but since
alerts.json is bundled in ambari server jar what are my options?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message