See the kibana contributing guide.
If you would like to run this plugin:
- Clone kibana repo:
git clone https://github.com/elastic/kibana.git
and enter to the repo:cd kibana
- Change branch to version you want to use the plugin with e.g.:
git checkout v8.4.3
- Install nvm if you don't have
- Install node:
nvm install $(cat .nvmrc)
- Configure node:
nvm use $(cat .nvmrc)
- Install yarn if you don't have:
npm install -g yarn
- Run:
yarn kbn clean
- Run:
yarn kbn bootstrap
- Clone this repo into plugins directory by:
git clone https://github.com/Karql/elastalert-kibana-plugin.git ./plugins/elastalert-kibana-plugin
- Configure kibana (
config/kibana.yml
):
server.name: kibana
server.host: 0.0.0.0
elasticsearch.hosts: [ "http://localhost:9200" ]
elastalertKibanaPlugin.serverSsl: false
elastalertKibanaPlugin.serverHost: localhost
elastalertKibanaPlugin.serverPort: 8030
logging.verbose: true
- Run elastic with elastalert. For test purpose you can use:
plugins/elastalert-kibana-plugin/dev/dev-env/docker-compose.yml
by running:
docker-compose -p dev-env -f dev/dev-env/docker-compose.yml up -d
- Run kibana:
yarn start --oss
- Use steps 1-9 from Develompment section.
- Enter the plugin directory
cd plugins/elastalert-kibana-plugin
- Run:
yarn build --kibana-version=8.4.3
- Build plugin can be found in:
plugins/elastalert-kibana-plugin/build/
To test if plugin works correctly with particular kibana version you can use dev/test-env/**/*
- Copy built plugin into
dev/test-env/kibana/plugins/
- Change kibana & plugin version in
dev/test-env/kibana/Dockerfile
- Chagne elastic version in
dev/test-env/docker-compose.yml
- Build
docker-compose -p test-env -f dev/test-env/docker-compose.yml build
- Run
docker-compose -p test-env -f dev/test-env/docker-compose.yml up -d