Skip to content

Commit cf1b0cd

Browse files
committed
Merge branch 'master' of github.com:elastic/kibana into detection-engine-view-timeline
2 parents 1630791 + 6cac02e commit cf1b0cd

File tree

438 files changed

+11508
-4520
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

438 files changed

+11508
-4520
lines changed

docs/settings/monitoring-settings.asciidoc

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77

88
By default, the Monitoring application is enabled, but data collection
99
is disabled. When you first start {kib} monitoring, you are prompted to
10-
enable data collection. If you are using {security}, you must be
10+
enable data collection. If you are using {security}, you must be
1111
signed in as a user with the `cluster:manage` privilege to enable
1212
data collection. The built-in `superuser` role has this privilege and the
13-
built-in `elastic` user has this role.
13+
built-in `elastic` user has this role.
1414

1515
You can adjust how monitoring data is
1616
collected from {kib} and displayed in {kib} by configuring settings in the
@@ -134,3 +134,11 @@ For {es} clusters that are running in containers, this setting changes the
134134
statistics. It also adds the calculated Cgroup CPU utilization to the
135135
*Node Overview* page instead of the overall operating system's CPU
136136
utilization. Defaults to `false`.
137+
138+
`xpack.monitoring.ui.container.logstash.enabled`::
139+
140+
For {ls} nodes that are running in containers, this setting
141+
changes the {ls} *Node Listing* to display the CPU utilization
142+
based on the reported Cgroup statistics. It also adds the
143+
calculated Cgroup CPU utilization to the {ls} node detail
144+
pages instead of the overall operating system’s CPU utilization. Defaults to `false`.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@
117117
"@elastic/apm-rum": "^4.6.0",
118118
"@elastic/charts": "^16.1.0",
119119
"@elastic/datemath": "5.0.2",
120-
"@elastic/ems-client": "1.0.5",
121-
"@elastic/eui": "17.3.1",
120+
"@elastic/ems-client": "7.6.0",
121+
"@elastic/eui": "18.0.0",
122122
"@elastic/filesaver": "1.1.2",
123123
"@elastic/good": "8.1.1-kibana2",
124124
"@elastic/numeral": "2.3.3",
@@ -163,7 +163,6 @@
163163
"compare-versions": "3.5.1",
164164
"core-js": "^3.2.1",
165165
"css-loader": "2.1.1",
166-
"custom-event-polyfill": "^0.3.0",
167166
"d3": "3.5.17",
168167
"d3-cloud": "1.2.5",
169168
"deep-freeze-strict": "^1.1.1",
@@ -254,6 +253,7 @@
254253
"rison-node": "1.0.2",
255254
"rxjs": "^6.5.3",
256255
"script-loader": "0.7.2",
256+
"seedrandom": "^3.0.5",
257257
"semver": "^5.5.0",
258258
"style-it": "^2.1.3",
259259
"style-loader": "0.23.1",
@@ -365,7 +365,7 @@
365365
"@types/semver": "^5.5.0",
366366
"@types/sinon": "^7.0.13",
367367
"@types/strip-ansi": "^3.0.0",
368-
"@types/styled-components": "^4.4.1",
368+
"@types/styled-components": "^4.4.2",
369369
"@types/supertest": "^2.0.5",
370370
"@types/supertest-as-promised": "^2.0.38",
371371
"@types/testing-library__react": "^9.1.2",

packages/kbn-spec-to-console/lib/convert.js

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,16 @@ const convertParts = require('./convert/parts');
2424

