Repository: metron
Updated Branches:
  refs/heads/master 696a454a6 -> e2de1caa4


METRON-1208 MPack for Alerts UI (merrimanr) closes apache/metron#778


Project: http://git-wip-us.apache.org/repos/asf/metron/repo
Commit: http://git-wip-us.apache.org/repos/asf/metron/commit/e2de1caa
Tree: http://git-wip-us.apache.org/repos/asf/metron/tree/e2de1caa
Diff: http://git-wip-us.apache.org/repos/asf/metron/diff/e2de1caa

Branch: refs/heads/master
Commit: e2de1caa4d800fa62e34786b788cf9b9c1df9709
Parents: 696a454
Author: merrimanr <[email protected]>
Authored: Thu Sep 28 17:02:24 2017 -0500
Committer: merrimanr <[email protected]>
Committed: Thu Sep 28 17:02:24 2017 -0500

----------------------------------------------------------------------
 .../configuration/metron-alerts-ui-env.xml      | 27 +++++++
 .../common-services/METRON/CURRENT/metainfo.xml | 29 +++++++
 .../package/scripts/alerts_ui_commands.py       | 46 +++++++++++
 .../CURRENT/package/scripts/alerts_ui_master.py | 85 ++++++++++++++++++++
 .../package/scripts/params/params_linux.py      |  1 +
 .../package/scripts/params/status_params.py     |  1 +
 .../CURRENT/package/templates/alerts_ui.yml.j2  | 23 ++++++
 .../METRON/CURRENT/quicklinks/quicklinks.json   | 15 ++++
 .../METRON/CURRENT/service_advisor.py           |  6 ++
 .../METRON/CURRENT/themes/metron_theme.json     | 38 +++++++++
 .../roles/ambari_config/vars/single_node_vm.yml |  3 +-
 .../roles/ambari_config/vars/small_cluster.yml  |  3 +-
 metron-interface/metron-alerts/README.md        |  4 +
 13 files changed, 279 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/metron/blob/e2de1caa/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/configuration/metron-alerts-ui-env.xml
----------------------------------------------------------------------
diff --git 
a/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/configuration/metron-alerts-ui-env.xml
 
b/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/configuration/metron-alerts-ui-env.xml
new file mode 100644
index 0000000..ab6ad5c
--- /dev/null
+++ 
b/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/configuration/metron-alerts-ui-env.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0"?>
+<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one
+  or more contributor license agreements.  See the NOTICE file
+  distributed with this work for additional information
+  regarding copyright ownership.  The ASF licenses this file
+  to you under the Apache License, Version 2.0 (the
+  "License"); you may not use this file except in compliance
+  with the License.  You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<configuration supports_final="true">
+    <property>
+        <name>metron_alerts_ui_port</name>
+        <value>4201</value>
+        <description>Port the Alerts UI runs on</description>
+        <display-name>Alerts UI port</display-name>
+    </property>
+</configuration>

http://git-wip-us.apache.org/repos/asf/metron/blob/e2de1caa/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/metainfo.xml
----------------------------------------------------------------------
diff --git 
a/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/metainfo.xml
 
b/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/metainfo.xml
index 4213214..334ad95 100644
--- 
a/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/metainfo.xml
+++ 
b/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/metainfo.xml
@@ -318,6 +318,32 @@
                 <config-type>metron-management-ui-env</config-type>
             </configuration-dependencies>
         </component>
+        <component>
+          <name>METRON_ALERTS_UI</name>
+          <displayName>Metron Alerts UI</displayName>
+          <category>MASTER</category>
+          <cardinality>1</cardinality>
+          <versionAdvertised>false</versionAdvertised>
+          <reassignAllowed>false</reassignAllowed>
+          <clientsToUpdateConfigs></clientsToUpdateConfigs>
+          <dependencies>
+            <dependency>
+              <name>METRON/METRON_MANAGEMENT_UI</name>
+              <scope>host</scope>
+              <auto-deploy>
+                <enabled>true</enabled>
+              </auto-deploy>
+            </dependency>
+          </dependencies>
+          <commandScript>
+            <script>scripts/alerts_ui_master.py</script>
+            <scriptType>PYTHON</scriptType>
+          </commandScript>
+          <configuration-dependencies>
+            <config-type>metron-rest-env</config-type>
+            <config-type>metron-alerts-ui-env</config-type>
+          </configuration-dependencies>
+        </component>
 
         <component>
           <name>METRON_CLIENT</name>
