Skip to content

Commit 7142cbe

Browse files
Merge branch 'master' into fix/uptime/await-query-in-usage-collector
2 parents 62450bb + b5f5284 commit 7142cbe

File tree

109 files changed

+2945
-700
lines changed

Some content is hidden

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

109 files changed

+2945
-700
lines changed

docs/apm/api.asciidoc

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ The following Agent configuration APIs are available:
6060
======
6161

6262
`settings`::
63-
(required) Key/value object with settings and their corresponding value.
63+
(required) Key/value object with option name and option value.
6464

6565
`agent_name`::
6666
(optional) The agent name is used by the UI to determine which settings to display.
@@ -73,14 +73,14 @@ The following Agent configuration APIs are available:
7373
--------------------------------------------------
7474
PUT /api/apm/settings/agent-configuration
7575
{
76-
"service" : {
77-
"name" : "frontend",
78-
"environment" : "production"
76+
"service": {
77+
"name": "frontend",
78+
"environment": "production"
7979
},
80-
"settings" : {
81-
"transaction_sample_rate" : 0.4,
82-
"capture_body" : "off",
83-
"transaction_max_spans" : 500
80+
"settings": {
81+
"transaction_sample_rate": "0.4",
82+
"capture_body": "off",
83+
"transaction_max_spans": "500"
8484
},
8585
"agent_name": "nodejs"
8686
}
@@ -124,7 +124,7 @@ PUT /api/apm/settings/agent-configuration
124124
DELETE /api/apm/settings/agent-configuration
125125
{
126126
"service" : {
127-
"name" : "frontend",
127+
"name": "frontend",
128128
"environment": "production"
129129
}
130130
}
@@ -157,9 +157,9 @@ DELETE /api/apm/settings/agent-configuration
157157
"environment": "production"
158158
},
159159
"settings": {
160-
"transaction_sample_rate": 1,
160+
"transaction_sample_rate": "1",
161161
"capture_body": "off",
162-
"transaction_max_spans": 200
162+
"transaction_max_spans": "200"
163163
},
164164
"@timestamp": 1581934104843,
165165
"applied_by_agent": false,
@@ -171,9 +171,9 @@ DELETE /api/apm/settings/agent-configuration
171171
"name": "opbeans-go"
172172
},
173173
"settings": {
174-
"transaction_sample_rate": 1,
174+
"transaction_sample_rate": "1",
175175
"capture_body": "off",
176-
"transaction_max_spans": 300
176+
"transaction_max_spans": "300"
177177
},
178178
"@timestamp": 1581934111727,
179179
"applied_by_agent": false,
@@ -185,7 +185,7 @@ DELETE /api/apm/settings/agent-configuration
185185
"name": "frontend"
186186
},
187187
"settings": {
188-
"transaction_sample_rate": 1,
188+
"transaction_sample_rate": "1",
189189
},
190190
"@timestamp": 1582031336265,
191191
"applied_by_agent": false,
@@ -250,7 +250,7 @@ GET /api/apm/settings/agent-configuration
250250
"name": "frontend"
251251
},
252252
"settings": {
253-
"transaction_sample_rate": 1,
253+
"transaction_sample_rate": "1",
254254
},
255255
"@timestamp": 1582031336265,
256256
"applied_by_agent": false,
@@ -266,9 +266,9 @@ GET /api/apm/settings/agent-configuration
266266
--------------------------------------------------
267267
POST /api/apm/settings/agent-configuration/search
268268
{
269-
"etag" : "1e58c178efeebae15c25c539da740d21dee422fc",
269+
"etag": "1e58c178efeebae15c25c539da740d21dee422fc",
270270
"service" : {
271-
"name" : "frontend",
271+
"name": "frontend",
272272
"environment": "production"
273273
}
274274
}

docs/canvas/canvas-elements.asciidoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ By default, most of the elements you create use demo data until you change the d
3131
[[canvas-add-object]]
3232
==== Add a saved object
3333

34-
Add a <<managing-saved-objects,saved object>>, such as a map or Lens visualization, then customize it to fit your display needs.
34+
Add a <<managing-saved-objects,saved object>>, then customize it to fit your display needs.
3535

