1
1
[role="xpack"]
2
2
[[monitoring-settings]]
3
- === Monitoring settings in Elasticsearch
3
+ === Monitoring settings in {es}
4
4
++++
5
5
<titleabbrev>Monitoring settings</titleabbrev>
6
6
++++
7
7
8
- By default, monitoring is enabled but data collection is disabled. To enable
9
- data collection, use the `xpack.monitoring.collection.enabled` setting.
8
+ By default, {es} {monitor-features} are enabled but data collection is disabled.
9
+ To enable data collection, use the `xpack.monitoring.collection.enabled` setting.
10
10
11
- You can configure these monitoring settings in the `elasticsearch.yml` file. You
12
- can also dynamically set some of these settings using the
13
- <<cluster-update-settings,cluster update settings API>>.
14
-
15
- TIP: Cluster settings take precedence over settings in the `elasticsearch.yml`
16
- file.
11
+ Except where noted otherwise, these settings can be dynamically updated on a
12
+ live cluster with the <<cluster-update-settings,cluster-update-settings>> API.
17
13
18
14
To adjust how monitoring data is displayed in the monitoring UI, configure
19
15
{kibana-ref}/monitoring-settings-kb.html[`xpack.monitoring` settings] in
20
- `kibana.yml`. To control how monitoring data is collected from Logstash ,
16
+ `kibana.yml`. To control how monitoring data is collected from {ls} ,
21
17
configure monitoring settings in `logstash.yml`.
22
18
23
19
For more information, see <<monitor-elasticsearch-cluster>>.
24
20
25
21
[discrete]
26
22
[[general-monitoring-settings]]
27
- ==== General Monitoring Settings
23
+ ==== General monitoring settings
28
24
29
25
`xpack.monitoring.enabled`::
30
- deprecated:[7.8.0,Basic License features should always be enabled] +
31
- This deprecated setting has no effect.
26
+ deprecated:[7.8.0,Basic License features should always be enabled]
27
+ (<<static-cluster-setting,Static>>) This deprecated setting has no effect.
32
28
33
29
[discrete]
34
30
[[monitoring-collection-settings]]
35
- ==== Monitoring Collection Settings
31
+ ==== Monitoring collection settings
36
32
37
33
[[monitoring-settings-description]]
38
34
// tag::monitoring-settings-description-tag[]
39
35
The `xpack.monitoring.collection` settings control how data is collected from
40
- your Elasticsearch nodes. You can dynamically change all monitoring collection
41
- settings using the <<cluster-update-settings,cluster update settings API>>.
36
+ your {es} nodes.
42
37
// end::monitoring-settings-description-tag[]
43
38
44
- `xpack.monitoring.collection.enabled` (<<cluster-update-settings,Dynamic>>)::
45
-
46
- added[6.3.0] Set to `true` to enable the collection of monitoring data. When
47
- this setting is `false` (default), {es} monitoring data is not collected and
48
- all monitoring data from other sources such as {kib}, Beats, and Logstash is
49
- ignored.
39
+ `xpack.monitoring.collection.enabled`::
40
+ (<<cluster-update-settings,Dynamic>>) Set to `true` to enable the collection of
41
+ monitoring data. When this setting is `false` (default), {es} monitoring data is
42
+ not collected and all monitoring data from other sources such as {kib}, Beats,
43
+ and {ls} is ignored.
50
44
51
45
[[xpack-monitoring-collection-interval]]
52
46
// tag::monitoring-collection-interval-tag[]
53
- `xpack.monitoring.collection.interval` (<<cluster-update-settings,Dynamic>>) {ess-icon}::
54
-
55
- Setting to `-1` to disable data collection is no longer supported beginning with
56
- 7.0.0. deprecated[6.3.0, Use `xpack.monitoring.collection.enabled` set to `false` instead.]
47
+ `xpack.monitoring.collection.interval` {ess-icon}::
48
+ deprecated:[6.3.0,"Use `xpack.monitoring.collection.enabled` set to `false` instead."]
49
+ (<<cluster-update-settings,Dynamic>>) Setting to `-1` to disable data collection
50
+ is no longer supported beginning with 7.0.0.
57
51
+
58
52
Controls how often data samples are collected. Defaults to `10s`. If you
59
53
modify the collection interval, set the `xpack.monitoring.min_interval_seconds`
60
54
option in `kibana.yml` to the same value.
61
55
// end::monitoring-collection-interval-tag[]
62
56
63
- `xpack.monitoring.elasticsearch.collection.enabled` (<<cluster-update-settings,Dynamic>>)::
64
-
65
- Controls whether statistics about your {es} cluster should be collected. Defaults to `true`.
66
- This is different from xpack.monitoring.collection.enabled, which allows you to enable or disable
67
- all monitoring collection. However, this setting simply disables the collection of Elasticsearch
68
- data while still allowing other data (e.g., Kibana, Logstash, Beats, or APM Server monitoring data)
69
- to pass through this cluster.
70
-
71
- `xpack.monitoring.collection.cluster.stats.timeout` (<<cluster-update-settings,Dynamic>>)::
72
-
73
- (<<time-units,time value>>) Timeout for collecting the cluster statistics. Defaults to `10s`.
74
-
75
- `xpack.monitoring.collection.node.stats.timeout` (<<cluster-update-settings,Dynamic>>)::
76
-
77
- (<<time-units,time value>>) Timeout for collecting the node statistics. Defaults to `10s`.
78
-
79
- `xpack.monitoring.collection.indices` (<<cluster-update-settings,Dynamic>>)::
80
-
81
- Controls which indices Monitoring collects data from. Defaults to all indices. Specify the index names
82
- as a comma-separated list, for example `test1,test2,test3`. Names can include wildcards, for
83
- example `test*`. You can explicitly exclude indices by prepending `-`. For example `test*,-test3` will
84
- monitor all indexes that start with `test` except for `test3`. System indices like .security* or .kibana*
85
- always start with a `.`, and generally should be monitored. Consider adding `.*` to the list of indices
86
- ensure monitoring of system indices. For example `.*,test*,-test3`
87
-
88
- `xpack.monitoring.collection.index.stats.timeout` (<<cluster-update-settings,Dynamic>>)::
89
-
90
- (<<time-units,time value>>) Timeout for collecting index statistics. Defaults to `10s`.
91
-
92
- `xpack.monitoring.collection.index.recovery.active_only` (<<cluster-update-settings,Dynamic>>)::
93
-
94
- Controls whether or not all recoveries are collected. Set to `true` to
95
- collect only active recoveries. Defaults to `false`.
96
-
97
- `xpack.monitoring.collection.index.recovery.timeout` (<<cluster-update-settings,Dynamic>>)::
98
-
99
- (<<time-units,time value>>) Timeout for collecting the recovery information. Defaults to `10s`.
57
+ `xpack.monitoring.elasticsearch.collection.enabled`::
58
+ (<<cluster-update-settings,Dynamic>>) Controls whether statistics about your
59
+ {es} cluster should be collected. Defaults to `true`. This is different from
60
+ `xpack.monitoring.collection.enabled`, which allows you to enable or disable all
61
+ monitoring collection. However, this setting simply disables the collection of
62
+ {es} data while still allowing other data (e.g., {kib}, {ls}, Beats, or APM
63
+ Server monitoring data) to pass through this cluster.
64
+
65
+ `xpack.monitoring.collection.cluster.stats.timeout`::
66
+ (<<cluster-update-settings,Dynamic>>) Timeout for collecting the cluster
67
+ statistics, in <<time-units,time units>>. Defaults to `10s`.
68
+
69
+ `xpack.monitoring.collection.node.stats.timeout`::
70
+ (<<cluster-update-settings,Dynamic>>) Timeout for collecting the node statistics,
71
+ in <<time-units,time units>>. Defaults to `10s`.
72
+
73
+ `xpack.monitoring.collection.indices`::
74
+ (<<cluster-update-settings,Dynamic>>) Controls which indices the
75
+ {monitor-features} collect data from. Defaults to all indices. Specify the index
76
+ names as a comma-separated list, for example `test1,test2,test3`. Names can
77
+ include wildcards, for example `test*`. You can explicitly exclude indices by
78
+ prepending `-`. For example `test*,-test3` will monitor all indexes that start
79
+ with `test` except for `test3`. System indices like .security* or .kibana*
80
+ always start with a `.` and generally should be monitored. Consider adding `.*`
81
+ to the list of indices ensure monitoring of system indices. For example:
82
+ `.*,test*,-test3`
83
+
84
+ `xpack.monitoring.collection.index.stats.timeout`::
85
+ (<<cluster-update-settings,Dynamic>>) Timeout for collecting index statistics,
86
+ in <<time-units,time units>>. Defaults to `10s`.
87
+
88
+ `xpack.monitoring.collection.index.recovery.active_only`::
89
+ (<<cluster-update-settings,Dynamic>>) Controls whether or not all recoveries are
90
+ collected. Set to `true` to collect only active recoveries. Defaults to `false`.
91
+
92
+ `xpack.monitoring.collection.index.recovery.timeout`::
93
+ (<<cluster-update-settings,Dynamic>>) Timeout for collecting the recovery
94
+ information, in <<time-units,time units>>. Defaults to `10s`.
100
95
101
96
[[xpack-monitoring-history-duration]]
102
97
// tag::monitoring-history-duration-tag[]
103
- `xpack.monitoring.history.duration` (<<cluster-update-settings,Dynamic>>) {ess-icon}::
104
-
105
- (<<time-units,time value>>) Retention duration beyond which the indices created by a Monitoring
106
- exporter are automatically deleted . Defaults to `7d` (7 days).
98
+ `xpack.monitoring.history.duration` {ess-icon}::
99
+ (<<cluster-update-settings,Dynamic>>) Retention duration beyond which the
100
+ indices created by a monitoring exporter are automatically deleted, in
101
+ <<time-units,time units>> . Defaults to `7d` (7 days).
107
102
+
108
103
--
109
104
This setting has a minimum value of `1d` (1 day) to ensure that something is
110
- being monitored, and it cannot be disabled.
105
+ being monitored and it cannot be disabled.
106
+
107
+ IMPORTANT: This setting currently impacts only `local`-type exporters. Indices
108
+ created using the `http` exporter are not deleted automatically.
111
109
112
- IMPORTANT: This setting currently only impacts `local`-type exporters. Indices created using
113
- the `http` exporter will not be deleted automatically.
114
110
--
115
111
116
112
// end::monitoring-history-duration-tag[]
117
113
118
114
`xpack.monitoring.exporters`::
119
-
120
- Configures where the agent stores monitoring data. By default, the agent uses a
121
- local exporter that indexes monitoring data on the cluster where it is installed.
122
- Use an HTTP exporter to send data to a separate monitoring cluster. For more
123
- information, see <<local-exporter-settings,Local exporter settings>>,
124
- <<http-exporter-settings,HTTP exporter settings>>, and
125
- <<how-monitoring-works>>.
115
+ (<<static-cluster-setting,Static>>) Configures where the agent stores monitoring
116
+ data. By default, the agent uses a local exporter that indexes monitoring data
117
+ on the cluster where it is installed. Use an HTTP exporter to send data to a
118
+ separate monitoring cluster. For more information, see
119
+ <<local-exporter-settings,Local exporter settings>>,
120
+ <<http-exporter-settings,HTTP exporter settings>>, and <<how-monitoring-works>>.
126
121
127
122
[discrete]
128
123
[[local-exporter-settings]]
129
- ==== Local Exporter Settings
124
+ ==== Local exporter settings
130
125
131
- The `local` exporter is the default exporter used by Monitoring . As the name is
132
- meant to imply, it exports data to the _local_ cluster, which means that there
133
- is not much needed to be configured.
126
+ The `local` exporter is the default exporter used by {monitor-features} . As the
127
+ name is meant to imply, it exports data to the _local_ cluster, which means that
128
+ there is not much needed to be configured.
134
129
135
- If you do not supply _any_ exporters, then Monitoring will automatically create
136
- one for you. If any exporter is provided, then no default is added.
130
+ If you do not supply _any_ exporters, then the {monitor-features} automatically
131
+ create one for you. If any exporter is provided, then no default is added.
137
132
138
133
[source,yaml]
139
134
----------------------------------
@@ -142,15 +137,13 @@ xpack.monitoring.exporters.my_local:
142
137
----------------------------------
143
138
144
139
`type`::
145
-
146
140
The value for a Local exporter must always be `local` and it is required.
147
141
148
142
`use_ingest`::
149
-
150
- Whether to supply a placeholder pipeline to the cluster and a pipeline processor with
151
- every bulk request. The default value is `true`. If disabled, then it means that it will not
152
- use pipelines, which means that a future release cannot automatically upgrade bulk requests
153
- to future-proof them.
143
+ Whether to supply a placeholder pipeline to the cluster and a pipeline processor
144
+ with every bulk request. The default value is `true`. If disabled, then it means
145
+ that it will not use pipelines, which means that a future release cannot
146
+ automatically upgrade bulk requests to future-proof them.
154
147
155
148
`cluster_alerts.management.enabled`::
156
149
@@ -159,13 +152,13 @@ To use this feature, {watcher} must be enabled. If you have a basic license,
159
152
cluster alerts are not displayed.
160
153
161
154
`wait_master.timeout`::
162
-
163
- ( <<time-units,time value>>) Time to wait for the master node to setup `local` exporter for monitoring.
164
- After that, the non-master nodes will warn the user for possible missing X-Pack configuration. Defaults to `30s`.
155
+ Time to wait for the master node to setup `local` exporter for monitoring, in
156
+ <<time-units,time units>>. After that wait period, the non- master nodes warn the
157
+ user for possible missing configuration. Defaults to `30s`.
165
158
166
159
[discrete]
167
160
[[http-exporter-settings]]
168
- ==== HTTP Exporter Settings
161
+ ==== HTTP exporter settings
169
162
170
163
The following lists settings that can be supplied with the `http` exporter.
171
164
All settings are shown as what follows the name you select for your exporter:
@@ -178,15 +171,15 @@ xpack.monitoring.exporters.my_remote:
178
171
----------------------------------
179
172
180
173
`type`::
181
-
182
174
The value for an HTTP exporter must always be `http` and it is required.
183
175
184
176
`host`::
185
-
186
- Host supports multiple formats, both as an array or as a single value. Supported formats include
187
- `hostname`, `hostname:port`, `http://hostname` `http://hostname:port`, `https://hostname`, and
188
- `https://hostname:port`. Hosts cannot be assumed. The default scheme is always `http` and the default
189
- port is always `9200` if not supplied as part of the `host` string.
177
+ Host supports multiple formats, both as an array or as a single value. Supported
178
+ formats include `hostname`, `hostname:port`,
179
+ `http://hostname` `http://hostname:port`, `https://hostname`, and
180
+ `https://hostname:port`. Hosts cannot be assumed. The default scheme is always
181
+ `http` and the default port is always `9200` if not supplied as part of the
182
+ `host` string.
190
183
+
191
184
[source,yaml]
192
185
----------------------------------
@@ -206,43 +199,39 @@ xpack.monitoring.exporters:
206
199
----------------------------------
207
200
208
201
`auth.username`::
202
+ The username is required if `auth.secure_password` or `auth.password` is
203
+ supplied.
209
204
210
- The username is required if `auth.secure_password` or `auth.password` is supplied.
211
-
212
- `auth.secure_password` (<<secure-settings,Secure>>, <<reloadable-secure-settings,reloadable>>)::
213
-
214
- The password for the `auth.username`. Takes precedence over `auth.password` if it is also specified.
205
+ `auth.secure_password`::
206
+ (<<secure-settings,Secure>>, <<reloadable-secure-settings,reloadable>>) The
207
+ password for the `auth.username`. Takes precedence over `auth.password` if it is
208
+ also specified.
215
209
216
210
`auth.password`::
217
-
218
- The password for the `auth.username`. If `auth.secure_password` is also specified, this setting is ignored.
219
-
220
- deprecated[7.7.0, Use `auth.secure_password` instead.]
211
+ deprecated:[7.7.0,"Use `auth.secure_password` instead."] The password for the
212
+ `auth.username`. If `auth.secure_password` is also specified, this setting is
213
+ ignored.
221
214
222
215
`connection.timeout`::
223
-
224
- (<<time-units,time value>>) Amount of time that the HTTP connection is supposed to wait for a socket to open for the
225
- request. The default value is `6s`.
216
+ Amount of time that the HTTP connection is supposed to wait for a socket to open
217
+ for the request, in <<time-units,time units>>. The default value is `6s`.
226
218
227
219
`connection.read_timeout`::
228
-
229
- ( <<time-units,time value>>) Amount of time that the HTTP connection is supposed to wait for a socket to
230
- send back a response. The default value is `10 * connection.timeout` (`60s` if neither are set).
220
+ Amount of time that the HTTP connection is supposed to wait for a socket to
221
+ send back a response, in <<time-units,time units>>. The default value is
222
+ `10 * connection.timeout` (`60s` if neither are set).
231
223
232
224
`ssl`::
233
-
234
- Each HTTP exporter can define its own TLS / SSL settings or inherit them. See the
235
- <<ssl-monitoring-settings, TLS / SSL section below>>.
225
+ Each HTTP exporter can define its own TLS / SSL settings or inherit them. See
226
+ <<ssl-monitoring-settings>>.
236
227
237
228
`proxy.base_path`::
238
-
239
- The base path to prefix any outgoing request, such as `/base/path` (e.g., bulk requests would
240
- then be sent as `/base/path/_bulk`). There is no default value.
229
+ The base path to prefix any outgoing request, such as `/base/path` (e.g., bulk
230
+ requests would then be sent as `/base/path/_bulk`). There is no default value.
241
231
242
232
`headers`::
243
-
244
- Optional headers that are added to every request, which can assist with routing requests through
245
- proxies.
233
+ Optional headers that are added to every request, which can assist with routing
234
+ requests through proxies.
246
235
+
247
236
[source,yaml]
248
237
----------------------------------
@@ -252,30 +241,27 @@ xpack.monitoring.exporters.my_remote:
252
241
X-My-Header: abc123
253
242
----------------------------------
254
243
+
255
- Array-based headers are sent `n` times where `n` is the size of the array. `Content-Type`
256
- and `Content-Length` cannot be set. Any headers created by the Monitoring agent will override
257
- anything defined here.
244
+ Array-based headers are sent `n` times where `n` is the size of the array.
245
+ `Content-Type` and `Content-Length` cannot be set. Any headers created by the
246
+ monitoring agent will override anything defined here.
258
247
259
248
`index.name.time_format`::
260
-
261
- A mechanism for changing the default date suffix for the, by default, daily Monitoring indices.
262
- The default value is `yyyy.MM.dd`, which is why the indices are created daily.
249
+ A mechanism for changing the default date suffix for the, by default, daily
250
+ monitoring indices. The default value is `yyyy.MM.dd`, which is why the indices
251
+ are created daily.
263
252
264
253
`use_ingest`::
265
-
266
- Whether to supply a placeholder pipeline to the monitoring cluster and a pipeline processor with
267
- every bulk request. The default value is `true`. If disabled, then it means that it will not
268
- use pipelines, which means that a future release cannot automatically upgrade bulk requests
269
- to future-proof them.
254
+ Whether to supply a placeholder pipeline to the monitoring cluster and a
255
+ pipeline processor with every bulk request. The default value is `true`. If
256
+ disabled, then it means that it will not use pipelines, which means that a
257
+ future release cannot automatically upgrade bulk requests to future-proof them.
270
258
271
259
`cluster_alerts.management.enabled`::
272
-
273
260
Whether to create cluster alerts for this cluster. The default value is `true`.
274
- To use this feature, {watcher} must be enabled. If you have a basic license,
261
+ To use this feature, {watcher} must be enabled. If you have a basic license,
275
262
cluster alerts are not displayed.
276
263
277
264
`cluster_alerts.management.blacklist`::
278
-
279
265
Prevents the creation of specific cluster alerts. It also removes any applicable
280
266
watches that already exist in the current cluster.
281
267
+
0 commit comments