Skip to content

Commit

Permalink
Merge branch 'master' into issue-81941-delete-sessions-api
Browse files Browse the repository at this point in the history
  • Loading branch information
kibanamachine authored Mar 18, 2021
2 parents 5941367 + 52a1ce1 commit 6e475cb
Show file tree
Hide file tree
Showing 331 changed files with 5,799 additions and 2,051 deletions.
1 change: 0 additions & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@
# Operations
/src/dev/ @elastic/kibana-operations
/src/setup_node_env/ @elastic/kibana-operations
/src/optimize/ @elastic/kibana-operations
/packages/*eslint*/ @elastic/kibana-operations
/packages/*babel*/ @elastic/kibana-operations
/packages/kbn-dev-utils*/ @elastic/kibana-operations
Expand Down
2 changes: 1 addition & 1 deletion api_docs/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -27594,4 +27594,4 @@
}
]
}
}
}
2 changes: 1 addition & 1 deletion api_docs/data_search.json
Original file line number Diff line number Diff line change
Expand Up @@ -19470,4 +19470,4 @@
}
]
}
}
}
35 changes: 10 additions & 25 deletions api_docs/discover.json
Original file line number Diff line number Diff line change
Expand Up @@ -911,21 +911,6 @@
"interfaces": [],
"enums": [],
"misc": [
{
"tags": [],
"id": "def-common.AGGS_TERMS_SIZE_SETTING",
"type": "string",
"label": "AGGS_TERMS_SIZE_SETTING",
"description": [],
"source": {
"path": "src/plugins/discover/common/index.ts",
"lineNumber": 11
},
"signature": [
"\"discover:aggs:terms:size\""
],
"initialIsOpen": false
},
{
"tags": [],
"id": "def-common.CONTEXT_DEFAULT_SIZE_SETTING",
Expand All @@ -934,7 +919,7 @@
"description": [],
"source": {
"path": "src/plugins/discover/common/index.ts",
"lineNumber": 16
"lineNumber": 15
},
"signature": [
"\"context:defaultSize\""
Expand All @@ -949,7 +934,7 @@
"description": [],
"source": {
"path": "src/plugins/discover/common/index.ts",
"lineNumber": 17
"lineNumber": 16
},
"signature": [
"\"context:step\""
Expand All @@ -964,7 +949,7 @@
"description": [],
"source": {
"path": "src/plugins/discover/common/index.ts",
"lineNumber": 18
"lineNumber": 17
},
"signature": [
"\"context:tieBreakerFields\""
Expand Down Expand Up @@ -994,7 +979,7 @@
"description": [],
"source": {
"path": "src/plugins/discover/common/index.ts",
"lineNumber": 14
"lineNumber": 13
},
"signature": [
"\"doc_table:hideTimeColumn\""
Expand All @@ -1009,7 +994,7 @@
"description": [],
"source": {
"path": "src/plugins/discover/common/index.ts",
"lineNumber": 19
"lineNumber": 18
},
"signature": [
"\"doc_table:legacy\""
Expand All @@ -1024,7 +1009,7 @@
"description": [],
"source": {
"path": "src/plugins/discover/common/index.ts",
"lineNumber": 15
"lineNumber": 14
},
"signature": [
"\"fields:popularLimit\""
Expand All @@ -1039,7 +1024,7 @@
"description": [],
"source": {
"path": "src/plugins/discover/common/index.ts",
"lineNumber": 20
"lineNumber": 19
},
"signature": [
"\"discover:modifyColumnsOnSwitch\""
Expand Down Expand Up @@ -1069,7 +1054,7 @@
"description": [],
"source": {
"path": "src/plugins/discover/common/index.ts",
"lineNumber": 21
"lineNumber": 20
},
"signature": [
"\"discover:searchFieldsFromSource\""
Expand All @@ -1084,7 +1069,7 @@
"description": [],
"source": {
"path": "src/plugins/discover/common/index.ts",
"lineNumber": 13
"lineNumber": 12
},
"signature": [
"\"discover:searchOnPageLoad\""
Expand All @@ -1099,7 +1084,7 @@
"description": [],
"source": {
"path": "src/plugins/discover/common/index.ts",
"lineNumber": 12
"lineNumber": 11
},
"signature": [
"\"discover:sort:defaultOrder\""
Expand Down
2 changes: 1 addition & 1 deletion api_docs/expressions.json
Original file line number Diff line number Diff line change
Expand Up @@ -33883,4 +33883,4 @@
}
]
}
}
}
14 changes: 7 additions & 7 deletions api_docs/lens.json
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@
"description": [],
"source": {
"path": "x-pack/plugins/lens/public/indexpattern_datasource/types.ts",
"lineNumber": 72
"lineNumber": 73
},
"signature": [
"Record<string, Pick<",
Expand All @@ -347,7 +347,7 @@
],
"source": {
"path": "x-pack/plugins/lens/public/indexpattern_datasource/types.ts",
"lineNumber": 71
"lineNumber": 72
},
"initialIsOpen": false
},
Expand Down Expand Up @@ -483,7 +483,7 @@
],
"source": {
"path": "x-pack/plugins/lens/public/plugin.ts",
"lineNumber": 88
"lineNumber": 90
},
"signature": [
"React.ComponentType<",
Expand All @@ -509,7 +509,7 @@
],
"source": {
"path": "x-pack/plugins/lens/public/plugin.ts",
"lineNumber": 97
"lineNumber": 99
},
"signature": [
"(input: ",
Expand All @@ -533,7 +533,7 @@
],
"source": {
"path": "x-pack/plugins/lens/public/plugin.ts",
"lineNumber": 101
"lineNumber": 103
},
"signature": [
"() => boolean"
Expand All @@ -542,7 +542,7 @@
],
"source": {
"path": "x-pack/plugins/lens/public/plugin.ts",
"lineNumber": 79
"lineNumber": 81
},
"initialIsOpen": false
},
Expand Down Expand Up @@ -1553,7 +1553,7 @@
"description": [],
"source": {
"path": "x-pack/plugins/lens/public/indexpattern_datasource/types.ts",
"lineNumber": 75
"lineNumber": 76
},
"signature": [
"{ columns: Record<string, IndexPatternColumn>; columnOrder: string[]; incompleteColumns?: Record<string, IncompleteColumn> | undefined; }"
Expand Down
60 changes: 46 additions & 14 deletions docs/apm/correlations.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
=== Find latency and error correlations

**Correlations** surface attributes of your data that are potentially correlated with high-latency or erroneous transactions.
Surfaced attributes are user-defined, meaning that they are completely customizable to your APM data.
By default, a number of attributes commonly known to cause performance issues, like version,
infrastructure, and location, are included, but all are completely customizable to your APM data.
Find something interesting? A quick click of a button will auto-query your data as you work to resolve the underlying issue.

For example, a site reliability engineer, who is responsible for keeping production systems up and running,
notices an increase in latency in certain transactions.
Analyzing metadata or tags that exist in high-latency transactions but not in lower-latency transactions
can potentially point towards the root cause.
They may find that a particular piece of hardware, like a host or pod, has failed, increasing latency.
Or, perhaps a set of users, based on IP address or region, is physically too far away from the nearest
data center, increasing latency.
Or, perhaps set of users, based on IP address or region, is facing increased latency due to local data center issues.

[discrete]
[[view-correlations]]
Expand All @@ -27,8 +27,8 @@ Queries within the APM app apply to the correlations shown in the correlations f

If a correlated field seems noteworthy, use the **Filter** quick links:

* `+` creates a new query in the APM app for transactions containing the selected value.
* `-` creates a new query in the APM app for transactions without the selected value.
* `+` creates a new query in the APM app for filtering transactions containing the selected value.
* `-` creates a new query in the APM app to filter out transactions containing the selected value.

[discrete]
[[correlations-latency]]
Expand All @@ -37,8 +37,9 @@ If a correlated field seems noteworthy, use the **Filter** quick links:
Correlations help you discover which fields are contributing to increased service latency.

A latency distribution chart visualizes the overall latency of the selected service's transactions.
Correlated attributes are sorted by _Impact_–a visual representation of the score for the underlying
aggregation that powers correlations.
Correlated attributes are sorted by _Impact_–a visual representation of the
{ref}/search-aggregations-bucket-significantterms-aggregation.html[significant terms aggregation]
score that powers correlations.
Attributes with a high impact, or attributes present in a large percentage of slow transactions,
may contribute to increased latency.

Expand All @@ -51,19 +52,25 @@ exists primarily in higher-latency transactions between 3.7 and 8.7 seconds.
[role="screenshot"]
image::apm/images/correlations-hover.png[Correlations hover effect]

Selecting the `+` filter creates a new query in the APM app for transactions with
Select the `+` filter to create a new query in the APM app for transactions with
`user_agent.name: HeadlessChrome`. With the "noise" now filtered out,
you can begin viewing sample traces to continue your investigation.

As you sift through high-latency transactions, you'll likely notice other interesting attributes.
Return to the correlations fly-out and select *Customize fields* to search on these new attributes.
You may need to do this a few times–each time filtering out more and more noise and bringing you
closer to a diagnosis.

[discrete]
[[correlations-error-rate]]
==== Find error rate correlations

Correlations help you discover which fields are contributing to failed transactions.

The Error rate over time chart visualizes the change in error rate over the selected time frame.
Correlated attributes are sorted by _Impact_–a visual representation of the score for the underlying
aggregation that powers correlations.
Correlated attributes are sorted by _Impact_–a visual representation of the
{ref}/search-aggregations-bucket-significantterms-aggregation.html[significant terms aggregation]
score that powers correlations.
Attributes with a high impact, or attributes present in a large percentage of failed transactions,
may contribute to increased error rates.

Expand All @@ -76,16 +83,41 @@ existed in 100% of failed transactions between 6:00 and 10:30.
[role="screenshot"]
image::apm/images/error-rate-hover.png[Correlations errors hover effect]

Selecting the `+` filter creates a new query in the APM app for transactions with
Select the `+` filter to create a new query in the APM app for transactions with
`url.original: http://localhost:3100...`. With the "noise" now filtered out,
you can begin viewing sample traces to continue your investigation.

As you sift through erroneous transactions, you'll likely notice other interesting attributes.
Return to the correlations fly-out and select *Customize fields* to search on these new attributes.
You may need to do this a few times–each time filtering out more and more noise and bringing you
closer to a diagnosis.

[discrete]
[[correlations-custom-fields]]
[[correlations-customize-fields]]
==== Customize fields

Correlations are only as good as the data they're searching for.
By default, a handful of potentially useful fields are selected, like `lables`, `service.version`, and `host.ip`.
You can remove and add fields to this list under the **Customize fields** dropdown.
By default, a handful of attributes commonly known to cause performance issues are included.
During the course of an investigation however, you may to need to add and remove fields from
this list multiple times as you narrow in on a diagnosis.

Add and remove fields under the **Customize fields** dropdown.
The following fields are selected by default.
To keep the default list manageable, only the first six matching fields with wildcards are used.

**Frontend (RUM) agent:**

* `labels.*`
* `user.*`
* `user_agent.name`
* `user_agent.os.name`
* `url.original`

**Backend agents:**

* `labels.*`
* `host.ip`
* `service.node.name`
* `service.version`

TIP: Want to start over? Select **reset** to clear your customizations.
2 changes: 1 addition & 1 deletion docs/apm/troubleshooting.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ don't forget to check our other troubleshooting guides or discussion forum:
* {apm-php-ref}/troubleshooting.html[PHP agent troubleshooting]
* {apm-py-ref}/troubleshooting.html[Python agent troubleshooting]
* {apm-ruby-ref}/debugging.html[Ruby agent troubleshooting]
* {apm-rum-ref/troubleshooting.html[RUM troubleshooting]
* {apm-rum-ref}/troubleshooting.html[RUM troubleshooting]
* https://discuss.elastic.co/c/apm[APM discussion forum].

[discrete]
Expand Down
1 change: 1 addition & 0 deletions docs/developer/telemetry.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ To help us provide a good developer experience, we track some straightforward me
The operations we current report timing data for:

* Total execution time of `yarn kbn bootstrap`
* Total execution time of `@kbn/optimizer` runs as well as the following metadata about the runs: The number of bundles created, the number of bundles which were cached, usage of `--watch`, `--dist`, `--workers` and `--no-cache` flags, and the count of themes being built.

Along with the execution time of each execution, we ship the following information about your machine to the service:

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ readonly links: {
readonly luceneExpressions: string;
};
readonly indexPatterns: {
readonly loadingData: string;
readonly introduction: string;
};
readonly addData: string;
Expand Down Expand Up @@ -163,5 +162,6 @@ readonly links: {
readonly ccs: Record<string, string>;
readonly plugins: Record<string, string>;
readonly snapshotRestore: Record<string, string>;
readonly ingest: Record<string, string>;
};
```
Loading

0 comments on commit 6e475cb

Please sign in to comment.