2525
module.exports = spec => {
2626
const result = {};
27-
// TODO:
28-
// Since https://github.com/elastic/elasticsearch/pull/42346 has been merged into ES master
29-
// the JSON doc specification has been updated. We need to update this script to take advantage
30-
// of the added information but it will also require updating console's editor autocomplete.
27+
/**
28+
* TODO:
29+
* Since https://github.com/elastic/elasticsearch/pull/42346 has been merged into ES master
30+
* the JSON doc specification has been updated. We need to update this script to take advantage
31+
* of the added information but it will also require updating console editor autocomplete.
32+
*
33+
* Note: for now we exclude all deprecated patterns from the generated spec to prevent them
34+
* from being used in autocompletion. It would be really nice if we could use this information
35+
* instead of just not including it.
36+
*/
3137
Object.keys(spec).forEach(api => {
3238
const source = spec[api];
3339
if (!source.url) {
@@ -46,8 +52,10 @@ module.exports = spec => {
4652
const urlComponents = {};
4753

4854
if (source.url.paths) {
49-
patterns = convertPaths(source.url.paths);
50-
source.url.paths.forEach(pathsObject => {
55+
// We filter out all deprecated url patterns here.
56+
const paths = source.url.paths.filter(path => !path.deprecated);
57+
patterns = convertPaths(paths);
58+
paths.forEach(pathsObject => {
5159
pathsObject.methods.forEach(method => methodSet.add(method));
5260
if (pathsObject.parts) {
5361
for (const partName of Object.keys(pathsObject.parts)) {

packages/kbn-ui-shared-deps/entry.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
* under the License.
1818
*/
1919

20+
// import global polyfills before everything else
21+
require('./polyfills');
22+
2023
// must load before angular
2124
export const Jquery = require('jquery');
2225
window.$ = window.jQuery = Jquery;

packages/kbn-ui-shared-deps/package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,15 @@
99
"kbn:watch": "node scripts/build --watch"
1010
},
1111
"devDependencies": {
12-
"@elastic/eui": "17.3.1",
12+
"@elastic/eui": "18.0.0",
1313
"@elastic/charts": "^16.1.0",
1414
"@kbn/dev-utils": "1.0.0",
1515
"@yarnpkg/lockfile": "^1.1.0",
16+
"abortcontroller-polyfill": "^1.3.0",
1617
"angular": "^1.7.9",
18+
"core-js": "^3.2.1",
1719
"css-loader": "^2.1.1",
20+
"custom-event-polyfill": "^0.3.0",
1821
"del": "^5.1.0",
1922
"jquery": "^3.4.1",
2023
"mini-css-extract-plugin": "0.8.0",
@@ -24,6 +27,9 @@
2427
"react-intl": "^2.8.0",
2528
"react": "^16.12.0",
2629
"read-pkg": "^5.2.0",
27-
"webpack": "4.41.0"
30+
"regenerator-runtime": "^0.13.3",
31+
"symbol-observable": "^1.2.0",
32+
"webpack": "4.41.0",
33+
"whatwg-fetch": "^3.0.0"
2834
}
2935
}
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
/*
2+
* Licensed to Elasticsearch B.V. under one or more contributor
3+
* license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright
5+
* ownership. Elasticsearch B.V. licenses this file to you under
6+
* the Apache License, Version 2.0 (the "License"); you may
7+
* not use this file except in compliance with the License.
8+
* You may obtain a copy of the License at
9+
*
10+
* http://www.apache.org/licenses/LICENSE-2.0
11+
*
12+
* Unless required by applicable law or agreed to in writing,
13+
* software distributed under the License is distributed on an
14+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15+
* KIND, either express or implied. See the License for the
16+
* specific language governing permissions and limitations
17+
* under the License.
18+
*/
19+
20+
require('core-js/stable');
21+
require('regenerator-runtime/runtime');
22+
require('custom-event-polyfill');
23+
require('whatwg-fetch');
24+
require('abortcontroller-polyfill/dist/polyfill-patch-fetch');
25+
require('./vendor/childnode_remove_polyfill');
26+
require('symbol-observable');

webpackShims/childnode-remove-polyfill.js renamed to packages/kbn-ui-shared-deps/vendor/childnode_remove_polyfill.js

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,4 @@
1-
/*
2-
* Licensed to Elasticsearch B.V. under one or more contributor
3-
* license agreements. See the NOTICE file distributed with
4-
* this work for additional information regarding copyright
5-
* ownership. Elasticsearch B.V. licenses this file to you under
6-
* the Apache License, Version 2.0 (the "License"); you may
7-
* not use this file except in compliance with the License.
8-
* You may obtain a copy of the License at
9-
*
10-
* http://www.apache.org/licenses/LICENSE-2.0
11-
*
12-
* Unless required by applicable law or agreed to in writing,
13-
* software distributed under the License is distributed on an
14-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15-
* KIND, either express or implied. See the License for the
16-
* specific language governing permissions and limitations
17-
* under the License.
18-
*/
1+
/* eslint-disable @kbn/eslint/require-license-header */
192

203
/* @notice
214
* This product bundles childnode-remove which is available under a

src/core/server/config/deprecation/core_deprecations.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,25 @@ const cspRulesDeprecation: ConfigDeprecation = (settings, fromPath, log) => {
9191
return settings;
9292
};
9393

94+
const mapManifestServiceUrlDeprecation: ConfigDeprecation = (settings, fromPath, log) => {
95+
if (has(settings, 'map.manifestServiceUrl')) {
96+
log(
97+
'You should no longer use the map.manifestServiceUrl setting in kibana.yml to configure the location ' +
98+
'of the Elastic Maps Service settings. These settings have moved to the "map.emsTileApiUrl" and ' +
99+
'"map.emsFileApiUrl" settings instead. These settings are for development use only and should not be ' +
100+
'modified for use in production environments.'
101+
);
102+
}
103+
return settings;
104+
};
105+
94106
export const coreDeprecationProvider: ConfigDeprecationProvider = ({
95107
unusedFromRoot,
96108
renameFromRoot,
97109
}) => [
98110
unusedFromRoot('savedObjects.indexCheckTimeout'),
99111
unusedFromRoot('server.xsrf.token'),
112+
unusedFromRoot('maps.manifestServiceUrl'),
100113
renameFromRoot('optimize.lazy', 'optimize.watch'),
101114
renameFromRoot('optimize.lazyPort', 'optimize.watchPort'),
102115
renameFromRoot('optimize.lazyHost', 'optimize.watchHost'),
@@ -110,4 +123,5 @@ export const coreDeprecationProvider: ConfigDeprecationProvider = ({
110123
dataPathDeprecation,
111124
rewriteBasePathDeprecation,
112125
cspRulesDeprecation,
126+
mapManifestServiceUrlDeprecation,
113127
];

src/dev/build/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ The majority of this logic is extracted from the grunt build that has existed fo
4444

4545
We have introduced in our bundle a webpack dll for the client vendor modules in order to improve
4646
the optimization time both in dev and in production. As for those modules we already have the
47-
code into the vendors.bundle.dll.js we have decided to delete those bundled modules from the
47+
code into the vendors_${chunk_number}.bundle.dll.js we have decided to delete those bundled modules from the
4848
distributable node_modules folder. However, in order to accomplish this, we need to exclude
4949
every node_module used in the server side code. This logic is performed
5050
under `nodejs_modules/clean_client_modules_on_dll_task.js`. In case we need to add any new cli

src/dev/build/tasks/nodejs_modules/clean_client_modules_on_dll_task.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,16 @@ export const CleanClientModulesOnDLLTask = {
9898
// Consider this as our whiteList for the modules we can't delete
9999
const whiteListedModules = [...serverDependencies, ...kbnWebpackLoaders, ...manualExceptions];
100100

101-
// Resolve the client vendors dll manifest path
102-
const dllManifestPath = `${baseDir}/built_assets/dlls/vendors.manifest.dll.json`;
101+
// Resolve the client vendors dll manifest paths
102+
// excluding the runtime one
103+
const dllManifestPaths = await globby([
104+
`${baseDir}/built_assets/dlls/vendors_*.manifest.dll.json`,
105+
`!${baseDir}/built_assets/dlls/vendors_runtime.manifest.dll.json`,
106+
]);
103107

104108
// Get dll entries filtering out the ones
105109
// from any whitelisted module
106-
const dllEntries = await getDllEntries(dllManifestPath, whiteListedModules, baseDir);
110+
const dllEntries = await getDllEntries(dllManifestPaths, whiteListedModules, baseDir);
107111

108112
for (const relativeEntryPath of dllEntries) {
109113
const entryPath = `${baseDir}/${relativeEntryPath}`;

0 commit comments

Comments
 (0)