3636
. Click *Embed object*.
3737

docs/user/alerting/action-types.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ see https://www.elastic.co/subscriptions[the subscription page].
4141

4242
[float]
4343
[[create-connectors]]
44-
=== Preconfigured connectors and action types
44+
=== Preconfigured actions and connectors
4545

46-
For out-of-the-box and standardized connectors, you can <<preconfigured-connector-example, preconfigure connectors>>
46+
For out-of-the-box and standardized connectors, you can <<preconfigured-connector-example, preconfigure the connector>>
4747
before {kib} starts.
4848

4949
If you preconfigure a connector, you can also <<preconfigured-action-type-example, preconfigure its action type>>.
@@ -54,4 +54,4 @@ include::action-types/pagerduty.asciidoc[]
5454
include::action-types/server-log.asciidoc[]
5555
include::action-types/slack.asciidoc[]
5656
include::action-types/webhook.asciidoc[]
57-
include::pre-configured-connectors.asciidoc[]
57+
include::action-types/pre-configured-connectors.asciidoc[]

docs/user/alerting/action-types/email.asciidoc

Lines changed: 32 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -28,27 +28,46 @@ Password:: password for 'login' type authentication.
2828
name: preconfigured-email-action-type
2929
actionTypeId: .email
3030
config:
31-
from: [email protected] <1.1>
32-
host: validhostname <1.2>
33-
port: 8080 <1.3>
34-
secure: false <1.4>
31+
32+
host: validhostname
33+
port: 8080
34+
secure: false
3535
secrets:
36-
user: testuser <2.1>
37-
password: passwordkeystorevalue <2.2>
36+
user: testuser
37+
password: passwordkeystorevalue
3838
--
3939

4040
`config` defines the action type specific to the configuration and contains the following properties:
4141

42-
<1.1> `from:` is an email address and correspond to *Sender*.
43-
<1.2> `host:` is a string and correspond to *Host*.
44-
<1.3> `port:` is a number and correspond to *Port*.
45-
<1.4> `secure:` is a boolean and correspond to *Secure*.
42+
[cols="2*<"]
43+
|===
4644

47-
`secrets` defines action type sensitive configuration:
45+
| `from`
46+
| An email address that corresponds to *Sender*.
4847

49-
<2.1> `user:` is a string and correspond to *User*.
50-
<2.2> `password:` is a string and correspond to *Password*. Should be stored in the <<creating-keystore, {kib} keystore>>.
48+
| `host`
49+
| A string that corresponds to *Host*.
5150

51+
| `port`
52+
| A number that corresponds to *Port*.
53+
54+
| `secure`
55+
| A boolean that corresponds to *Secure*.
56+
57+
|===
58+
59+
`secrets` defines sensitive information for the action type:
60+
61+
[cols="2*<"]
62+
|===
63+
64+
| `user`
65+
| A string that corresponds to *User*.
66+
67+
| `password`
68+
| A string that corresponds to *Password*. Should be stored in the <<creating-keystore, {kib} keystore>>.
69+
70+
|===
5271

5372
[[email-action-configuration]]
5473
==== Action configuration

docs/user/alerting/action-types/index.asciidoc

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,16 +25,26 @@ Execution time field:: This field will be automatically set to the time the ale
2525
name: action-type-index
2626
actionTypeId: .index
2727
config:
28-
index: .kibana <1>
29-
refresh: true <2>
30-
executionTimeField: somedate <3>
28+
index: .kibana
29+
refresh: true
30+
executionTimeField: somedate
3131
--
3232

3333
`config` defines the action type specific to the configuration and contains the following properties:
3434

35-
<1> `index:` is a string and correspond to *Index*.
36-
<2> `refresh:` is a boolean and correspond to *Refresh*.
37-
<3> `executionTimeField:` is a string and correspond to *Execution time field*.
35+
[cols="2*<"]
36+
|===
37+
38+
|`index`
39+
| A string that corresponds to *Index*.
40+
41+
|`refresh`
42+
| A boolean that corresponds to *Refresh*.
43+
44+
|`executionTimeField`
45+
| A string that corresponds to *Execution time field*.
46+
47+
|===
3848

