Skip to content

Commit 17488c2

Browse files
Merge branch 'develop' into 'master'
Develop See merge request bitsensor/front-end/elastalert-kibana-plugin!5
2 parents 653e9a7 + 9bbf0ab commit 17488c2

File tree

5 files changed

+1685
-782
lines changed

5 files changed

+1685
-782
lines changed

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
8.11.4
1+
10.14.1

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
![Showcase](showcase.gif)
1313

1414
## Requirements
15-
- Our [ElastAlert](https://github.com/bitsensor/elastalert) fork
15+
- Our [ElastAlert server](https://github.com/bitsensor/elastalert) fork
1616
- Kibana 6.3.1 or higher
1717

1818
## Installation
19-
Check the [releases](https://github.com/bitsensor/elastalert-kibana-plugin/releases) page to download and install the latest version of this plugin that is compatible with your Kibana version.
19+
Check the [releases](https://github.com/bitsensor/elastalert-kibana-plugin/releases) page to download and install the latest version of this plugin that is compatible with your Kibana version. Please be aware that you will need a running [ElastAlert server](https://github.com/bitsensor/elastalert#installation) to make use of this plugin.
2020

2121
## Configuration
2222
By default the plugin will connect to `localhost:3030`. If your ElastAlert server is running on a different host or port add/change the following options in your `config/kibana.yml` file:

package.json

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
{
22
"name": "elastalert-kibana-plugin",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"description": "Create, test and edit ElastAlert rules within Kibana.",
55
"main": "index.js",
66
"license": "SEE LICENSE IN LICENSE.md",
77
"kibana": {
8-
"version": "6.4.2",
8+
"version": "6.6.0",
99
"templateVersion": "1.0.0"
1010
},
1111
"scripts": {
1212
"preinstall": "node ../../kibana/preinstall_check",
1313
"kbn": "node ../../kibana/scripts/kbn",
14+
"es": "node ../../kibana/scripts/es",
1415
"lint": "eslint .",
1516
"start": "plugin-helpers start",
1617
"test:server": "plugin-helpers test:server",
@@ -21,18 +22,19 @@
2122
"@elastic/eslint-config-kibana": "link:../../kibana/packages/eslint-config-kibana",
2223
"@elastic/eslint-import-resolver-kibana": "link:../../kibana/packages/kbn-eslint-import-resolver-kibana",
2324
"@kbn/plugin-helpers": "link:../../kibana/packages/kbn-plugin-helpers",
24-
"babel-eslint": "^8.0.2",
25-
"eslint": "^4.11.0",
26-
"eslint-plugin-babel": "^4.1.1",
27-
"eslint-plugin-import": "^2.3.0",
28-
"eslint-plugin-jest": "^21.3.2",
29-
"eslint-plugin-mocha": "^4.9.0",
25+
"babel-eslint": "^9.0.0",
26+
"eslint": "^5.6.0",
27+
"eslint-plugin-babel": "^5.2.0",
28+
"eslint-plugin-import": "^2.14.0",
29+
"eslint-plugin-jest": "^21.22.1",
30+
"eslint-plugin-jsx-a11y": "^6.1.2",
31+
"eslint-plugin-mocha": "^5.2.0",
3032
"eslint-plugin-no-unsanitized": "^3.0.2",
3133
"eslint-plugin-prefer-object-spread": "^1.2.1",
32-
"eslint-plugin-react": "^7.0.1",
34+
"eslint-plugin-react": "^7.11.1",
3335
"expect.js": "^0.3.1"
3436
},
3537
"dependencies": {
36-
"@elastic/eui": "^4.2.0"
38+
"@elastic/eui": "^6.8.0"
3739
}
3840
}

server/routes/elastalert.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export default function (server, options) {
1+
export default function(server, options) {
22
const baseUri = `http${options.serverSsl ? 's' : ''}://${options.serverHost}:${options.serverPort}`;
33

44
// Route every request to the ElastAlert API
@@ -7,8 +7,8 @@ export default function (server, options) {
77
method: ['GET', 'POST', 'DELETE'],
88
handler: {
99
proxy: {
10-
mapUri: function (request, callback) {
11-
callback(null, `${baseUri}/${request.params.path || ''}`);
10+
mapUri: request => {
11+
return { uri: `${baseUri}/${request.params.path || ''}` };
1212
}
1313
}
1414
}

0 commit comments

Comments
 (0)