d5375d914d
Highights of the Changes: - What was previously the editor is now input - Editor is now SenseEditor, a (somewhat) generic class that inherits from AceEditor and mixes in RowParser. will eventually be used by the output as well - input is an instance of SenseEditor that has an autocomplete object at `input.autocomplete` - Moved all network/sendToES logic into the app module - History no longer does any manipulation of the input, that is handled by the app (reduces inter module dependencies) - help popup and welcome popup are now seperate modules - welcome popup is not loaded unless needed - SenseEditor#getCurrentRequestRange and SenseEditor#getCurrentRequest are now async, and will return their value once tokenization has completed. - Replaced "Copy as cURL" functionality, using ZeroClipboard for now. |
||
---|---|---|
dashboards | ||
exporter | ||
panels/stats_table | ||
sense | ||
tasks | ||
.gitignore | ||
.jshintrc | ||
config.js | ||
CONTRIBUTING.md | ||
Gruntfile.js | ||
LICENSE.txt | ||
NOTICE.txt | ||
package.json | ||
README.md |
Grunt build system
This grunt-based build system handles Kibana development environment setup for Marvel as well as building, packaging and distribution of the Marvel plugin. Note that you must run grunt setup before any other tasks as this build system reuses parts of the Kibana build system that must be fetched
Installing
You will need node.js+npm and grunt. Node is available via brew, install grunt with the command below. Once grunt is installed you may run grunt tasks to setup your environment and build Marvel
npm install -g grunt
npm install
Tasks
grunt setup
Run this first. It will download the right Kibana version to ./vendor/kibana, copies the appropriate config.js to the right place and make any symlinks needed for a proper marvel/kibana environment
grunt server
Starts a web server on http://127.0.0.1:5601 pointing at the kibana directory, while also serving custom marvel panels.
You can use grunt server --port=5601 --es_host=9200
to control the ports used for kibana and the elasticsearch port used.
grunt jshint
Lints code without building
grunt build
Merges kibana and marvel code, builds Kibana and the plugin (via mvn) and puts them in ./build.
grunt package
Zips and tar+gzips the build in ./packages. Includes grunt build
grunt release
Uploads created archives to download.elasticsearch.org/elasticsearch/marvel/marvel-VERSION.extention. You will need S3 credentials in .aws-config.json. Format as so:
{
"key":"MY_KEY_HERE",
"secret":"your/long/secret/string"
}