You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Extended alerting documentation with information about using Kibana keystore and action types for preconfigured connectors (#65201) (#65599)
* Extended alerting documentation with information about using Kibana keystore and action types for preconfigured connectors
* Fixed due to comments and merged two preconfig pages
* Fixed due to review comments
* Update docs/user/alerting/action-types/index.asciidoc
Co-authored-by: gchaps <[email protected]>
* Fixed due to comments
* -
Co-authored-by: gchaps <[email protected]>
Co-authored-by: gchaps <[email protected]>
Copy file name to clipboardExpand all lines: docs/user/alerting/action-types/pagerduty.asciidoc
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -135,6 +135,29 @@ Name:: The name of the connector. The name is used to identify a connector
135
135
API URL:: An optional PagerDuty event URL. Defaults to `https://events.pagerduty.com/v2/enqueue`. If you are using the <<action-settings, `xpack.actions.whitelistedHosts`>> setting, make sure the hostname is whitelisted.
136
136
Integration Key:: A 32 character PagerDuty Integration Key for an integration on a service, also referred to as the routing key.
137
137
138
+
[float]
139
+
[[Preconfigured-pagerduty-configuration]]
140
+
==== Preconfigured action type
141
+
142
+
[source,text]
143
+
--
144
+
id: 'my-pagerduty'
145
+
name: preconfigured-pagerduty-action-type
146
+
actionTypeId: .pagerduty
147
+
config:
148
+
apiUrl: https://test.host <1.1>
149
+
secrets:
150
+
routingKey: testroutingkey <2.1>
151
+
--
152
+
153
+
`config` defines the action type specific to the configuration and contains the following properties:
154
+
155
+
<1.1> `apiUrl:` is URL string and correspond to *API URL*.
156
+
157
+
`secrets` defines action type sensitive configuration:
158
+
159
+
<2.1> `routingKey:` is a string and correspond to *Integration Key*.
Copy file name to clipboardExpand all lines: docs/user/alerting/action-types/server-log.asciidoc
+11Lines changed: 11 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,6 +12,17 @@ Server log connectors have the following configuration properties:
12
12
13
13
Name:: The name of the connector. The name is used to identify a connector in the management UI connector listing, or in the connector list when configuring an action.
Copy file name to clipboardExpand all lines: docs/user/alerting/action-types/slack.asciidoc
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,24 @@ Slack connectors have the following configuration properties:
13
13
Name:: The name of the connector. The name is used to identify a connector in the management UI connector listing, or in the connector list when configuring an action.
14
14
Webhook URL:: The URL of the incoming webhook. See https://api.slack.com/messaging/webhooks#getting_started[Slack Incoming Webhooks] for instructions on generating this URL. If you are using the <<action-settings, `xpack.actions.whitelistedHosts`>> setting, make sure the hostname is whitelisted.
Copy file name to clipboardExpand all lines: docs/user/alerting/pre-configured-connectors.asciidoc
+60-19Lines changed: 60 additions & 19 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,10 @@
1
1
[role="xpack"]
2
-
[[pre-configured-connectors]]
2
+
[[pre-configured-action-types-and-connectors]]
3
3
4
-
== Preconfigured connectors
4
+
== Preconfigured connectors and action types
5
5
6
-
You can preconfigure an action connector to have all the information it needs prior to startup
6
+
You can preconfigure an action type or a connector to have all the information it needs prior to startup
7
7
by adding it to the `kibana.yml` file.
8
-
Sensitive configuration information, such as credentials, can use the {kib} keystore.
9
8
10
9
Preconfigured connectors offer the following capabilities:
11
10
@@ -14,11 +13,15 @@ action are predefined, including the connector name and ID.
14
13
- Appear in all spaces because they are not saved objects.
15
14
- Cannot be edited or deleted.
16
15
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.
19
+
17
20
[float]
18
21
[[preconfigured-connector-example]]
19
-
=== Example of a preconfigured connector
22
+
=== Creating a preconfigured connector
20
23
21
-
The following example shows a valid configuration 2 out-of-the box connector.
24
+
The following example shows a valid configuration of two out-of-the box connectors: <<slack-action-type, Slack>> and <<webhook-action-type, Webhook>>.
22
25
23
26
```js
24
27
xpack.actions.preconfigured:
@@ -49,26 +52,30 @@ The following example shows a valid configuration 2 out-of-the box connector.
49
52
50
53
[NOTE]
51
54
==============================================
52
-
Sensitive properties, such as passwords, can also be stored in the {kib} keystore.
55
+
Sensitive properties, such as passwords, can also be stored in the <<creating-keystore, {kib} keystore>>.
53
56
==============================================
54
57
55
58
[float]
56
-
[[pre-configured-connector-alert-form]]
57
-
=== Creating an alert with a preconfigured connector
59
+
[[preconfigured-action-type-example]]
60
+
=== Creating a preconfigured action type
58
61
59
-
When attaching an action to an alert,
60
-
select from a list of available action types, and
61
-
then select the Slack or Webhook type. Those action types were configured previously.
62
-
The preconfigured connector is installed and is automatically selected.
62
+
In the `kibana.yml` file:
63
63
64
-
[role="screenshot"]
65
-
image::images/alert-pre-configured-slack-connector.png[Create alert with selected Slack action type]
64
+
. Exclude the action type from `xpack.actions.enabledActionTypes`.
65
+
. Add all its preconfigured connectors.
66
66
67
-
The dropdown is populated with additional preconfigured Slack connectors.
68
-
The `preconfigured` label distinguishes them from space-aware connectors that use saved objects.
67
+
The following example shows a valid configuration of preconfigured action type with one out-of-the box connector.
69
68
70
-
[role="screenshot"]
71
-
image::images/alert-pre-configured-connectors-dropdown.png[Dropdown list with pre-cofigured connectors]
0 commit comments