Skip to content

Commit 591baef

Browse files
committed
Merge remote-tracking branch 'upstream/master' into fix/EMT-662-host-list-policy-response-link
2 parents d123dc0 + 17e8d18 commit 591baef

639 files changed

Lines changed: 8854 additions & 6205 deletions

File tree

Some content is hidden

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

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -529,6 +529,7 @@ module.exports = {
529529
'x-pack/test_utils/**/*',
530530
'x-pack/gulpfile.js',
531531
'x-pack/plugins/apm/public/utils/testHelpers.js',
532+
'x-pack/plugins/canvas/shareable_runtime/postcss.config.js',
532533
],
533534
rules: {
534535
'import/no-extraneous-dependencies': [
61.1 KB
Loading

docs/apm/machine-learning.asciidoc

Lines changed: 37 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,61 @@
11
[role="xpack"]
22
[[machine-learning-integration]]
3-
=== integration
3+
=== Machine learning integration
44

55
++++
66
<titleabbrev>Integrate with machine learning</titleabbrev>
77
++++
88

9-
The Machine Learning integration initiates a new job predefined to calculate anomaly scores on APM transaction durations.
10-
Jobs can be created per transaction type, and are based on the service's average response time.
9+
The Machine learning integration initiates a new job predefined to calculate anomaly scores on APM transaction durations.
10+
With this integration, you can quickly pinpoint anomalous transactions and see the health of
11+
any upstream and downstream services.
1112

12-
After a machine learning job is created, results are shown in two places:
13+
Machine learning jobs are created per environment, and are based on a service's average response time.
14+
Because jobs are created at the environment level,
15+
you can add new services to your existing environments without the need for additional machine learning jobs.
1316

14-
The transaction duration graph will show the expected bounds and add an annotation when the anomaly score is 75 or above.
17+
After a machine learning job is created, results are shown in two places:
1518

19+
* The transaction duration chart will show the expected bounds and add an annotation when the anomaly score is 75 or above.
20+
+
1621
[role="screenshot"]
1722
image::apm/images/apm-ml-integration.png[Example view of anomaly scores on response times in the APM app]
1823

19-
Service maps will display a color-coded anomaly indicator based on the detected anomaly score.
20-
24+
* Service maps will display a color-coded anomaly indicator based on the detected anomaly score.
25+
+
2126
[role="screenshot"]
2227
image::apm/images/apm-service-map-anomaly.png[Example view of anomaly scores on service maps in the APM app]
2328

2429
[float]
2530
[[create-ml-integration]]
26-
=== Create a new machine learning job
31+
=== Enable anomaly detection
32+
33+
To enable machine learning anomaly detection:
34+
35+
. From the Services overview, Traces overview, or Service Map tab,
36+
select **Anomaly detection**.
37+
38+
. Click **Create ML Job**.
2739

28-
To enable machine learning anomaly detection, first choose a service to monitor.
29-
Then, select **Integrations** > **Enable ML anomaly detection** and click **Create job**.
40+
. Machine learning jobs are created at the environment level.
41+
Select all of the service environments that you want to enable anomaly detection in.
42+
Anomalies will surface for all services and transaction types within the selected environments.
43+
44+
. Click **Create Jobs**.
3045

3146
That's it! After a few minutes, the job will begin calculating results;
32-
it might take additional time for results to appear on your graph.
33-
Jobs can be managed in *Machine Learning jobs management*.
47+
it might take additional time for results to appear on your service maps.
48+
Existing jobs can be managed in *Machine Learning jobs management*.
3449

3550
APM specific anomaly detection wizards are also available for certain Agents.
3651
See the machine learning {ml-docs}/ootb-ml-jobs-apm.html[APM anomaly detection configurations] for more information.
52+
53+
[float]
54+
[[warning-ml-integration]]
55+
=== Anomaly detection warning
56+
57+
To make machine learning as easy as possible to set up,
58+
the APM app will warn you when filtered to an environment without a machine learning job.
59+
60+
[role="screenshot"]
61+
image::apm/images/apm-anomaly-alert.png[Example view of anomaly alert in the APM app]

docs/development/core/server/kibana-plugin-core-server.assistanceapiresponse.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
## AssistanceAPIResponse interface
66

7+
> Warning: This API is now obsolete.
8+
>
9+
>
710
811
<b>Signature:</b>
912

docs/development/core/server/kibana-plugin-core-server.assistantapiclientparams.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
## AssistantAPIClientParams interface
66

7+
> Warning: This API is now obsolete.
8+
>
9+
>
710
811
<b>Signature:</b>
912

docs/development/core/server/kibana-plugin-core-server.deprecationapiclientparams.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
## DeprecationAPIClientParams interface
66

7+
> Warning: This API is now obsolete.
8+
>
9+
>
710
811
<b>Signature:</b>
912

docs/development/core/server/kibana-plugin-core-server.deprecationapiresponse.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
## DeprecationAPIResponse interface
66

7+
> Warning: This API is now obsolete.
8+
>
9+
>
710
811
<b>Signature:</b>
912

docs/development/core/server/kibana-plugin-core-server.deprecationinfo.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
## DeprecationInfo interface
66

7+
> Warning: This API is now obsolete.
8+
>
9+
>
710
811
<b>Signature:</b>
912

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-core-server](./kibana-plugin-core-server.md) &gt; [ElasticsearchClientConfig](./kibana-plugin-core-server.elasticsearchclientconfig.md)
4+
5+
## ElasticsearchClientConfig type
6+
7+
Configuration options to be used to create a [cluster client](./kibana-plugin-core-server.iclusterclient.md) using the [createClient API](./kibana-plugin-core-server.elasticsearchservicestart.createclient.md)
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
export declare type ElasticsearchClientConfig = Pick<ElasticsearchConfig, 'customHeaders' | 'logQueries' | 'sniffOnStart' | 'sniffOnConnectionFault' | 'requestHeadersWhitelist' | 'sniffInterval' | 'hosts' | 'username' | 'password'> & {
13+
pingTimeout?: ElasticsearchConfig['pingTimeout'] | ClientOptions['pingTimeout'];
14+
requestTimeout?: ElasticsearchConfig['requestTimeout'] | ClientOptions['requestTimeout'];
15+
ssl?: Partial<ElasticsearchConfig['ssl']>;
16+
keepAlive?: boolean;
17+
};
18+
```
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
2+
3+
[Home](./index.md) &gt; [kibana-plugin-core-server](./kibana-plugin-core-server.md) &gt; [ElasticsearchServiceStart](./kibana-plugin-core-server.elasticsearchservicestart.md) &gt; [client](./kibana-plugin-core-server.elasticsearchservicestart.client.md)
4+
5+
## ElasticsearchServiceStart.client property
6+
7+
A pre-configured [Elasticsearch client](./kibana-plugin-core-server.iclusterclient.md)
8+
9+
<b>Signature:</b>
10+
11+
```typescript
12+
readonly client: IClusterClient;
13+
```
14+
15+
## Example
16+
17+
18+
```js
19+
const client = core.elasticsearch.client;
20+
21+
```
22+

0 commit comments

Comments
 (0)