-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into ingest-node/grok/new-patterns-component-us…
…e-array
- Loading branch information
Showing
1,660 changed files
with
75,981 additions
and
82,441 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Validating CODEOWNERS rules …
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 65 additions & 0 deletions
65
docs/developer/contributing/development-ci-metrics.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
[[ci-metrics]] | ||
== CI Metrics | ||
|
||
In addition to running our tests, CI collects metrics about the Kibana build. These metrics are sent to an external service to track changes over time, and to provide PR authors insights into the impact of their changes. | ||
|
||
|
||
[[ci-metric-types]] | ||
=== Metric types | ||
|
||
|
||
[[ci-metric-types-bundle-size-metrics]] | ||
==== Bundle size | ||
|
||
These metrics help contributors know how they are impacting the size of the bundles Kibana creates, and help make sure that Kibana loads as fast as possible. | ||
|
||
[[ci-metric-page-load-bundle-size]] `page load bundle size` :: | ||
The size of the entry file produced for each bundle/plugin. This file is always loaded on every page load, so it should be as small as possible. To reduce this metric you can put any code that isn't necessary on every page load behind an https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#Dynamic_Imports[`async import()`]. | ||
+ | ||
Code that is shared statically with other plugins will contribute to the `page load bundle size` of that plugin. This includes exports from the `public/index.ts` file and any file referenced by the `extraPublicDirs` manifest property. | ||
|
||
[[ci-metric-async-chunks-size]] `async chunks size` :: | ||
An "async chunk" is created for the files imported by each https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import#Dynamic_Imports[`async import()`] statement. This metric tracks the sum size of these chunks, in bytes, broken down by plugin/bundle id. You can think of this as the amount of code users will have to download if they access all the components/applications within a bundle. | ||
|
||
[[ci-metric-misc-asset-size]] `miscellaneous assets size` :: | ||
A "miscellaneous asset" is anything that isn't an async chunk or entry chunk, often images. This metric tracks the sum size of these assets, in bytes, broken down by plugin/bundle id. | ||
|
||
[[ci-metric-bundle-module-count]] `@kbn/optimizer bundle module count` :: | ||
The number of separate modules included in each bundle/plugin. This is the best indicator we have for how long a specific bundle will take to be built by the `@kbn/optimizer`, so we report it to help people know when they've imported a module which might include a surprising number of sub-modules. | ||
|
||
|
||
[[ci-metric-types-distributable-size]] | ||
==== Distributable size | ||
|
||
The size of the Kibana distributable is an essential metric as it not only contributes to the time it takes to download, but it also impacts time it takes to extract the archive once downloaded. | ||
|
||
There are several metrics that we don't report on PRs because gzip-compression produces different file sizes even when provided the same input, so this metric would regularly show changes even though PR authors hadn't made any relevant changes. | ||
|
||
All metrics are collected from the `tar.gz` archive produced for the linux platform. | ||
|
||
[[ci-metric-distributable-file-count]] `distributable file count` :: | ||
The number of files included in the default distributable. | ||
|
||
[[ci-metric-oss-distributable-file-count]] `oss distributable file count` :: | ||
The number of files included in the OSS distributable. | ||
|
||
[[ci-metric-distributable-size]] `distributable size` :: | ||
The size, in bytes, of the default distributable. _(not reported on PRs)_ | ||
|
||
[[ci-metric-oss-distributable-size]] `oss distributable size` :: | ||
The size, in bytes, of the OSS distributable. _(not reported on PRs)_ | ||
|
||
|
||
[[ci-metric-types-saved-object-field-counts]] | ||
==== Saved Object field counts | ||
|
||
Elasticsearch limits the number of fields in an index to 1000 by default, and we want to avoid raising that limit. | ||
|
||
[[ci-metric-saved-object-field-count]] `Saved Objects .kibana field count` :: | ||
The number of saved object fields broken down by saved object type. | ||
|
||
|
||
[[ci-metric-adding-new-metrics]] | ||
=== Adding new metrics | ||
|
||
You can report new metrics by using the `CiStatsReporter` class provided by the `@kbn/dev-utils` package. This class is automatically configured on CI and its methods noop when running outside of CI. For more details checkout the {kib-repo}blob/{branch}/packages/kbn-dev-utils/src/ci_stats_reporter[`CiStatsReporter` readme]. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
...public/kibana-plugin-core-public.savedobjectsfindoptions.typetonamespacesmap.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!-- Do not edit this file. It is automatically generated by API Documenter. --> | ||
|
||
[Home](./index.md) > [kibana-plugin-core-public](./kibana-plugin-core-public.md) > [SavedObjectsFindOptions](./kibana-plugin-core-public.savedobjectsfindoptions.md) > [typeToNamespacesMap](./kibana-plugin-core-public.savedobjectsfindoptions.typetonamespacesmap.md) | ||
|
||
## SavedObjectsFindOptions.typeToNamespacesMap property | ||
|
||
This map defines each type to search for, and the namespace(s) to search for the type in; this is only intended to be used by a saved object client wrapper. If this is defined, it supersedes the `type` and `namespaces` fields when building the Elasticsearch query. Any types that are not included in this map will be excluded entirely. If a type is included but its value is undefined, the operation will search for that type in the Default namespace. | ||
|
||
<b>Signature:</b> | ||
|
||
```typescript | ||
typeToNamespacesMap?: Map<string, string[] | undefined>; | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.