You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2015/02/04 17:36:11 UTC
[27/30] karaf-decanter git commit: Add kibana embedded dashboard and
feature
Add kibana embedded dashboard and feature
Project: http://git-wip-us.apache.org/repos/asf/karaf-decanter/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf-decanter/commit/7560f657
Tree: http://git-wip-us.apache.org/repos/asf/karaf-decanter/tree/7560f657
Diff: http://git-wip-us.apache.org/repos/asf/karaf-decanter/diff/7560f657
Branch: refs/heads/master
Commit: 7560f657c249f9469a8b2ed69e1b1dce66b4d32d
Parents: 40404ff
Author: Jean-Baptiste Onofré <jb...@apache.org>
Authored: Tue Oct 14 19:05:51 2014 +0200
Committer: Jean-Baptiste Onofré <jb...@apache.org>
Committed: Tue Oct 14 19:05:51 2014 +0200
----------------------------------------------------------------------
assembly/src/main/feature/feature.xml | 6 +
kibana/pom.xml | 57 +
kibana/src/main/resources/LICENSE.md | 13 +
kibana/src/main/resources/README.md | 69 +
kibana/src/main/resources/WEB-INF/web.xml | 28 +
kibana/src/main/resources/app/app.js | 24 +
.../resources/app/components/require.config.js | 4 +
.../main/resources/app/dashboards/blank.json | 32 +
.../main/resources/app/dashboards/default.json | 90 +
.../main/resources/app/dashboards/guided.json | 272 +
.../main/resources/app/dashboards/logstash.js | 138 +
.../main/resources/app/dashboards/logstash.json | 227 +
.../main/resources/app/dashboards/noted.json | 161 +
.../src/main/resources/app/factories/store.js | 4 +
.../resources/app/panels/bettermap/editor.html | 1 +
.../bettermap/leaflet/images/layers-2x.png | Bin 0 -> 2898 bytes
.../panels/bettermap/leaflet/images/layers.png | Bin 0 -> 1502 bytes
.../bettermap/leaflet/images/marker-icon-2x.png | Bin 0 -> 4033 bytes
.../bettermap/leaflet/images/marker-icon.png | Bin 0 -> 1747 bytes
.../bettermap/leaflet/images/marker-shadow.png | Bin 0 -> 797 bytes
.../app/panels/bettermap/leaflet/leaflet.css | 1 +
.../app/panels/bettermap/leaflet/leaflet.ie.css | 1 +
.../app/panels/bettermap/leaflet/leaflet.js | 7 +
.../app/panels/bettermap/leaflet/plugins.css | 1 +
.../app/panels/bettermap/leaflet/plugins.js | 4 +
.../resources/app/panels/bettermap/module.css | 1 +
.../resources/app/panels/bettermap/module.html | 3 +
.../resources/app/panels/bettermap/module.js | 8 +
.../resources/app/panels/column/editor.html | 1 +
.../resources/app/panels/column/module.html | 1 +
.../main/resources/app/panels/column/module.js | 4 +
.../app/panels/column/panelgeneral.html | 1 +
.../app/panels/dashcontrol/editor.html | 1 +
.../app/panels/dashcontrol/module.html | 1 +
.../resources/app/panels/dashcontrol/module.js | 4 +
.../app/panels/derivequeries/editor.html | 1 +
.../app/panels/derivequeries/module.html | 1 +
.../app/panels/derivequeries/module.js | 4 +
.../resources/app/panels/fields/editor.html | 1 +
.../resources/app/panels/fields/micropanel.html | 1 +
.../resources/app/panels/fields/module.html | 1 +
.../main/resources/app/panels/fields/module.js | 4 +
.../resources/app/panels/filtering/editor.html | 1 +
.../resources/app/panels/filtering/meta.html | 3 +
.../resources/app/panels/filtering/module.html | 30 +
.../resources/app/panels/filtering/module.js | 4 +
.../main/resources/app/panels/goal/editor.html | 1 +
.../main/resources/app/panels/goal/module.html | 1 +
.../main/resources/app/panels/goal/module.js | 4 +
.../resources/app/panels/histogram/editor.html | 1 +
.../resources/app/panels/histogram/module.html | 40 +
.../resources/app/panels/histogram/module.js | 5 +
.../app/panels/histogram/queriesEditor.html | 9 +
.../app/panels/histogram/styleEditor.html | 1 +
.../main/resources/app/panels/hits/editor.html | 1 +
.../main/resources/app/panels/hits/module.html | 1 +
.../main/resources/app/panels/hits/module.js | 4 +
.../main/resources/app/panels/map/editor.html | 1 +
.../resources/app/panels/map/lib/map.europe.js | 4 +
.../resources/app/panels/map/lib/map.usa.js | 4 +
.../resources/app/panels/map/lib/map.world.js | 4 +
.../main/resources/app/panels/map/module.html | 58 +
.../src/main/resources/app/panels/map/module.js | 5 +
.../main/resources/app/panels/query/editor.html | 1 +
.../app/panels/query/editors/lucene.html | 0
.../app/panels/query/editors/regex.html | 0
.../app/panels/query/editors/topN.html | 1 +
.../resources/app/panels/query/help/lucene.html | 1 +
.../resources/app/panels/query/help/regex.html | 1 +
.../resources/app/panels/query/help/topN.html | 1 +
.../resources/app/panels/query/helpModal.html | 1 +
.../main/resources/app/panels/query/meta.html | 3 +
.../main/resources/app/panels/query/module.html | 1 +
.../main/resources/app/panels/query/module.js | 4 +
.../main/resources/app/panels/query/query.css | 1 +
.../resources/app/panels/sparklines/editor.html | 1 +
.../resources/app/panels/sparklines/module.html | 1 +
.../resources/app/panels/sparklines/module.js | 4 +
.../main/resources/app/panels/stats/editor.html | 1 +
.../main/resources/app/panels/stats/module.html | 7 +
.../main/resources/app/panels/stats/module.js | 4 +
.../main/resources/app/panels/table/editor.html | 1 +
.../resources/app/panels/table/micropanel.html | 3 +
.../main/resources/app/panels/table/modal.html | 31 +
.../main/resources/app/panels/table/module.html | 52 +
.../main/resources/app/panels/table/module.js | 4 +
.../resources/app/panels/table/pagination.html | 1 +
.../main/resources/app/panels/terms/editor.html | 1 +
.../main/resources/app/panels/terms/module.html | 24 +
.../main/resources/app/panels/terms/module.js | 4 +
.../main/resources/app/panels/text/editor.html | 1 +
.../main/resources/app/panels/text/module.html | 1 +
.../main/resources/app/panels/text/module.js | 4 +
.../resources/app/panels/timepicker/custom.html | 31 +
.../resources/app/panels/timepicker/editor.html | 1 +
.../resources/app/panels/timepicker/module.html | 3 +
.../resources/app/panels/timepicker/module.js | 4 +
.../app/panels/timepicker/refreshctrl.html | 1 +
.../resources/app/panels/trends/editor.html | 1 +
.../resources/app/panels/trends/module.html | 9 +
.../main/resources/app/panels/trends/module.js | 4 +
.../app/partials/connectionFailed.html | 1 +
.../main/resources/app/partials/dashLoader.html | 3 +
.../resources/app/partials/dashLoaderShare.html | 1 +
.../main/resources/app/partials/dashboard.html | 1 +
.../main/resources/app/partials/dasheditor.html | 1 +
.../main/resources/app/partials/inspector.html | 2 +
.../src/main/resources/app/partials/load.html | 1 +
.../src/main/resources/app/partials/modal.html | 1 +
.../main/resources/app/partials/paneladd.html | 1 +
.../resources/app/partials/paneleditor.html | 1 +
.../resources/app/partials/panelgeneral.html | 1 +
.../resources/app/partials/querySelect.html | 9 +
.../main/resources/app/partials/roweditor.html | 1 +
kibana/src/main/resources/build.txt | 153 +
kibana/src/main/resources/config.js | 80 +
kibana/src/main/resources/css/animate.min.css | 1 +
.../resources/css/bootstrap-responsive.min.css | 9 +
.../src/main/resources/css/bootstrap.dark.less | 6290 ++++++++++++++++++
.../main/resources/css/bootstrap.dark.min.css | 9 +
.../src/main/resources/css/bootstrap.light.less | 6287 +++++++++++++++++
.../main/resources/css/bootstrap.light.min.css | 9 +
.../src/main/resources/css/font-awesome.min.css | 1 +
kibana/src/main/resources/css/normalize.min.css | 1 +
kibana/src/main/resources/css/timepicker.css | 18 +
kibana/src/main/resources/font/FontAwesome.otf | Bin 0 -> 61896 bytes
.../main/resources/font/fontawesome-webfont.eot | Bin 0 -> 37405 bytes
.../main/resources/font/fontawesome-webfont.svg | 399 ++
.../main/resources/font/fontawesome-webfont.ttf | Bin 0 -> 79076 bytes
.../resources/font/fontawesome-webfont.woff | Bin 0 -> 43572 bytes
.../src/main/resources/img/annotation-icon.png | Bin 0 -> 4687 bytes
kibana/src/main/resources/img/cubes.png | Bin 0 -> 22505 bytes
.../img/glyphicons-halflings-white.png | Bin 0 -> 8777 bytes
.../main/resources/img/glyphicons-halflings.png | Bin 0 -> 12799 bytes
kibana/src/main/resources/img/kibana.png | Bin 0 -> 7359 bytes
kibana/src/main/resources/img/light.png | Bin 0 -> 14080 bytes
kibana/src/main/resources/img/load.gif | Bin 0 -> 723 bytes
kibana/src/main/resources/img/load_big.gif | Bin 0 -> 2892 bytes
kibana/src/main/resources/img/small.png | Bin 0 -> 480 bytes
kibana/src/main/resources/index.html | 1 +
kibana/src/main/resources/vendor/LICENSE.json | 94 +
.../vendor/bootstrap/less/tests/buttons.html | 139 +
.../vendor/bootstrap/less/tests/css-tests.css | 3 +
.../vendor/bootstrap/less/tests/css-tests.html | 1399 ++++
.../bootstrap/less/tests/forms-responsive.html | 71 +
.../vendor/bootstrap/less/tests/forms.html | 179 +
.../bootstrap/less/tests/navbar-fixed-top.html | 104 +
.../bootstrap/less/tests/navbar-static-top.html | 107 +
.../vendor/bootstrap/less/tests/navbar.html | 107 +
.../main/resources/vendor/require/css-build.js | 4 +
.../main/resources/vendor/require/require.js | 4 +
.../src/main/resources/vendor/require/tmpl.js | 4 +
kibana/src/main/resources/vendor/timezone.js | 4 +
pom.xml | 2 +
154 files changed, 17077 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/karaf-decanter/blob/7560f657/assembly/src/main/feature/feature.xml
----------------------------------------------------------------------
diff --git a/assembly/src/main/feature/feature.xml b/assembly/src/main/feature/feature.xml
index 2d5e1c1..fa52a17 100644
--- a/assembly/src/main/feature/feature.xml
+++ b/assembly/src/main/feature/feature.xml
@@ -54,6 +54,12 @@
<bundle>mvn:org.apache.karaf.decanter/org.apache.karaf.decanter.elasticsearch/${project.version}</bundle>
</feature>
+ <feature name="kibana" version="${kibana.version}" description="Embedded Kibana dashboard">
+ <feature>war</feature>
+ <feature>elasticsearch</feature>
+ <bundle>mvn:org.apache.karaf.decanter/org.apache.karaf.decanter.kibana/${project.version}</bundle>
+ </feature>
+
<!-- TODO create webconsole/kibana feature (embedded in Karaf) -->
</features>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/karaf-decanter/blob/7560f657/kibana/pom.xml
----------------------------------------------------------------------
diff --git a/kibana/pom.xml b/kibana/pom.xml
new file mode 100644
index 0000000..f79fe71
--- /dev/null
+++ b/kibana/pom.xml
@@ -0,0 +1,57 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+
+ <!--
+
+ 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.
+ -->
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.karaf</groupId>
+ <artifactId>decanter</artifactId>
+ <version>3.0.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <groupId>org.apache.karaf.decanter</groupId>
+ <artifactId>org.apache.karaf.decanter.kibana</artifactId>
+ <packaging>bundle</packaging>
+ <name>Apache Karaf :: Decanter :: Kibana</name>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.felix</groupId>
+ <artifactId>maven-bundle-plugin</artifactId>
+ <inherited>true</inherited>
+ <extensions>true</extensions>
+ <configuration>
+ <instructions>
+ <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
+ <Bundle-Version>${project.version}</Bundle-Version>
+ <Web-ContextPath>/kibana</Web-ContextPath>
+ <Import-Package>
+ *
+ </Import-Package>
+ </instructions>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/karaf-decanter/blob/7560f657/kibana/src/main/resources/LICENSE.md
----------------------------------------------------------------------
diff --git a/kibana/src/main/resources/LICENSE.md b/kibana/src/main/resources/LICENSE.md
new file mode 100644
index 0000000..b2ba701
--- /dev/null
+++ b/kibana/src/main/resources/LICENSE.md
@@ -0,0 +1,13 @@
+Copyright 2012-2013 Elasticsearch BV
+
+Licensed 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.
http://git-wip-us.apache.org/repos/asf/karaf-decanter/blob/7560f657/kibana/src/main/resources/README.md
----------------------------------------------------------------------
diff --git a/kibana/src/main/resources/README.md b/kibana/src/main/resources/README.md
new file mode 100644
index 0000000..0f26b5c
--- /dev/null
+++ b/kibana/src/main/resources/README.md
@@ -0,0 +1,69 @@
+# Kibana
+
+__NOTE__: You have reached the Kibana 3 repository.
+Kibana 3 is a completely new version of Kibana written entirely in HTML and Javascript. You can find
+the Kibana 2 repository at [https://github.com/rashidkpc/Kibana](https://github.com/rashidkpc/Kibana)
+
+More information about Kibana 3 can be found at [http://www.elasticsearch.org/overview/kibana/](http://www.elasticsearch.org/overview/kibana/)
+
+## Overview
+
+Kibana is an open source (Apache Licensed), browser based analytics and search interface to Logstash
+and other timestamped data sets stored in ElasticSearch. With those in place Kibana is a snap to
+setup and start using (seriously). Kibana strives to be easy to get started with, while also being
+flexible and powerful
+
+### Requirements
+* Elasticsearch 0.90.9 or above
+* A modern web browser. The latest version of Chrome, Safari and Firefox have all been tested to
+work. IE9 and greater should work. IE8 does not.
+* A webserver. No extensions are required, as long as it can serve plain html it will work
+* A browser reachable Elasticsearch server. Port 9200 must be open, or a proxy configured to allow
+access to it.
+
+### Docs
+
+Documentation, panel options and tutorials can be found at
+[http://www.elasticsearch.org/guide/en/kibana/current/](http://www.elasticsearch.org/guide/en/kibana/current/)
+
+### Installation
+
+1. Download and extract [http://download.elasticsearch.org/kibana/kibana/kibana-latest.zip](http://download.elasticsearch.org/kibana/kibana/kibana-latest.zip) to your webserver.
+2. Edit config.js in your deployed directory to point to your elasticsearch server. This should __not be
+http://localhost:9200__, but rather the fully qualified domain name of your elasticsearch server.
+The url entered here _must be reachable_ by your browser.
+3. Point your browser at your installation. If you're using Logstash with the default indexing
+configuration the included Kibana logstash interface should work nicely.
+
+### FAQ
+__Q__: Why doesnt it work? I have http://localhost:9200 in my config.js, my webserver and elasticsearch
+server are on the same machine
+__A__: Kibana 3 does not work like previous versions of Kibana. To ease deployment, the server side
+component has been eliminated. Thus __the browser connects directly to Elasticsearch__. The default
+config.js setup works for the webserver+Elasticsearch on the same machine scenario. Do not set it
+to http://localhost:9200 unless your browser and elasticsearch are on the same machine
+
+__Q__: How do I secure this? I don't want to leave 9200 open.
+__A__: A simple nginx virtual host and proxy configuration can be found in the sample/nginx.conf
+
+__Q__: How to run the grunt build process.
+__A__: Steps to follow
+ a)Install node & npm
+ b)npm install -g grunt-cli
+ c)npm install in kibana folder
+ d)grunt build
+
+ Useful links:
+ https://github.com/joyent/node/wiki/Installing-Node.js-via-package-manager
+ https://npmjs.org/doc/install.html
+ http://www.ghosthorses.co.uk/production-diary/installing-grunt-on-os-x-and-windows-7/
+
+### Support
+
+If you have questions or comments the best place to reach me is #logstash or #elasticsearch on irc.freenode.net
+
+### Contributing
+
+Please see [CONTRIBUTING.md](https://github.com/elasticsearch/kibana/blob/master/CONTRIBUTING.md).
+If you have a bugfix or new feature that you would like to contribute to Kibana, **please find or open an issue
+about it first.**
http://git-wip-us.apache.org/repos/asf/karaf-decanter/blob/7560f657/kibana/src/main/resources/WEB-INF/web.xml
----------------------------------------------------------------------
diff --git a/kibana/src/main/resources/WEB-INF/web.xml b/kibana/src/main/resources/WEB-INF/web.xml
new file mode 100644
index 0000000..2849662
--- /dev/null
+++ b/kibana/src/main/resources/WEB-INF/web.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" version="2.5">
+
+ <!--
+
+ 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.
+ -->
+
+ <display-name>Kibana</display-name>
+
+ <welcome-file-list>
+ <welcome-file>index.html</welcome-file>
+ </welcome-file-list>
+
+</web-app>