@@ -381,6 +407,9 @@
             <package>
               <name>metron-config</name>
             </package>
+            <package>
+              <name>metron-alerts</name>
+            </package>
           </packages>
         </osSpecific>
         <osSpecific>

http://git-wip-us.apache.org/repos/asf/metron/blob/e2de1caa/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/alerts_ui_commands.py
----------------------------------------------------------------------
diff --git 
a/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/alerts_ui_commands.py
 
b/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/alerts_ui_commands.py
new file mode 100644
index 0000000..eabdbcb
--- /dev/null
+++ 
b/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/alerts_ui_commands.py
@@ -0,0 +1,46 @@
+#!/usr/bin/env python
+"""
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+"""
+
+from resource_management.core.logger import Logger
+from resource_management.core.resources.system import Execute, File
+
+# Wrap major operations and functionality in this class
+class AlertsUICommands:
+    __params = None
+
+    def __init__(self, params):
+        if params is None:
+            raise ValueError("params argument is required for initialization")
+        self.__params = params
+
+    def start_alerts_ui(self):
+        Logger.info('Starting Alerts UI')
+        Execute("service metron-alerts-ui start")
+        Logger.info('Done starting Alerts UI')
+
+    def stop_alerts_ui(self):
+        Logger.info('Stopping Alerts UI')
+        Execute("service metron-alerts-ui stop")
+        Logger.info('Done stopping Alerts UI')
+
+    def restart_alerts_ui(self, env):
+        Logger.info('Restarting the Alerts UI')
+        Execute('service metron-alerts-ui restart')
+        Logger.info('Done restarting the Alerts UI')

http://git-wip-us.apache.org/repos/asf/metron/blob/e2de1caa/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/alerts_ui_master.py
----------------------------------------------------------------------
diff --git 
a/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/alerts_ui_master.py
 
b/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/alerts_ui_master.py
new file mode 100644
index 0000000..adf05a7
--- /dev/null
+++ 
b/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/alerts_ui_master.py
@@ -0,0 +1,85 @@
+"""
+Licensed to the Apache Software Foundation (ASF) under one
+or more contributor license agreements.  See the NOTICE file
+distributed with this work for additional information
+regarding copyright ownership.  The ASF licenses this file
+to you under the Apache License, Version 2.0 (the
+"License"); you may not use this file except in compliance
+with the License.  You may obtain a copy of the License at
+
+    http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+
+"""
+
+from resource_management.core.exceptions import ComponentIsNotRunning
+from resource_management.core.exceptions import ExecutionFailed
+from resource_management.core.resources.system import Directory
+from resource_management.core.resources.system import File
+from resource_management.core.source import Template
+from resource_management.libraries.functions.format import format
+from resource_management.libraries.functions.get_user_call_output import 
get_user_call_output
+from resource_management.libraries.script import Script
+from resource_management.core.resources.system import Execute
+
+from resource_management.core.logger import Logger
+
+from alerts_ui_commands import AlertsUICommands
+
+
+class AlertsUIMaster(Script):
+
+    def install(self, env):
+        from params import params
+        env.set_params(params)
+        self.install_packages(env)
+
+    def configure(self, env, upgrade_type=None, config_dir=None):
+        print 'configure alerts_ui'
+        from params import params
+        env.set_params(params)
+
+        File(format("{metron_config_path}/alerts_ui.yml"),
+             mode=0755,
+             content=Template("alerts_ui.yml.j2"),
+             owner=params.metron_user,
+             group=params.metron_group
+             )
+
+    def start(self, env, upgrade_type=None):
+        from params import params
+        env.set_params(params)
+        self.configure(env)
+        commands = AlertsUICommands(params)
+        commands.start_alerts_ui()
+
+    def stop(self, env, upgrade_type=None):
+        from params import params
+        env.set_params(params)
+        commands = AlertsUICommands(params)
+        commands.stop_alerts_ui()
+
+    def status(self, env):
+        from params import status_params
+        env.set_params(status_params)
+        cmd = format('curl --max-time 3 {hostname}:{metron_alerts_ui_port}')
+        try:
+            get_user_call_output(cmd, user=status_params.metron_user)
+        except ExecutionFailed:
+            raise ComponentIsNotRunning()
+
+    def restart(self, env):
+        from params import params
+        env.set_params(params)
+        self.configure(env)
+        commands = AlertsUICommands(params)
+        commands.restart_alerts_ui(env)
+
+
+if __name__ == "__main__":
+    AlertsUIMaster().execute()