3949

4050
[float]

docs/user/alerting/action-types/pagerduty.asciidoc

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,18 +145,19 @@ Integration Key:: A 32 character PagerDuty Integration Key for an integration
145145
name: preconfigured-pagerduty-action-type
146146
actionTypeId: .pagerduty
147147
config:
148-
apiUrl: https://test.host <1.1>
148+
apiUrl: https://test.host
149149
secrets:
150-
routingKey: testroutingkey <2.1>
150+
routingKey: testroutingkey
151151
--
152152

153-
`config` defines the action type specific to the configuration and contains the following properties:
153+
`config` defines the action type specific to the configuration.
154+
`config` contains
155+
`apiURL`, a string that corresponds to *API URL*.
154156

155-
<1.1> `apiUrl:` is URL string and correspond to *API URL*.
157+
`secrets` defines sensitive information for the action type.
158+
`secrets` contains
159+
`routingKey`, a string that corresponds to *Integration Key*.
156160

157-
`secrets` defines action type sensitive configuration:
158-
159-
<2.1> `routingKey:` is a string and correspond to *Integration Key*.
160161

161162
[float]
162163
[[pagerduty-action-configuration]]
Lines changed: 46 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[role="xpack"]
22
[[pre-configured-action-types-and-connectors]]
33

4-
== Preconfigured connectors and action types
4+
=== Preconfigured connectors and action types
55

6-
You can preconfigure an action type or a connector to have all the information it needs prior to startup
6+
You can preconfigure a connector or action type to have all the information it needs prior to startup
77
by adding it to the `kibana.yml` file.
88

99
Preconfigured connectors offer the following capabilities:
@@ -13,15 +13,15 @@ action are predefined, including the connector name and ID.
1313
- Appear in all spaces because they are not saved objects.
1414
- Cannot be edited or deleted.
1515

16-
Sensitive configuration information, such as credentials, can use the <<creating-keystore, {kib} keystore>>.
17-
18-
A preconfigured action types has only preconfigured connectors. Preconfigured connectors can belong to either the preconfigured action type or to the regular action type.
16+
A preconfigured action type has only preconfigured connectors. Preconfigured
17+
connectors can belong to either the preconfigured action type or to the regular action type.
1918

2019
[float]
2120
[[preconfigured-connector-example]]
22-
=== Creating a preconfigured connector
21+
==== Preconfigured connectors
2322

24-
The following example shows a valid configuration of two out-of-the box connectors: <<slack-action-type, Slack>> and <<webhook-action-type, Webhook>>.
23+
This example shows a valid configuration for
24+
two out-of-the box connectors: <<slack-action-type, Slack>> and <<webhook-action-type, Webhook>>.
2525

2626
```js
2727
xpack.actions.preconfigured:
@@ -44,7 +44,7 @@ The following example shows a valid configuration of two out-of-the box connecto
4444
password: changeme
4545
```
4646

47-
<1> the key is the action connector identifier, eg `my-slack1` in this example.
47+
<1> The key is the action connector identifier, `my-slack1` in this example.
4848
<2> `actionTypeId` is the action type identifier.
4949
<3> `name` is the name of the preconfigured connector.
5050
<4> `config` is the action type specific to the configuration.
@@ -55,74 +55,67 @@ The following example shows a valid configuration of two out-of-the box connecto
5555
Sensitive properties, such as passwords, can also be stored in the <<creating-keystore, {kib} keystore>>.
5656
==============================================
5757

58-
[float]
59-
[[preconfigured-action-type-example]]
60-
=== Creating a preconfigured action type
61-
62-
In the `kibana.yml` file:
63-
64-
. Exclude the action type from `xpack.actions.enabledActionTypes`.
65-
. Add all its preconfigured connectors.
66-
67-
The following example shows a valid configuration of preconfigured action type with one out-of-the box connector.
68-
69-
```js
70-
xpack.actions.enabledActionTypes: ['.slack', '.email', '.index'] <1>
71-
xpack.actions.preconfigured: <2>
72-
my-server-log:
73-
actionTypeId: .server-log
74-
name: 'Server log #xyz'
75-
```
76-
77-
<1> `enabledActionTypes` should exclude preconfigured action type to prevent creating and deleting connectors.
78-
<2> `preconfigured` is the setting for defining the list of available connectors for the preconfigured action type.
79-
58+
////
8059
[float]
8160
[[managing-pre-configured-connectors]]
82-
=== Managing preconfigured connectors
61+
==== View preconfigured connectors
62+
////
8363

