diff --git a/MAINTENANCE.md b/MAINTENANCE.md new file mode 100644 index 00000000..f1f8361d --- /dev/null +++ b/MAINTENANCE.md @@ -0,0 +1,20 @@ +# Building download latest.zip + +Any time the configs, the Dockerfile or docker-compose.yml change, run this script to create a new latest.zip file. +This zip file contains only what is needed to run praeco for end users, and is linked to from documentation. + +`./build_download.sh` + +# Updating packages + +Run `npm install` to install latest versions of packages per package.json. + +# Checklist for new prod release + +- Stash all changes in elastalert project +- Create docker image + tag + push to servercentral/elastalert + +- Run tests +- Recreate latest.zip if neccessary +- Stash all changes in this project; make sure in `master` +- Create docker image + tag + push to servercentral/praeco (Drone does this for us) diff --git a/README.md b/README.md index 47a6f348..a696bbd1 100644 --- a/README.md +++ b/README.md @@ -15,8 +15,6 @@ Praeco is an alerting tool for elasticsearch – a GUI for [elastalert](https:// ## Quickstart -If you have an existing elastalert installation, you should edit config/api.config.json and config/elastalert.yaml and change the writeback_index to something unique. - ```bash export PRAECO_ELASTICSEARCH= docker-compose up diff --git a/config/api.config.json b/config/api.config.json index 0f4aecd2..89a632da 100644 --- a/config/api.config.json +++ b/config/api.config.json @@ -16,5 +16,5 @@ }, "es_host": "elasticsearch", "es_port": 9200, - "writeback_index": "elastalert_status" + "writeback_index": "praeco_elastalert_status" } diff --git a/config/elastalert.yaml b/config/elastalert.yaml index 763f8234..4fc641cd 100644 --- a/config/elastalert.yaml +++ b/config/elastalert.yaml @@ -41,7 +41,7 @@ buffer_time: # The index on es_host which is used for metadata storage # This can be a unmapped index, but it is recommended that you run # elastalert-create-index to set a mapping -writeback_index: elastalert_status +writeback_index: praeco_elastalert_status # If an alert fails for some reason, ElastAlert will retry # sending the alert until this time period has elapsed diff --git a/download/latest.zip b/download/latest.zip index cf815296..b8bcec8a 100644 Binary files a/download/latest.zip and b/download/latest.zip differ diff --git a/src/store/configs.js b/src/store/configs.js index 60f06c5d..618ab18a 100644 --- a/src/store/configs.js +++ b/src/store/configs.js @@ -286,10 +286,11 @@ export default { }); if (res.data.created) { + config.is_enabled = false; commit('UPDATED_CONFIG', { path: conf.__praeco_full_path, type: 'rules', - config: conf + config }); return true; } @@ -326,10 +327,11 @@ export default { }); if (res.data.created) { + config.is_enabled = true; commit('UPDATED_CONFIG', { path: conf.__praeco_full_path, type: 'rules', - config: conf + config }); return true; }