Skip to content

Commit 4f91964

Browse files
authored
[DOCS] Document static monitoring settings (#61748) (#61757)
1 parent 457c824 commit 4f91964

File tree

1 file changed

+123
-137
lines changed

1 file changed

+123
-137
lines changed

docs/reference/settings/monitoring-settings.asciidoc

Lines changed: 123 additions & 137 deletions
Original file line numberDiff line numberDiff line change
@@ -1,139 +1,134 @@
11
[role="xpack"]
22
[[monitoring-settings]]
3-
=== Monitoring settings in Elasticsearch
3+
=== Monitoring settings in {es}
44
++++
55
<titleabbrev>Monitoring settings</titleabbrev>
66
++++
77

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.
1010

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.
1713

1814
To adjust how monitoring data is displayed in the monitoring UI, configure
1915
{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},
2117
configure monitoring settings in `logstash.yml`.
2218

2319
For more information, see <<monitor-elasticsearch-cluster>>.
2420

2521
[discrete]
2622
[[general-monitoring-settings]]
27-
==== General Monitoring Settings
23+
==== General monitoring settings
2824

2925
`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.
3228

3329
[discrete]
3430
[[monitoring-collection-settings]]
35-
==== Monitoring Collection Settings
31+
==== Monitoring collection settings
3632

3733
[[monitoring-settings-description]]
3834
// tag::monitoring-settings-description-tag[]
3935
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.
4237
// end::monitoring-settings-description-tag[]
4338

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.
5044

5145
[[xpack-monitoring-collection-interval]]
5246
// 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.
5751
+
5852
Controls how often data samples are collected. Defaults to `10s`. If you
5953
modify the collection interval, set the `xpack.monitoring.min_interval_seconds`
6054
option in `kibana.yml` to the same value.
6155
// end::monitoring-collection-interval-tag[]
6256

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`.
10095

10196
[[xpack-monitoring-history-duration]]
10297
// 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).
107102
+
108103
--
109104
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.
111109

112-
IMPORTANT: This setting currently only impacts `local`-type exporters. Indices created using
113-
the `http` exporter will not be deleted automatically.
114110
--
115111

116112
// end::monitoring-history-duration-tag[]
117113

118114
`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>>.
126121

127122
[discrete]
128123
[[local-exporter-settings]]
129-
==== Local Exporter Settings
124+
==== Local exporter settings
130125

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.
134129

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.
137132

138133
[source,yaml]
139134
----------------------------------
@@ -142,15 +137,13 @@ xpack.monitoring.exporters.my_local:
142137
----------------------------------
143138

144139
`type`::
145-
146140
The value for a Local exporter must always be `local` and it is required.
147141

148142
`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.
154147

155148
`cluster_alerts.management.enabled`::
156149

@@ -159,13 +152,13 @@ To use this feature, {watcher} must be enabled. If you have a basic license,
159152
cluster alerts are not displayed.
160153

161154
`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`.
165158

166159
[discrete]
167160
[[http-exporter-settings]]
168-
==== HTTP Exporter Settings
161+
==== HTTP exporter settings
169162

170163
The following lists settings that can be supplied with the `http` exporter.
171164
All settings are shown as what follows the name you select for your exporter:
@@ -178,15 +171,15 @@ xpack.monitoring.exporters.my_remote:
178171
----------------------------------
179172

180173
`type`::
181-
182174
The value for an HTTP exporter must always be `http` and it is required.
183175

184176
`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.
190183
+
191184
[source,yaml]
192185
----------------------------------
@@ -206,43 +199,39 @@ xpack.monitoring.exporters:
206199
----------------------------------
207200

208201
`auth.username`::
202+
The username is required if `auth.secure_password` or `auth.password` is
203+
supplied.
209204

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.
215209

216210
`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.
221214

222215
`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`.
226218

227219
`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).
231223

232224
`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>>.
236227

237228
`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.
241231

242232
`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.
246235
+
247236
[source,yaml]
248237
----------------------------------
@@ -252,30 +241,27 @@ xpack.monitoring.exporters.my_remote:
252241
X-My-Header: abc123
253242
----------------------------------
254243
+
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.
258247

259248
`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.
263252

264253
`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.
270258

271259
`cluster_alerts.management.enabled`::
272-
273260
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,
275262
cluster alerts are not displayed.
276263

277264
`cluster_alerts.management.blacklist`::
278-
279265
Prevents the creation of specific cluster alerts. It also removes any applicable
280266
watches that already exist in the current cluster.
281267
+

0 commit comments

Comments
 (0)