Skip to content

Commit 08062cf

Browse files
committed
Merge branch 'master' into alerting/es-query
* master: (56 commits) [i18n] Update CODEOWNERS (elastic#63354) add platform team definition of done (elastic#59993) [SIEM] move away from Joi for importing/exporting timeline (elastic#62125) Fix discover preserve url (elastic#63580) [alerting] Adds an alertServices mock and uses it in siem, monitoring and uptime (elastic#63489) Closes elastic#63109 for Service Map by resetting edges styles for the selected node (elastic#63655) MIgrated index_header to react (elastic#63490) Index pattern management UI -> TypeScript and New Platform Ready (indexed_fields_table) (elastic#63364) [SIEM] [Cases] Insert timeline and reporters/tags in table bug fixes (elastic#63642) [Reporting] Make usable default element positions (elastic#63191) [Reporting] Switch Serverside Config Wrapper to NP (elastic#62500) [Reporting] Add "warning" status as an alternate type of completed job (elastic#63498) Split action types into own page (elastic#63516) [Lens] Only show copy on save for previously saved docs (elastic#63535) Update README.md (elastic#63622) Bugfix clear saved query crashes kibana on Discover in some cases (elastic#63554) Add uptime CODEOWNER entries. (elastic#63616) [ML] Extract apiDoc params from the schema definitions (elastic#62933) Fix alerting documentation encryption key requirement (elastic#63512) Fix CODEOWNERS and sass lint paths (elastic#63552) ...
2 parents 34ac40c + 188ebe8 commit 08062cf

File tree

962 files changed

+16016
-6683
lines changed

Some content is hidden

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

962 files changed

+16016
-6683
lines changed

.eslintrc.js

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ module.exports = {
109109
},
110110
},
111111
{
112-
files: ['x-pack/legacy/plugins/lens/**/*.{js,ts,tsx}'],
112+
files: ['x-pack/plugins/lens/**/*.{js,ts,tsx}'],
113113
rules: {
114114
'react-hooks/exhaustive-deps': 'off',
115115
'react-hooks/rules-of-hooks': 'off',
@@ -536,9 +536,15 @@ module.exports = {
536536
* ML overrides
537537
*/
538538
{
539-
files: ['x-pack/legacy/plugins/ml/**/*.js'],
539+
files: ['x-pack/plugins/ml/**/*.js'],
540540
rules: {
541541
'no-shadow': 'error',
542+
'import/no-extraneous-dependencies': [
543+
'error',
544+
{
545+
packageDir: './x-pack',
546+
},
547+
],
542548
},
543549
},
544550

@@ -728,7 +734,7 @@ module.exports = {
728734
* Lens overrides
729735
*/
730736
{
731-
files: ['x-pack/legacy/plugins/lens/**/*.{ts,tsx}', 'x-pack/plugins/lens/**/*.{ts,tsx}'],
737+
files: ['x-pack/plugins/lens/**/*.{ts,tsx}'],
732738
rules: {
733739
'@typescript-eslint/no-explicit-any': 'error',
734740
},

.github/CODEOWNERS

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@
33
# For more info, see https://help.github.com/articles/about-codeowners/
44

55
# App
6-
/x-pack/legacy/plugins/lens/ @elastic/kibana-app
7-
/x-pack/legacy/plugins/graph/ @elastic/kibana-app
6+
/x-pack/plugins/lens/ @elastic/kibana-app
7+
/x-pack/plugins/graph/ @elastic/kibana-app
88
/src/legacy/server/url_shortening/ @elastic/kibana-app
99
/src/legacy/server/sample_data/ @elastic/kibana-app
1010
/src/legacy/core_plugins/kibana/public/dashboard/ @elastic/kibana-app
1111
/src/legacy/core_plugins/kibana/public/discover/ @elastic/kibana-app
1212
/src/legacy/core_plugins/kibana/public/visualize/ @elastic/kibana-app
1313
/src/legacy/core_plugins/kibana/public/local_application_service/ @elastic/kibana-app
1414
/src/legacy/core_plugins/kibana/public/dev_tools/ @elastic/kibana-app
15-
/src/legacy/core_plugins/metrics/ @elastic/kibana-app
1615
/src/legacy/core_plugins/vis_type_vislib/ @elastic/kibana-app
17-
/src/legacy/core_plugins/vis_type_xy/ @elastic/kibana-app
16+
/src/plugins/vis_type_xy/ @elastic/kibana-app
1817
/src/plugins/kibana_legacy/ @elastic/kibana-app
1918
/src/plugins/timelion/ @elastic/kibana-app
2019
/src/plugins/dashboard/ @elastic/kibana-app
2120
/src/plugins/discover/ @elastic/kibana-app
21+
/src/plugins/vis_type_timeseries/ @elastic/kibana-app
2222

2323
# Core UI
2424
# Exclude tutorials folder for now because they are not owned by Kibana app and most will move out soon
@@ -80,6 +80,8 @@
8080
/x-pack/legacy/plugins/ingest_manager/ @elastic/ingest-management
8181
/x-pack/plugins/observability/ @elastic/logs-metrics-ui @elastic/apm-ui @elastic/uptime @elastic/ingest-management
8282
/x-pack/legacy/plugins/monitoring/ @elastic/stack-monitoring-ui
83+
/x-pack/legacy/plugins/uptime @elastic/uptime
84+
/x-pack/plugins/uptime @elastic/uptime
8385

8486
# Machine Learning
8587
/x-pack/legacy/plugins/ml/ @elastic/ml-ui
@@ -95,6 +97,7 @@
9597

9698
# Maps
9799
/x-pack/legacy/plugins/maps/ @elastic/kibana-gis
100+
/x-pack/plugins/maps/ @elastic/kibana-gis
98101
/x-pack/test/api_integration/apis/maps/ @elastic/kibana-gis
99102
/x-pack/test/functional/apps/maps/ @elastic/kibana-gis
100103
/x-pack/test/functional/es_archives/maps/ @elastic/kibana-gis
@@ -127,7 +130,6 @@
127130
/packages/kbn-config-schema/ @elastic/kibana-platform
128131
/src/legacy/server/config/ @elastic/kibana-platform
129132
/src/legacy/server/http/ @elastic/kibana-platform
130-
/src/legacy/server/i18n/ @elastic/kibana-platform
131133
/src/legacy/server/logging/ @elastic/kibana-platform
132134
/src/legacy/server/saved_objects/ @elastic/kibana-platform
133135
/src/legacy/server/status/ @elastic/kibana-platform
@@ -146,7 +148,10 @@
146148
/x-pack/test/api_integration/apis/security/ @elastic/kibana-security
147149

148150
# Kibana Localization
149-
/src/dev/i18n/ @elastic/kibana-localization
151+
/src/dev/i18n/ @elastic/kibana-localization
152+
/src/legacy/server/i18n/ @elastic/kibana-localization
153+
/src/core/public/i18n/ @elastic/kibana-localization
154+
/packages/kbn-i18n/ @elastic/kibana-localization
150155

151156
# Pulse
152157
/packages/kbn-analytics/ @elastic/pulse

.sass-lint.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,11 @@ files:
88
- 'x-pack/legacy/plugins/security/**/*.s+(a|c)ss'
99
- 'x-pack/legacy/plugins/canvas/**/*.s+(a|c)ss'
1010
- 'x-pack/plugins/triggers_actions_ui/**/*.s+(a|c)ss'
11+
- 'x-pack/plugins/lens/**/*.s+(a|c)ss'
12+
- 'x-pack/legacy/plugins/maps/**/*.s+(a|c)ss'
13+
- 'x-pack/plugins/maps/**/*.s+(a|c)ss'
1114
ignore:
1215
- 'x-pack/legacy/plugins/canvas/shareable_runtime/**/*.s+(a|c)ss'
13-
- 'x-pack/legacy/plugins/lens/**/*.s+(a|c)ss'
14-
- 'x-pack/legacy/plugins/maps/**/*.s+(a|c)ss'
1516
rules:
1617
quotes:
1718
- 2

docs/apm/advanced-queries.asciidoc

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
1+
[role="xpack"]
12
[[advanced-queries]]
2-
=== Advanced queries
3+
=== Query your data
34

4-
When querying in the APM app, you're simply searching and selecting data from fields in Elasticsearch documents.
5-
Queries entered into the query bar are also added as parameters to the URL,
6-
so it's easy to share a specific query or view with others.
7-
8-
You can begin to see some of the transaction fields available for filtering:
9-
10-
[role="screenshot"]
11-
image::apm/images/apm-query-bar.png[Example of the Kibana Query bar in APM app in Kibana]
5+
Querying your APM data is a powerful tool that can make finding bottlenecks in your code even easier.
6+
Imagine you have a user that complains about a slow response time in a specific service.
7+
With the query bar, you can easily filter the APM app to only display trace data for that user,
8+
or, to only show transactions that are slower than a specified time threshold.
129

1310
[float]
1411
==== Example APM app queries
@@ -17,23 +14,32 @@ image::apm/images/apm-query-bar.png[Example of the Kibana Query bar in APM app i
1714
* Filter by response status code: `context.response.status_code >= 400`
1815
* Filter by single user ID: `context.user.id : 12`
1916

17+
When querying in the APM app, you're merely searching and selecting data from fields in Elasticsearch documents.
18+
Queries entered into the query bar are also added as parameters to the URL,
19+
so it's easy to share a specific query or view with others.
20+
21+
When you type, you can begin to see some of the transaction fields available for filtering:
22+
23+
[role="screenshot"]
24+
image::apm/images/apm-query-bar.png[Example of the Kibana Query bar in APM app in Kibana]
25+
2026
TIP: Read the {kibana-ref}/kuery-query.html[Kibana Query Language Enhancements] documentation to learn more about the capabilities of the {kib} query language.
2127

2228
[float]
2329
[[discover-advanced-queries]]
2430
=== Querying in Discover
2531

26-
It may also be helpful to view your APM data in {kibana-ref}/discover.html[*Discover*].
32+
Alternatively, you can query your APM documents in {kibana-ref}/discover.html[*Discover*].
2733
Querying documents in *Discover* works the same way as querying in the APM app,
28-
and all of the example APM app queries can also be used in *Discover*.
34+
and *Discover* supports all of the example APM app queries shown on this page.
2935

3036
[float]
3137
==== Example Discover query
3238

3339
One example where you may want to make use of *Discover*,
3440
is for viewing _all_ transactions for an endpoint, instead of just a sample.
3541

36-
TIP: Starting in v7.6, you can view 10 samples per bucket in the APM app, instead of just one.
42+
TIP: Starting in v7.6, you can view ten samples per bucket in the APM app, instead of just one.
3743

3844
Use the APM app to find a transaction name and time bucket that you're interested in learning more about.
3945
Then, switch to *Discover* and make a search:

docs/apm/agent-configuration.asciidoc

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,45 @@
11
[role="xpack"]
22
[[agent-configuration]]
3-
=== APM Agent configuration
3+
=== APM Agent central configuration
44

5-
APM Agent configuration allows you to fine-tune your agent configuration directly in Kibana.
6-
Best of all, changes are automatically propagated to your APM agents so there's no need to redeploy.
5+
++++
6+
<titleabbrev>Configure APM agents with central config</titleabbrev>
7+
++++
78

8-
To get started, simply choose the services and environments you wish to configure.
9-
The APM app will let you know when your configurations have been applied by your agents.
9+
APM Agent configuration allows you to fine-tune your agent configuration from within the APM app.
10+
Changes are automatically propagated to your APM agents, so there's no need to redeploy.
11+
12+
To get started, choose the services and environments you wish to configure.
13+
The APM app will let you know when your agents have applied your configurations.
1014

1115
[role="screenshot"]
1216
image::apm/images/apm-agent-configuration.png[APM Agent configuration in Kibana]
1317

1418
[float]
1519
==== Precedence
1620

17-
Configurations set with APM Agent configuration take precedence over configurations set locally in the Agent.
21+
Configurations set from the APM app take precedence over configurations set locally in each Agent.
1822
However, if APM Server is slow to respond, is offline, reports an error, etc.,
1923
APM agents will use local defaults until they're able to update the configuration.
20-
For this reason, it is still important to set custom default configurations locally in each of your agents.
24+
For this reason, it is still essential to set custom default configurations locally in each of your agents.
2125

2226
[float]
2327
==== APM Server setup
2428

2529
This feature requires {apm-server-ref}/setup-kibana-endpoint.html[Kibana endpoint configuration] in APM Server.
2630

27-
Why is additional configuration needed in APM Server?
28-
That's because APM Server acts as a proxy between the agents and Kibana.
31+
APM Server acts as a proxy between the agents and Kibana.
2932
Kibana communicates any changed settings to APM Server so that your agents only need to poll APM Server to determine which settings have changed.
3033

3134
[float]
3235
==== Supported configurations
3336

34-
Each Agent has its own list of supported configurations.
37+
Each Agent has a list of supported configurations.
3538
After selecting a Service name and environment in the APM app,
36-
a list of all available configuration options,
39+
a list of all supported configuration options,
3740
including descriptions and default values, will be displayed.
3841

39-
Supported configurations are also marked in each Agent's configuration documentation:
42+
Supported configurations are also tagged with the image:./images/dynamic-config.svg[] badge in each Agent's configuration reference:
4043

4144
[horizontal]
4245
Go Agent:: {apm-go-ref}/configuration.html[Configuration reference]

docs/apm/api.asciidoc

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
[role="xpack"]
22
[[apm-api]]
3-
== API
3+
== APM app API
4+
5+
++++
6+
<titleabbrev>REST API</titleabbrev>
7+
++++
48

59
Some APM app features are provided via a REST API:
610

docs/apm/apm-alerts.asciidoc

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
[role="xpack"]
22
[[apm-alerts]]
3-
=== Create an alert
3+
=== Alerts
4+
5+
++++
6+
<titleabbrev>Create an alert</titleabbrev>
7+
++++
48

59
beta::[]
610

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>>.
11+
The APM app integrates with Kibana's {kibana-ref}/alerting-getting-started.html[alerting and actions] feature.
12+
It provides a set of built-in **actions** and APM specific threshold **alerts** for you to use
13+
and enables central management of all alerts from <<management,Kibana Management>>.
1014

1115
[role="screenshot"]
1216
image::apm/images/apm-alert.png[Create an alert in the APM app]
@@ -28,9 +32,9 @@ This guide creates an alert for the `opbeans-java` service based on the followin
2832
From the APM app, navigate to the `opbeans-java` service and select
2933
**Alerts** > **Create threshold alert** > **Transaction duration**.
3034

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.
35+
`Transaction duration | opbeans-java` is automatically set as the name of the alert,
36+
and `apm` and `service.name:opbeans-java` are added as tags.
37+
It's fine to change the name of the alert, but do not edit the tags.
3438

3539
Based on the alert criteria, define the following alert details:
3640

@@ -42,7 +46,7 @@ Based on the alert criteria, define the following alert details:
4246
* **FOR THE LAST** - `5 minutes`
4347

4448
Select an action type.
45-
Multiple action types can be selected, but in this example we want to post to a slack channel.
49+
Multiple action types can be selected, but in this example, we want to post to a Slack channel.
4650
Select **Slack** > **Create a connector**.
4751
Enter a name for the connector,
4852
and paste the webhook URL.
@@ -63,9 +67,9 @@ This guide creates an alert for the `opbeans-python` service based on the follow
6367
From the APM app, navigate to the `opbeans-python` service and select
6468
**Alerts** > **Create threshold alert** > **Error rate**.
6569

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.
70+
`Error rate | opbeans-python` is automatically set as the name of the alert,
71+
and `apm` and `service.name:opbeans-python` are added as tags.
72+
It's fine to change the name of the alert, but do not edit the tags.
6973

7074
Based on the alert criteria, define the following alert details:
7175

@@ -93,5 +97,5 @@ From this page, you can create, edit, disable, mute, and delete alerts, and crea
9397
See {kibana-ref}/alerting-getting-started.html[alerting and actions] for more information.
9498

9599
NOTE: If you are using an **on-premise** Elastic Stack deployment with security,
96-
TLS must be configured for communication between Elasticsearch and Kibana.
100+
communication between Elasticsearch and Kibana must have TLS configured.
97101
More information is in the alerting {kibana-ref}/alerting-getting-started.html#alerting-setup-prerequisites[prerequisites].

docs/apm/bottlenecks.asciidoc

Lines changed: 0 additions & 25 deletions
This file was deleted.

docs/apm/custom-links.asciidoc

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
1+
[role="xpack"]
12
[[custom-links]]
23
=== Custom links
34

5+
++++
6+
<titleabbrev>Create custom links</titleabbrev>
7+
++++
8+
49
Elastic's custom link feature allows you to easily create up to 500 dynamic links
510
based on your specific APM data.
611
Custom links can be filtered to only appear in the APM app for relevant services,
@@ -12,7 +17,7 @@ Ready to dive in? Jump straight to the <<custom-links-examples,examples>>.
1217
[[custom-links-create]]
1318
=== Create a link
1419

15-
Each custom link consists of a label, url, and optional filter.
20+
Each custom link consists of a label, URL, and optional filter.
1621
The easiest way to create a custom link is from within the actions dropdown in the transaction detail page.
1722
This method will automatically apply filters, scoping the link to that specific service,
1823
environment, transaction type, and transaction name.
@@ -25,8 +30,7 @@ and selecting **Create custom link**.
2530
==== Label
2631

2732
The name of your custom link.
28-
This text will be shown in the actions context menu,
29-
so keep it as short as possible.
33+
The actions context menu displays this text, so keep it as short as possible.
3034

3135
TIP: Custom links are displayed alphabetically in the actions menu.
3236

@@ -39,8 +43,8 @@ URLs support dynamic field name variables, encapsulated in double curly brackets
3943
These variables will be replaced with transaction metadata when the link is clicked.
4044

4145
Because everyone's data is different,
42-
you'll need to examine your own traces to see what metadata is available for use.
43-
The easiest way to do this is to select a trace in the APM app, and click **Metadata** in the **Trace Sample** table.
46+
you'll need to examine your traces to see what metadata is available for use.
47+
To do this, select a trace in the APM app, and click **Metadata** in the **Trace Sample** table.
4448

4549
[role="screenshot"]
4650
image::apm/images/example-metadata.png[Example metadata]
@@ -49,15 +53,15 @@ image::apm/images/example-metadata.png[Example metadata]
4953
[[custom-links-filters]]
5054
==== Filters
5155

52-
Filter each link to only appear so it only appears for specific services or transactions.
56+
Filter each link to only appear for specific services or transactions.
5357
You can filter on the following fields:
5458

5559
* `service.name`
5660
* `service.env`
5761
* `transaction.type`
5862
* `transaction.name`
5963

60-
Multiple values are allowed when comma separated.
64+
Multiple values are allowed when comma-separated.
6165

6266
[float]
6367
[[custom-links-examples]]
@@ -68,7 +72,7 @@ Multiple values are allowed when comma separated.
6872
:github-query-params: https://help.github.com/en/github/managing-your-work-on-github/about-automation-for-issues-and-pull-requests-with-query-parameters
6973

7074
Not sure where to start with custom links?
71-
Take a look at the examples below, and customize them to your liking!
75+
Take a look at the examples below and customize them to your liking!
7276

7377
[float]
7478
[[custom-links-examples-email]]

0 commit comments

Comments
 (0)