Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-6983

Alerts: persist and allow configuration substitution variables for alert definitions

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.0
    • Component/s: ambari-agent
    • Labels:
      None

      Description

      Allow the use of configuration variables within alert definitions. Can use similar to the following:

      {
        "label": "My Alert",
        "source": {
          "type": "PORT",
          "uri": "{{hdfs-site/dfs.namenode.http-address}}"
        }
      }
      

        Issue Links

          Activity

          Hide
          hudson Hudson added a comment -

          FAILURE: Integrated in Ambari-trunk-Commit #492 (See https://builds.apache.org/job/Ambari-trunk-Commit/492/)
          AMBARI-6983. Alerts: persist and allow configuration substitution variables for alert definitions (ncole) (ncole: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=6480115d23d2e9a37958e6720bc7062afc0641a7)

          • ambari-agent/src/test/python/ambari_agent/TestController.py
          • ambari-agent/src/main/python/ambari_agent/Controller.py
          • ambari-agent/src/test/python/ambari_agent/dummy_files/definitions.json
          • ambari-server/src/main/java/org/apache/ambari/server/agent/HeartBeatHandler.java
          • ambari-server/src/main/java/org/apache/ambari/server/agent/HeartBeat.java
          • ambari-agent/src/test/python/ambari_agent/TestAlerts.py
          • ambari-agent/src/test/python/ambari_agent/dummy_files/alert_definitions.def
          • ambari-server/src/main/java/org/apache/ambari/server/agent/HeartbeatMonitor.java
          • ambari-agent/src/main/python/ambari_agent/Heartbeat.py
          • ambari-agent/src/main/python/ambari_agent/alerts/base_alert.py
          • ambari-agent/src/main/python/ambari_agent/AlertSchedulerHandler.py
          • ambari-server/src/main/java/org/apache/ambari/server/agent/AlertDefinitionCommand.java
          • ambari-agent/src/main/python/ambari_agent/alerts/port_alert.py
            AMBARI-6983. Alerts: persist and allow configuration substitution variables for alert definitions (part 2) (ncole) (ncole: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=2ac6c726e148e0e541767200b85421886175bf17)
          • ambari-agent/src/main/python/ambari_agent/AlertSchedulerHandler.py
            AMBARI-6983. Alerts: persist and allow configuration substitution variables for alert definitions (part 3) (ncole) (ncole: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=7bb01940d7b0e6e4396f65c27f0c7a4f081c39d2)
          • ambari-agent/src/main/python/ambari_agent/alerts/base_alert.py
          Show
          hudson Hudson added a comment - FAILURE: Integrated in Ambari-trunk-Commit #492 (See https://builds.apache.org/job/Ambari-trunk-Commit/492/ ) AMBARI-6983 . Alerts: persist and allow configuration substitution variables for alert definitions (ncole) (ncole: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=6480115d23d2e9a37958e6720bc7062afc0641a7 ) ambari-agent/src/test/python/ambari_agent/TestController.py ambari-agent/src/main/python/ambari_agent/Controller.py ambari-agent/src/test/python/ambari_agent/dummy_files/definitions.json ambari-server/src/main/java/org/apache/ambari/server/agent/HeartBeatHandler.java ambari-server/src/main/java/org/apache/ambari/server/agent/HeartBeat.java ambari-agent/src/test/python/ambari_agent/TestAlerts.py ambari-agent/src/test/python/ambari_agent/dummy_files/alert_definitions.def ambari-server/src/main/java/org/apache/ambari/server/agent/HeartbeatMonitor.java ambari-agent/src/main/python/ambari_agent/Heartbeat.py ambari-agent/src/main/python/ambari_agent/alerts/base_alert.py ambari-agent/src/main/python/ambari_agent/AlertSchedulerHandler.py ambari-server/src/main/java/org/apache/ambari/server/agent/AlertDefinitionCommand.java ambari-agent/src/main/python/ambari_agent/alerts/port_alert.py AMBARI-6983 . Alerts: persist and allow configuration substitution variables for alert definitions (part 2) (ncole) (ncole: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=2ac6c726e148e0e541767200b85421886175bf17 ) ambari-agent/src/main/python/ambari_agent/AlertSchedulerHandler.py AMBARI-6983 . Alerts: persist and allow configuration substitution variables for alert definitions (part 3) (ncole) (ncole: http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=7bb01940d7b0e6e4396f65c27f0c7a4f081c39d2 ) ambari-agent/src/main/python/ambari_agent/alerts/base_alert.py
          Hide
          ncole@hortonworks.com Nate Cole added a comment -

          commit 6480115d23d2e9a37958e6720bc7062afc0641a7

          Show
          ncole@hortonworks.com Nate Cole added a comment - commit 6480115d23d2e9a37958e6720bc7062afc0641a7

            People

            • Assignee:
              ncole@hortonworks.com Nate Cole
              Reporter:
              ncole@hortonworks.com Nate Cole
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development