http://git-wip-us.apache.org/repos/asf/metron/blob/e2de1caa/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/params/params_linux.py
----------------------------------------------------------------------
diff --git 
a/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/params/params_linux.py
 
b/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/params/params_linux.py
index b73c3ef..a181935 100755
--- 
a/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/params/params_linux.py
+++ 
b/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/params/params_linux.py
@@ -51,6 +51,7 @@ metron_log_dir = 
config['configurations']['metron-env']['metron_log_dir']
 metron_pid_dir = config['configurations']['metron-env']['metron_pid_dir']
 metron_rest_port = status_params.metron_rest_port
 metron_management_ui_port = status_params.metron_management_ui_port
+metron_alerts_ui_port = status_params.metron_alerts_ui_port
 metron_jvm_flags = 
config['configurations']['metron-rest-env']['metron_jvm_flags']
 metron_spring_profiles_active = 
config['configurations']['metron-rest-env']['metron_spring_profiles_active']
 metron_jdbc_driver = 
config['configurations']['metron-rest-env']['metron_jdbc_driver']

http://git-wip-us.apache.org/repos/asf/metron/blob/e2de1caa/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/params/status_params.py
----------------------------------------------------------------------
diff --git 
a/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/params/status_params.py
 
b/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/params/status_params.py
index 9ff1430..d4f2799 100644
--- 
a/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/params/status_params.py
+++ 
b/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/scripts/params/status_params.py
@@ -79,6 +79,7 @@ metron_rest_port = 
config['configurations']['metron-rest-env']['metron_rest_port
 
 # UI
 metron_management_ui_port = 
config['configurations']['metron-management-ui-env']['metron_management_ui_port']
+metron_alerts_ui_port = 
config['configurations']['metron-alerts-ui-env']['metron_alerts_ui_port']
 
 # Storm
 storm_rest_addr = config['configurations']['metron-env']['storm_rest_addr']

http://git-wip-us.apache.org/repos/asf/metron/blob/e2de1caa/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/templates/alerts_ui.yml.j2
----------------------------------------------------------------------
diff --git 
a/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/templates/alerts_ui.yml.j2
 
b/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/templates/alerts_ui.yml.j2
new file mode 100644
index 0000000..a3e87cb
--- /dev/null
+++ 
b/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/package/templates/alerts_ui.yml.j2
@@ -0,0 +1,23 @@
+{#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#}
+
+port: {{metron_alerts_ui_port}}
+
+rest:
+  host: {{metron_rest_host}}
+  port: {{metron_rest_port}}

http://git-wip-us.apache.org/repos/asf/metron/blob/e2de1caa/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/quicklinks/quicklinks.json
----------------------------------------------------------------------
diff --git 
a/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/quicklinks/quicklinks.json
 
b/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/quicklinks/quicklinks.json
index dbe2e6a..a7f6ab8 100755
--- 
a/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/quicklinks/quicklinks.json
+++ 
b/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/quicklinks/quicklinks.json
@@ -52,6 +52,21 @@
           "regex": "^(\\d+)$",
           "site": "metron-management-ui-env"
         }
+      },
+      {
+        "name": "metron_alerts_ui",
+        "label": "Alerts UI",
+        "requires_user_name": "false",
+        "component_name": "METRON_ALERTS_UI",
+        "url": "%@://%@:%@/",
+        "port": {
+          "http_property": "metron_alerts_ui_port",
+          "http_default_port": "4201",
+          "https_property": "metron_alerts_ui_port",
+          "https_default_port": "4201",
+          "regex": "^(\\d+)$",
+          "site": "metron-alerts-ui-env"
+        }
       }
     ]
   }

