Repository: incubator-eagle Updated Branches: refs/heads/master 268096f19 -> 3025e5d72
[EAGLE-836] Add /apps/hadoop_metric view path in HADOOP_METRIC_MONITOR app Add /apps/hadoop_metric view path in HADOOP_METRIC_MONITOR app https://issues.apache.org/jira/browse/EAGLE-836 Author: Hao Chen <h...@apache.org> Closes #731 from haoch/EAGLE-836. Project: http://git-wip-us.apache.org/repos/asf/incubator-eagle/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-eagle/commit/3025e5d7 Tree: http://git-wip-us.apache.org/repos/asf/incubator-eagle/tree/3025e5d7 Diff: http://git-wip-us.apache.org/repos/asf/incubator-eagle/diff/3025e5d7 Branch: refs/heads/master Commit: 3025e5d7285ebac8236e8988df7dc52690420117 Parents: 268096f Author: Hao Chen <h...@apache.org> Authored: Mon Dec 12 15:14:55 2016 +0800 Committer: Hao Chen <h...@apache.org> Committed: Mon Dec 12 15:14:55 2016 +0800 ---------------------------------------------------------------------- .../src/main/webapp/app/apps/example/index.js | 1 + eagle-hadoop-metric/pom.xml | 12 ++++++++++++ ...ache.eagle.metric.HadoopMetricMonitorAppProdiver.xml | 5 +++-- .../src/main/webapp/app/apps/hadoop_metric/index.js | 1 + eagle-hadoop-metric/src/main/webapp/app/index.html | 6 ++++++ 5 files changed, 23 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/3025e5d7/eagle-examples/eagle-app-example/src/main/webapp/app/apps/example/index.js ---------------------------------------------------------------------- diff --git a/eagle-examples/eagle-app-example/src/main/webapp/app/apps/example/index.js b/eagle-examples/eagle-app-example/src/main/webapp/app/apps/example/index.js new file mode 100644 index 0000000..aab3ec7 --- /dev/null +++ b/eagle-examples/eagle-app-example/src/main/webapp/app/apps/example/index.js @@ -0,0 +1 @@ +console.log("Loading EXAMPLE_APPLICATION: /apps/example"); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/3025e5d7/eagle-hadoop-metric/pom.xml ---------------------------------------------------------------------- diff --git a/eagle-hadoop-metric/pom.xml b/eagle-hadoop-metric/pom.xml index a3d1cb0..47a80e2 100644 --- a/eagle-hadoop-metric/pom.xml +++ b/eagle-hadoop-metric/pom.xml @@ -47,4 +47,16 @@ </exclusions> </dependency> </dependencies> + + <build> + <resources> + <resource> + <directory>src/main/webapp/app</directory> + <targetPath>assets/</targetPath> + </resource> + <resource> + <directory>src/main/resources</directory> + </resource> + </resources> + </build> </project> \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/3025e5d7/eagle-hadoop-metric/src/main/resources/META-INF/providers/org.apache.eagle.metric.HadoopMetricMonitorAppProdiver.xml ---------------------------------------------------------------------- diff --git a/eagle-hadoop-metric/src/main/resources/META-INF/providers/org.apache.eagle.metric.HadoopMetricMonitorAppProdiver.xml b/eagle-hadoop-metric/src/main/resources/META-INF/providers/org.apache.eagle.metric.HadoopMetricMonitorAppProdiver.xml index 87b57d6..b832b48 100644 --- a/eagle-hadoop-metric/src/main/resources/META-INF/providers/org.apache.eagle.metric.HadoopMetricMonitorAppProdiver.xml +++ b/eagle-hadoop-metric/src/main/resources/META-INF/providers/org.apache.eagle.metric.HadoopMetricMonitorAppProdiver.xml @@ -17,9 +17,10 @@ --> <application> - <type>HADOOP_JMX_METRIC_MONITOR</type> - <name>Hadoop JMX Metric Monitor</name> + <type>HADOOP_METRIC_MONITOR</type> + <name>Hadoop Metrics Monitor</name> <version>0.5.0-incubating</version> + <viewPath>/apps/hadoop_metric</viewPath> <configuration> <!-- data fromStream configurations --> <property> http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/3025e5d7/eagle-hadoop-metric/src/main/webapp/app/apps/hadoop_metric/index.js ---------------------------------------------------------------------- diff --git a/eagle-hadoop-metric/src/main/webapp/app/apps/hadoop_metric/index.js b/eagle-hadoop-metric/src/main/webapp/app/apps/hadoop_metric/index.js new file mode 100644 index 0000000..6da3888 --- /dev/null +++ b/eagle-hadoop-metric/src/main/webapp/app/apps/hadoop_metric/index.js @@ -0,0 +1 @@ +console.log("Loading HADOOP_METRIC_MONITOR: /apps/hadoop_metric"); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-eagle/blob/3025e5d7/eagle-hadoop-metric/src/main/webapp/app/index.html ---------------------------------------------------------------------- diff --git a/eagle-hadoop-metric/src/main/webapp/app/index.html b/eagle-hadoop-metric/src/main/webapp/app/index.html new file mode 100644 index 0000000..765d8a6 --- /dev/null +++ b/eagle-hadoop-metric/src/main/webapp/app/index.html @@ -0,0 +1,6 @@ +<htm> + <body> + <h1>Hadoop Metric Monitor Application!</h1> + <i><b>url</b>: /apps/hadoop_metric</i> + </body> +</htm> \ No newline at end of file