Skip to content

Commit 75fe882

Browse files
committed
Merge branch 'alerting/alert-services-mock' into alerting/es-query
* alerting/alert-services-mock: (107 commits) removed unused import added alert services mock and use it in siem [Metrics UI] Refactor With* containers to hooks (elastic#59503) [NP] Migrate logstash server side code to NP (elastic#63135) Clicking cancel in saved query save modal doesn't close it (elastic#62774) [Lens] Migration from 7.7 (elastic#62879) [Lens] Fix bug where suggestions didn't use filters (elastic#63293) Task/linux events (elastic#63400) [Remote clusters] guard against usageCollection plugin if unav… (elastic#63284) [Uptime] Remove pings graphql (elastic#59392) Index Pattern Field class - factor out copy_field code for future typescripting (elastic#63083) [EPM] add/remove package in package settings page (elastic#63389) Adjust API authorization logging (elastic#63350) Revert FTR: add chromium-based Edge browser support (elastic#61684) (elastic#63448) [Event Log] Adds namespace into save objects (elastic#62974) document code splitting for client code (elastic#62593) Escape single quotes surrounded by double quotes (elastic#63229) [Endpoint] Update cli mapping to match endpoint package (elastic#63372) update in-app links to metricbeat configuration docs (elastic#63295) investigation notes field (documentation / metadata) (elastic#63386) ...
2 parents a3ae104 + 6276786 commit 75fe882

File tree

1,548 files changed

+35837
-35733
lines changed

Some content is hidden

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

1,548 files changed

+35837
-35733
lines changed

.github/CODEOWNERS

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
/src/plugins/console/ @elastic/es-ui
181181
/src/plugins/es_ui_shared/ @elastic/es-ui
182182
/x-pack/legacy/plugins/cross_cluster_replication/ @elastic/es-ui
183-
/x-pack/legacy/plugins/index_lifecycle_management/ @elastic/es-ui
183+
/x-pack/plugins/index_lifecycle_management/ @elastic/es-ui
184184
/x-pack/legacy/plugins/index_management/ @elastic/es-ui
185185
/x-pack/legacy/plugins/license_management/ @elastic/es-ui
186186
/x-pack/legacy/plugins/rollup/ @elastic/es-ui
@@ -202,7 +202,8 @@
202202
# Endpoint
203203
/x-pack/plugins/endpoint/ @elastic/endpoint-app-team
204204
/x-pack/test/api_integration/apis/endpoint/ @elastic/endpoint-app-team
205-
/x-pack/test/functional/apps/endpoint/ @elastic/endpoint-app-team
205+
/x-pack/test/functional_endpoint/ @elastic/endpoint-app-team
206+
/x-pack/test/functional_endpoint_ingest_failure/ @elastic/endpoint-app-team
206207
/x-pack/test/functional/es_archives/endpoint/ @elastic/endpoint-app-team
207208

208209
# SIEM

.i18nrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
"src/legacy/core_plugins/management",
2525
"src/plugins/management"
2626
],
27+
"maps_legacy": "src/plugins/maps_legacy",
2728
"indexPatternManagement": "src/plugins/index_pattern_management",
2829
"advancedSettings": "src/plugins/advanced_settings",
2930
"kibana_legacy": "src/plugins/kibana_legacy",

docs/api/saved-objects/bulk_create.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ The API returns the following:
104104
"type": "dashboard",
105105
"error": {
106106
"statusCode": 409,
107-
"message": "version conflict, document already exists"
107+
"message": "Saved object [dashboard/be3733a0-9efe-11e7-acb3-3dab96693fab] conflict"
108108
}
109109
}
110110
]