http://git-wip-us.apache.org/repos/asf/metron/blob/e2de1caa/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/service_advisor.py
----------------------------------------------------------------------
diff --git 
a/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/service_advisor.py
 
b/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/service_advisor.py
index 56fdab8..3bf5c7c 100644
--- 
a/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/service_advisor.py
+++ 
b/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/service_advisor.py
@@ -46,6 +46,8 @@ class 
METRON${metron.short.version}ServiceAdvisor(service_advisor.ServiceAdvisor
         metronProfilerHost = self.getHosts(componentsList, 
"METRON_PROFILER")[0]
         metronIndexingHost = self.getHosts(componentsList, 
"METRON_INDEXING")[0]
         metronRESTHost = self.getHosts(componentsList, "METRON_REST")[0]
+        metronManagementUIHost = self.getHosts(componentsList, 
"METRON_MANAGEMENT_UI")[0]
+        metronAlertsUIHost = self.getHosts(componentsList, 
"METRON_ALERTS_UI")[0]
 
         hbaseClientHosts = self.getHosts(componentsList, "HBASE_CLIENT")
         hdfsClientHosts = self.getHosts(componentsList, "HDFS_CLIENT")
@@ -99,6 +101,10 @@ class 
METRON${metron.short.version}ServiceAdvisor(service_advisor.ServiceAdvisor
             message = "Metron Enrichment Master must be co-located with an 
instance of HBase Client"
             items.append({ "type": 'host-component', "level": 'WARN', 
"message": message, "component-name": 'METRON_ENRICHMENT_MASTER', "host": 
metronEnrichmentMaster })
 
+        if metronManagementUIHost != metronAlertsUIHost:
+            message = "Metron Alerts UI must be co-located with Metron 
Management UI on {0}".format(metronManagementUIHost)
+            items.append({ "type": 'host-component', "level": 'ERROR', 
"message": message, "component-name": 'METRON_ALERTS_UI', "host": 
metronAlertsUIHost })
+
         return items
 
     def getServiceConfigurationsValidationItems(self, configurations, 
recommendedDefaults, services, hosts):

http://git-wip-us.apache.org/repos/asf/metron/blob/e2de1caa/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/themes/metron_theme.json
----------------------------------------------------------------------
diff --git 
a/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/themes/metron_theme.json
 
b/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/themes/metron_theme.json
index 117aff6..c9dbd33 100644
--- 
a/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/themes/metron_theme.json
+++ 
b/metron-deployment/packaging/ambari/metron-mpack/src/main/resources/common-services/METRON/CURRENT/themes/metron_theme.json
@@ -335,6 +335,34 @@
                 }
               ]
             }
+          },
+          {
+            "name": "alerts-ui",
+            "display-name": "Alerts UI",
+            "layout": {
+              "tab-columns": "1",
+              "tab-rows": "1",
+              "sections": [
+                {
+                  "name": "section-alerts-ui",
+                  "row-index": "0",
+                  "column-index": "0",
+                  "row-span": "1",
+                  "column-span": "1",
+                  "section-columns": "1",
+                  "section-rows": "1",
+                  "subsections": [
+                    {
+                      "name": "subsection-alerts-ui",
+                      "row-index": "0",
+                      "column-index": "0",
+                      "row-span": "1",
+                      "column-span": "1"
+                    }
+                  ]
+                }
+              ]
+            }
           }
         ]
       }
@@ -623,6 +651,10 @@
         {
           "config": "metron-management-ui-env/metron_management_ui_port",
           "subsection-name": "subsection-management-ui"
+        },
+        {
+          "config": "metron-alerts-ui-env/metron_alerts_ui_port",
+          "subsection-name": "subsection-alerts-ui"
         }
       ]
     },
@@ -1055,6 +1087,12 @@
         "widget": {
           "type": "text-field"
         }
+      },
+      {
+        "config": "metron-alerts-ui-env/metron_alerts_ui_port",
+        "widget": {
+          "type": "text-field"
+        }
       }
     ]
   }