84-
Preconfigured connectors appear in the connector list, regardless of which space the user is in.
85-
They are tagged as “preconfigured” and cannot be deleted.
64+
In *Management > Alerts and Actions*, preconfigured connectors
65+
appear in the <<connector-management, *Connectors* tab>>,
66+
regardless of which space you are in.
67+
They are tagged as “preconfigured”, and you cannot delete them.
8668

8769
[role="screenshot"]
8870
image::images/pre-configured-connectors-managing.png[Connectors managing tab with pre-cofigured]
8971

90-
Clicking on a preconfigured connector shows the description, but not any of the configuration.
72+
Clicking a preconfigured connector shows the description, but not the configuration.
9173
A message indicates that this is a preconfigured connector.
9274

9375
[role="screenshot"]
9476
image::images/pre-configured-connectors-view-screen.png[Pre-configured connector view details]
9577

96-
The connector details preview is disabled for preconfigured connectors.
78+
The connector details preview is disabled for preconfigured connectors
79+
of a preconfigured action type.
9780

9881
[role="screenshot"]
9982
image::images/pre-configured-action-type-managing.png[Connectors managing tab with pre-cofigured]
10083

101-
10284
[float]
103-
[[managing-pre-configured-action-types]]
104-
=== Managing preconfigured action types
85+
[[preconfigured-action-type-example]]
86+
==== Preconfigured action type
10587

106-
Clicking *Create connector* shows the list of available action types.
107-
Disabled action types are not included.
88+
This example shows a preconfigured action type with one out-of-the box connector.
10889

109-
[role="screenshot"]
110-
image::images/pre-configured-action-type-select-type.png[Pre-configured connector create menu]
90+
```js
91+
xpack.actions.enabledActionTypes: ['.slack', '.email', '.index'] <1>
92+
xpack.actions.preconfigured: <2>
93+
my-server-log:
94+
actionTypeId: .server-log
95+
name: 'Server log #xyz'
96+
```
11197

112-
[float]
113-
[[pre-configured-connector-alert-form]]
114-
=== Alert with a preconfigured connector
98+
<1> `enabledActionTypes` excludes the preconfigured action type to prevent creating and deleting connectors.
99+
<2> `preconfigured` is the setting for defining the list of available connectors for the preconfigured action type.
115100

116-
When attaching an action to an alert,
117-
select from a list of available action types, and
118-
then select the Slack or Webhook type. Those action types were configured previously.
119-
The preconfigured connector is installed and is automatically selected.
101+
[[managing-pre-configured-action-types]]
102+
To attach a preconfigured action to an alert:
120103

121-
[role="screenshot"]
122-
image::images/alert-pre-configured-slack-connector.png[Create alert with selected Slack action type]
104+
. In *Management > Alerts and Actions*, open the *Connectors* tab.
123105

124-
The dropdown is populated with additional preconfigured Slack connectors.
125-
The `preconfigured` label distinguishes them from space-aware connectors that use saved objects.
106+
. Click *Create connector.*
126107

108+
. In the list of available action types, select the preconfigured action type you want.
109+
+
110+
[role="screenshot"]
111+
image::images/pre-configured-action-type-select-type.png[Pre-configured connector create menu]
112+
113+
. In *Create alert*, open the connector dropdown, and then select the preconfigured
114+
connector.
115+
+
116+
The `preconfigured` label distinguishes it from a space-aware connector.
117+
+
127118
[role="screenshot"]
128119
image::images/alert-pre-configured-connectors-dropdown.png[Dropdown list with pre-cofigured connectors]
120+
121+
. Click *Add action*.

0 commit comments

Comments
 (0)