docs/apm/apm-alerts.asciidoc

Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
[role="xpack"]
2+
[[apm-alerts]]
3+
=== Create an alert
4+
5+
beta::[]
6+
7+
The APM app is integrated with Kibana's {kibana-ref}/alerting-getting-started.html[alerting and actions] feature.
8+
It provides a set of built-in **actions** and APM specific threshold **alerts** for you to use,
9+
and allows all alerts to be centrally managed from <<management,Kibana Management>>.
10+
11+
[role="screenshot"]
12+
image::apm/images/apm-alert.png[Create an alert in the APM app]
13+
14+
There are two different types of threshold alerts: transaction duration, and error rate.
15+
Below, we'll create one of each.
16+
17+
[float]
18+
[[apm-create-transaction-alert]]
19+
=== Create a transaction duration alert
20+
21+
This guide creates an alert for the `opbeans-java` service based on the following criteria:
22+
23+
* Transaction type: `transaction.type:request`
24+
* Average request is above `1500ms` for the last 5 minutes
25+
* Check every 10 minutes, and repeat the alert every 30 minutes
26+
* Send the alert via Slack
27+
28+
From the APM app, navigate to the `opbeans-java` service and select
29+
**Alerts** > **Create threshold alert** > **Transaction duration**.
30+
31+
The name of your alert will automatically be set as `Transaction duration | opbeans-java`,
32+
and the alert will be tagged with `apm` and `service.name:opbeans-java`.
33+
Feel free to edit either of these defaults.
34+
35+
Based on the alert criteria, define the following alert details:
36+
37+
* **Check every** - `10 minutes`
38+
* **Notify every** - `30 minutes`
39+
* **TYPE** - `request`
40+
* **WHEN** - `avg`
41+
* **IS ABOVE** - `1500ms`
42+
* **FOR THE LAST** - `5 minutes`
43+
44+
Select an action type.
45+
Multiple action types can be selected, but in this example we want to post to a slack channel.
46+
Select **Slack** > **Create a connector**.
47+
Enter a name for the connector,
48+
and paste the webhook URL.
49+
See Slack's webhook documentation if you need to create one.
50+
51+
Select **Save**. The alert has been created and is now active!
52+
53+
[float]
54+
[[apm-create-error-alert]]
55+
=== Create an error rate alert
56+
57+
This guide creates an alert for the `opbeans-python` service based on the following criteria:
58+
59+
* Error rate is above 25 for the last minute
60+
* Check every 1 minute, and repeat the alert every 10 minutes
61+
* Send the alert via email to the `opbeans-python` team
62+
63+
From the APM app, navigate to the `opbeans-python` service and select
64+
**Alerts** > **Create threshold alert** > **Error rate**.
65+
66+
The name of your alert will automatically be set as `Error rate | opbeans-python`,
67+
and the alert will be tagged with `apm` and `service.name:opbeans-python`.
68+
Feel free to edit either of these defaults.
69+
70+
Based on the alert criteria, define the following alert details:
71+
72+
* **Check every** - `1 minute`
73+
* **Notify every** - `10 minutes`
74+
* **IS ABOVE** - `25 errors`
75+
* **FOR THE LAST** - `1 minute`
76+
77+
Select the **Email** action type and click **Create a connector**.
78+
Fill out the required details: sender, host, port, etc., and click **save**.
79+
80+
Select **Save**. The alert has been created and is now active!
81+
82+
[float]
83+
[[apm-alert-manage]]
84+
=== Manage alerts and actions
85+
86+
From the APM app, select **Alerts** > **View active alerts** to be taken to the Kibana alerts and actions management page.
87+
From this page, you can create, edit, disable, mute, and delete alerts, and create, edit, and disable connectors.
88+
89+
[float]
90+
[[apm-alert-more-info]]
91+
=== More information
92+
93+
See {kibana-ref}/alerting-getting-started.html[alerting and actions] for more information.
94+
95+
NOTE: If you are using an **on-premise** Elastic Stack deployment with security,
96+
TLS must be configured for communication between Elasticsearch and Kibana.
97+
More information is in the alerting {kibana-ref}/alerting-getting-started.html#alerting-setup-prerequisites[prerequisites].

docs/apm/images/apm-alert.png

643 KB
Loading

docs/apm/spans.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ which indicates the next transaction in the trace.
3434
These transactions can be expanded and viewed in detail by clicking on them.
3535

3636
After exploring these traces,
37-
you can return to the full trace by clicking *View full trace* in the upper right hand corner of the page.
37+
you can return to the full trace by clicking *View full trace*.

docs/apm/transactions.asciidoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,7 @@ image::apm/images/apm-transaction-duration-dist.png[Example view of transactions
105105

106106
This graph shows a typical distribution, and indicates most of our requests were served quickly - awesome!
107107
It's the requests on the right, the ones taking longer than average, that we probably want to focus on.
108+
108109
When you select one of these buckets,
109110
you're presented with up to ten trace samples.
110111
Each sample has a span timeline waterfall that shows what a typical request in that bucket was doing.

docs/apm/using-the-apm-ui.asciidoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ APM is available via the navigation sidebar in {Kib}.
1515
* <<spans>>
1616
* <<errors>>
1717
* <<metrics>>
18+
* <<apm-alerts>>
1819
* <<machine-learning-integration>>
1920
* <<agent-configuration>>
2021
* <<advanced-queries>>
@@ -37,6 +38,8 @@ include::errors.asciidoc[]
3738

3839
include::metrics.asciidoc[]
3940

41+
include::apm-alerts.asciidoc[]
42+
4043
include::agent-configuration.asciidoc[]
4144

4245
include::custom-links.asciidoc[]

docs/canvas/canvas-share-workpad.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ After you've added the workpad to your website, you can change the autoplay and
7676

7777
To change the autoplay settings:
7878

79-
. In the lower right corner of the shareable workpad, click the settings icon.
79+
. Click the settings icon.
8080

8181
. Click *Auto Play*, then change the settings.
8282
+
@@ -85,7 +85,7 @@ image::images/canvas_share_autoplay_480.gif[Autoplay settings]
8585

8686
To change the toolbar settings:
8787

88-
. In the lower right corner, click the settings icon.
88+
. Click the settings icon.
8989

9090
. Click *Toolbar*, then change the settings.
9191
+

docs/canvas/canvas-tutorial.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Your first step to working with Canvas is to create a workpad.
1818

1919
. Click *Create workpad*.
2020

21-
. To add a *Name* for your workpad, use the editor on the right. For example, `My Canvas Workpad`.
21+
. To add a *Name* for your workpad, use the editor. For example, `My Canvas Workpad`.
2222

2323
[float]
2424
=== Customize your workpad with images
@@ -29,7 +29,7 @@ To customize your workpad to look the way you want, add your own images.
2929
+
3030
The default Elastic logo image appears on your page.
3131

32-
. To replace the Elastic logo with your own image, select the image, then use the editor on the right.
32+
. To replace the Elastic logo with your own image, select the image, then use the editor.
3333

3434
. To move the image, click and drag it to your preferred location.
3535

@@ -73,7 +73,7 @@ You'll notice that the error is gone, but the number could use some formatting.
7373

7474
. To format the number, use the Canvas expression language.
7575

76-
.. In the lower right corner, click *Expression editor*.
76+
.. Click *Expression editor*.
7777
+
7878
You're now looking at the raw data syntax that Canvas uses to display the element.
7979

0 commit comments

Comments
 (0)