http://git-wip-us.apache.org/repos/asf/metron/blob/e2de1caa/metron-deployment/roles/ambari_config/vars/single_node_vm.yml
----------------------------------------------------------------------
diff --git a/metron-deployment/roles/ambari_config/vars/single_node_vm.yml 
b/metron-deployment/roles/ambari_config/vars/single_node_vm.yml
index 4c3cbce..024582c 100644
--- a/metron-deployment/roles/ambari_config/vars/single_node_vm.yml
+++ b/metron-deployment/roles/ambari_config/vars/single_node_vm.yml
@@ -36,11 +36,12 @@ metron_enrichment_master : [METRON_ENRICHMENT_MASTER]
 metron_parsers : [METRON_PARSERS]
 metron_rest: [METRON_REST]
 metron_management_ui: [METRON_MANAGEMENT_UI]
+metron_alerts_ui: [METRON_ALERTS_UI]
 
 metron_components: >
   {{ hadoop_master | union(zookeeper_master) | union(storm_master) | 
union(hbase_master) | union(hadoop_slave) | union(zookeeper_slave) |
   union(storm_slave) | union(kafka_broker) | union(hbase_slave) | 
union(kibana_master) | union(metron_indexing) | union(metron_profiler) |
-  union(metron_enrichment_master) | union(metron_parsers) | union(metron_rest) 
| union(metron_management_ui) | union(es_master)  }}
+  union(metron_enrichment_master) | union(metron_parsers) | union(metron_rest) 
| union(metron_management_ui) | union(metron_alerts_ui) | union(es_master)  }}
 
 cluster_name: "metron_cluster"
 blueprint_name: "metron_blueprint"

http://git-wip-us.apache.org/repos/asf/metron/blob/e2de1caa/metron-deployment/roles/ambari_config/vars/small_cluster.yml
----------------------------------------------------------------------
diff --git a/metron-deployment/roles/ambari_config/vars/small_cluster.yml 
b/metron-deployment/roles/ambari_config/vars/small_cluster.yml
index 51e0455..6bdc0b4 100644
--- a/metron-deployment/roles/ambari_config/vars/small_cluster.yml
+++ b/metron-deployment/roles/ambari_config/vars/small_cluster.yml
@@ -36,6 +36,7 @@ metron_enrichment_master : [METRON_ENRICHMENT_MASTER]
 metron_parsers : [METRON_PARSERS]
 metron_rest: [METRON_REST]
 metron_management_ui: [METRON_MANAGEMENT_UI]
+metron_alerts_ui: [METRON_ALERTS_UI]
 
 master_1_components: "{{ hadoop_master | union(hadoop_clients) | 
union(es_slave) }}"
 master_1_host:
@@ -44,7 +45,7 @@ master_2_components: "{{ zookeeper_master | 
union(storm_master) | union(spark_ma
 master_2_host:
   - "{{groups.ambari_slave[1]}}"
 metron_components: >
-    {{ metron_indexing | union(metron_profiler) | 
union(metron_enrichment_master) | union(metron_parsers) | union(metron_rest) | 
union(metron_management_ui) | union(hadoop_slave) | union(storm_slave) |
+    {{ metron_indexing | union(metron_profiler) | 
union(metron_enrichment_master) | union(metron_parsers) | union(metron_rest) | 
union(metron_management_ui) | union(metron_alerts_ui) | union(hadoop_slave) | 
union(storm_slave) |
     union(kafka_broker) | union(hbase_slave) | union(hadoop_clients) }}
 metron_host:
   - "{{ groups.metron[0] }}"

http://git-wip-us.apache.org/repos/asf/metron/blob/e2de1caa/metron-interface/metron-alerts/README.md
----------------------------------------------------------------------
diff --git a/metron-interface/metron-alerts/README.md 
b/metron-interface/metron-alerts/README.md
index fe0950c..c312efa 100644
--- a/metron-interface/metron-alerts/README.md
+++ b/metron-interface/metron-alerts/README.md
@@ -52,6 +52,10 @@
     rpm -ih metron-alerts-$METRON_VERSION-*.noarch.rpm
     ```
 
+### From Ambari MPack
+
+The Alerts UI is included in the Metron Ambari MPack.  It can be accessed 
through the Quick Links in the Metron service.  
+
 ## Configuration
 
 The Alerts UI is configured in the `$METRON_HOME/config/alerts_ui.yml` file.  
Create this file and set the values to match your environment:

Reply via email to