monitoring-settings.asciidoc 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421
  1. [role="xpack"]
  2. [[monitoring-settings]]
  3. === Monitoring settings in {es}
  4. ++++
  5. <titleabbrev>Monitoring settings</titleabbrev>
  6. ++++
  7. // tag::monitoring-deprecation-notice[]
  8. deprecated[7.16, "Using the {es} Monitoring plugin to collect and ship monitoring data is deprecated. {agent} and {metricbeat} are the recommended methods for collecting and shipping monitoring data to a monitoring cluster. If you previously configured legacy collection methods, you should migrate to using <<configuring-elastic-agent,{agent}>> or <<configuring-metricbeat,{metricbeat}>> collection methods."]
  9. // end::monitoring-deprecation-notice[]
  10. By default, {es} {monitor-features} are enabled but data collection is disabled.
  11. To enable data collection, use the `xpack.monitoring.collection.enabled` setting.
  12. Except where noted otherwise, these settings can be dynamically updated on a
  13. live cluster with the <<cluster-update-settings,cluster-update-settings>> API.
  14. To adjust how monitoring data is displayed in the monitoring UI, configure
  15. {kibana-ref}/monitoring-settings-kb.html[`xpack.monitoring` settings] in
  16. `kibana.yml`. To control how monitoring data is collected from {ls},
  17. configure monitoring settings in `logstash.yml`.
  18. For more information, see <<monitor-elasticsearch-cluster>>.
  19. [discrete]
  20. [[general-monitoring-settings]]
  21. ==== General monitoring settings
  22. `xpack.monitoring.enabled`::
  23. deprecated:[7.8.0,Basic License features should always be enabled]
  24. (<<static-cluster-setting,Static>>) This deprecated setting has no effect.
  25. [discrete]
  26. [[monitoring-collection-settings]]
  27. ==== Monitoring collection settings
  28. [[monitoring-settings-description]]
  29. // tag::monitoring-settings-description-tag[]
  30. The `xpack.monitoring.collection` settings control how data is collected from
  31. your {es} nodes.
  32. // end::monitoring-settings-description-tag[]
  33. `xpack.monitoring.collection.enabled`::
  34. (<<cluster-update-settings,Dynamic>>) deprecated:[7.16.0] Set to `true` to enable the collection of
  35. monitoring data. When this setting is `false` (default), {es} monitoring data is
  36. not collected and all monitoring data from other sources such as {kib}, Beats,
  37. and {ls} is ignored.
  38. [[xpack-monitoring-collection-interval]]
  39. // tag::monitoring-collection-interval-tag[]
  40. `xpack.monitoring.collection.interval` {ess-icon}::
  41. deprecated:[6.3.0,"Use `xpack.monitoring.collection.enabled` set to `false` instead."]
  42. (<<cluster-update-settings,Dynamic>>) Setting to `-1` to disable data collection
  43. is no longer supported beginning with 7.0.0.
  44. +
  45. Controls how often data samples are collected. Defaults to `10s`. If you
  46. modify the collection interval, set the `xpack.monitoring.min_interval_seconds`
  47. option in `kibana.yml` to the same value.
  48. // end::monitoring-collection-interval-tag[]
  49. `xpack.monitoring.elasticsearch.collection.enabled`::
  50. (<<cluster-update-settings,Dynamic>>) deprecated:[7.16.0] Controls whether statistics about your
  51. {es} cluster should be collected. Defaults to `true`. This is different from
  52. `xpack.monitoring.collection.enabled`, which allows you to enable or disable all
  53. monitoring collection. However, this setting simply disables the collection of
  54. {es} data while still allowing other data (e.g., {kib}, {ls}, Beats, or APM
  55. Server monitoring data) to pass through this cluster.
  56. `xpack.monitoring.collection.cluster.stats.timeout`::
  57. (<<cluster-update-settings,Dynamic>>) deprecated:[7.16.0] Timeout for collecting the cluster
  58. statistics, in <<time-units,time units>>. Defaults to `10s`.
  59. `xpack.monitoring.collection.node.stats.timeout`::
  60. (<<cluster-update-settings,Dynamic>>) deprecated:[7.16.0] Timeout for collecting the node statistics,
  61. in <<time-units,time units>>. Defaults to `10s`.
  62. `xpack.monitoring.collection.indices`::
  63. (<<cluster-update-settings,Dynamic>>) deprecated:[7.16.0] Controls which indices the
  64. {monitor-features} collect data from. Defaults to all indices. Specify the index
  65. names as a comma-separated list, for example `test1,test2,test3`. Names can
  66. include wildcards, for example `test*`. You can explicitly exclude indices by
  67. prepending `-`. For example `test*,-test3` will monitor all indexes that start
  68. with `test` except for `test3`. System indices like .security* or .kibana*
  69. always start with a `.` and generally should be monitored. Consider adding `.*`
  70. to the list of indices ensure monitoring of system indices. For example:
  71. `.*,test*,-test3`
  72. `xpack.monitoring.collection.index.stats.timeout`::
  73. (<<cluster-update-settings,Dynamic>>) deprecated:[7.16.0] Timeout for collecting index statistics,
  74. in <<time-units,time units>>. Defaults to `10s`.
  75. `xpack.monitoring.collection.index.recovery.active_only`::
  76. (<<cluster-update-settings,Dynamic>>) deprecated:[7.16.0] Controls whether or not all recoveries are
  77. collected. Set to `true` to collect only active recoveries. Defaults to `false`.
  78. `xpack.monitoring.collection.index.recovery.timeout`::
  79. (<<cluster-update-settings,Dynamic>>) deprecated:[7.16.0] Timeout for collecting the recovery
  80. information, in <<time-units,time units>>. Defaults to `10s`.
  81. [[xpack-monitoring-history-duration]]
  82. // tag::monitoring-history-duration-tag[]
  83. `xpack.monitoring.history.duration` {ess-icon}::
  84. (<<cluster-update-settings,Dynamic>>) deprecated:[7.16.0] Retention duration beyond which the
  85. indices created by a monitoring exporter are automatically deleted, in
  86. <<time-units,time units>>. Defaults to `7d` (7 days).
  87. +
  88. --
  89. This setting has a minimum value of `1d` (1 day) to ensure that something is
  90. being monitored and it cannot be disabled.
  91. IMPORTANT: This setting currently impacts only `local`-type exporters. Indices
  92. created using the `http` exporter are not deleted automatically.
  93. --
  94. // end::monitoring-history-duration-tag[]
  95. `xpack.monitoring.exporters`::
  96. (<<static-cluster-setting,Static>>) Configures where the agent stores monitoring
  97. data. By default, the agent uses a local exporter that indexes monitoring data
  98. on the cluster where it is installed. Use an HTTP exporter to send data to a
  99. separate monitoring cluster. For more information, see
  100. <<local-exporter-settings,Local exporter settings>>,
  101. <<http-exporter-settings,HTTP exporter settings>>, and <<how-monitoring-works>>.
  102. [discrete]
  103. [[local-exporter-settings]]
  104. ==== Local exporter settings
  105. The `local` exporter is the default exporter used by {monitor-features}. As the
  106. name is meant to imply, it exports data to the _local_ cluster, which means that
  107. there is not much needed to be configured.
  108. If you do not supply _any_ exporters, then the {monitor-features} automatically
  109. create one for you. If any exporter is provided, then no default is added.
  110. [source,yaml]
  111. ----------------------------------
  112. xpack.monitoring.exporters.my_local:
  113. type: local
  114. ----------------------------------
  115. `type`::
  116. deprecated:[7.16.0] The value for a Local exporter must always be `local` and it is required.
  117. `use_ingest`::
  118. Whether to supply a placeholder pipeline to the cluster and a pipeline processor
  119. with every bulk request. The default value is `true`. If disabled, then it means
  120. that it will not use pipelines, which means that a future release cannot
  121. automatically upgrade bulk requests to future-proof them.
  122. `cluster_alerts.management.enabled`::
  123. deprecated:[7.16.0] Whether to create cluster alerts for this cluster. The default value is `true`.
  124. To use this feature, {watcher} must be enabled. If you have a basic license,
  125. cluster alerts are not displayed.
  126. `wait_master.timeout`::
  127. deprecated:[7.16.0] Time to wait for the master node to setup `local` exporter for monitoring, in
  128. <<time-units,time units>>. After that wait period, the non-master nodes warn the
  129. user for possible missing configuration. Defaults to `30s`.
  130. [discrete]
  131. [[http-exporter-settings]]
  132. ==== HTTP exporter settings
  133. The following lists settings that can be supplied with the `http` exporter.
  134. All settings are shown as what follows the name you select for your exporter:
  135. [source,yaml]
  136. ----------------------------------
  137. xpack.monitoring.exporters.my_remote:
  138. type: http
  139. host: ["host:port", ...]
  140. ----------------------------------
  141. `type`::
  142. deprecated:[7.16.0] The value for an HTTP exporter must always be `http` and it is required.
  143. `host`::
  144. deprecated:[7.16.0] Host supports multiple formats, both as an array or as a single value. Supported
  145. formats include `hostname`, `hostname:port`,
  146. `http://hostname` `http://hostname:port`, `https://hostname`, and
  147. `https://hostname:port`. Hosts cannot be assumed. The default scheme is always
  148. `http` and the default port is always `9200` if not supplied as part of the
  149. `host` string.
  150. +
  151. [source,yaml]
  152. ----------------------------------
  153. xpack.monitoring.exporters:
  154. example1:
  155. type: http
  156. host: "10.1.2.3"
  157. example2:
  158. type: http
  159. host: ["http://10.1.2.4"]
  160. example3:
  161. type: http
  162. host: ["10.1.2.5", "10.1.2.6"]
  163. example4:
  164. type: http
  165. host: ["https://10.1.2.3:9200"]
  166. ----------------------------------
  167. `auth.username`::
  168. deprecated:[7.16.0] The username is required if `auth.secure_password` is supplied.
  169. `auth.secure_password`::
  170. (<<secure-settings,Secure>>, <<reloadable-secure-settings,reloadable>>) deprecated:[7.16.0] The
  171. password for the `auth.username`.
  172. `connection.timeout`::
  173. deprecated:[7.16.0] Amount of time that the HTTP connection is supposed to wait for a socket to open
  174. for the request, in <<time-units,time units>>. The default value is `6s`.
  175. `connection.read_timeout`::
  176. deprecated:[7.16.0] Amount of time that the HTTP connection is supposed to wait for a socket to
  177. send back a response, in <<time-units,time units>>. The default value is
  178. `10 * connection.timeout` (`60s` if neither are set).
  179. `ssl`::
  180. deprecated:[7.16.0] Each HTTP exporter can define its own TLS / SSL settings or inherit them. See
  181. <<ssl-monitoring-settings>>.
  182. `proxy.base_path`::
  183. deprecated:[7.16.0] The base path to prefix any outgoing request, such as `/base/path` (e.g., bulk
  184. requests would then be sent as `/base/path/_bulk`). There is no default value.
  185. `headers`::
  186. deprecated:[7.16.0] Optional headers that are added to every request, which can assist with routing
  187. requests through proxies.
  188. +
  189. [source,yaml]
  190. ----------------------------------
  191. xpack.monitoring.exporters.my_remote:
  192. headers:
  193. X-My-Array: [abc, def, xyz]
  194. X-My-Header: abc123
  195. ----------------------------------
  196. +
  197. Array-based headers are sent `n` times where `n` is the size of the array.
  198. `Content-Type` and `Content-Length` cannot be set. Any headers created by the
  199. monitoring agent will override anything defined here.
  200. `index.name.time_format`::
  201. deprecated:[7.16.0] A mechanism for changing the default date suffix for daily monitoring indices.
  202. The default format is `yyyy.MM.dd`. For example, `.monitoring-es-7-2021.08.26`.
  203. `use_ingest`::
  204. Whether to supply a placeholder pipeline to the monitoring cluster and a
  205. pipeline processor with every bulk request. The default value is `true`. If
  206. disabled, then it means that it will not use pipelines, which means that a
  207. future release cannot automatically upgrade bulk requests to future-proof them.
  208. `cluster_alerts.management.enabled`::
  209. deprecated:[7.16.0] Whether to create cluster alerts for this cluster. The default value is `true`.
  210. To use this feature, {watcher} must be enabled. If you have a basic license,
  211. cluster alerts are not displayed.
  212. `cluster_alerts.management.blacklist`::
  213. deprecated:[7.16.0] Prevents the creation of specific cluster alerts. It also removes any applicable
  214. watches that already exist in the current cluster.
  215. +
  216. --
  217. You can add any of the following watch identifiers to the list of blocked alerts:
  218. * `elasticsearch_cluster_status`
  219. * `elasticsearch_version_mismatch`
  220. * `elasticsearch_nodes`
  221. * `kibana_version_mismatch`
  222. * `logstash_version_mismatch`
  223. * `xpack_license_expiration`
  224. For example: `["elasticsearch_version_mismatch","xpack_license_expiration"]`.
  225. --
  226. [[ssl-monitoring-settings]]
  227. :ssl-prefix: xpack.monitoring.exporters.$NAME
  228. :component: {monitoring}
  229. :verifies:
  230. :server!:
  231. :ssl-context: monitoring
  232. ==== {component} TLS/SSL settings
  233. You can configure the following TLS/SSL settings.
  234. +{ssl-prefix}.ssl.supported_protocols+::
  235. (<<static-cluster-setting,Static>>) deprecated:[7.16.0]
  236. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-supported-protocols]
  237. ifdef::verifies[]
  238. +{ssl-prefix}.ssl.verification_mode+::
  239. (<<static-cluster-setting,Static>>) deprecated:[7.16.0]
  240. Controls the verification of certificates.
  241. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-verification-mode-values]
  242. endif::verifies[]
  243. +{ssl-prefix}.ssl.cipher_suites+::
  244. (<<static-cluster-setting,Static>>) deprecated:[7.16.0]
  245. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-cipher-suites-values]
  246. [#{ssl-context}-tls-ssl-key-trusted-certificate-settings]
  247. ===== {component} TLS/SSL key and trusted certificate settings
  248. The following settings are used to specify a private key, certificate, and the
  249. trusted certificates that should be used when communicating over an SSL/TLS connection.
  250. ifndef::server[]
  251. A private key and certificate are optional and would be used if the server requires client authentication for PKI
  252. authentication.
  253. endif::server[]
  254. ===== PEM encoded files
  255. When using PEM encoded files, use the following settings:
  256. +{ssl-prefix}.ssl.key+::
  257. (<<static-cluster-setting,Static>>) deprecated:[7.16.0]
  258. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-key-pem]
  259. +{ssl-prefix}.ssl.key_passphrase+::
  260. (<<static-cluster-setting,Static>>) deprecated:[7.16.0]
  261. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-key-passphrase]
  262. +{ssl-prefix}.ssl.secure_key_passphrase+::
  263. (<<secure-settings,Secure>>) deprecated:[7.16.0]
  264. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-secure-key-passphrase]
  265. +{ssl-prefix}.ssl.certificate+::
  266. (<<static-cluster-setting,Static>>) deprecated:[7.16.0]
  267. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-certificate]
  268. +{ssl-prefix}.ssl.certificate_authorities+::
  269. (<<static-cluster-setting,Static>>) deprecated:[7.16.0]
  270. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-certificate-authorities]
  271. ===== Java keystore files
  272. When using Java keystore files (JKS), which contain the private key, certificate
  273. and certificates that should be trusted, use the following settings:
  274. +{ssl-prefix}.ssl.keystore.path+::
  275. (<<static-cluster-setting,Static>>) deprecated:[7.16.0]
  276. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-path]
  277. +{ssl-prefix}.ssl.keystore.password+::
  278. (<<static-cluster-setting,Static>>) deprecated:[7.16.0]
  279. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-password]
  280. +{ssl-prefix}.ssl.keystore.secure_password+::
  281. (<<secure-settings,Secure>>) deprecated:[7.16.0]
  282. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-secure-password]
  283. +{ssl-prefix}.ssl.keystore.key_password+::
  284. (<<static-cluster-setting,Static>>) deprecated:[7.16.0]
  285. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-key-password]
  286. +{ssl-prefix}.ssl.keystore.secure_key_password+::
  287. (<<secure-settings,Secure>>) deprecated:[7.16.0]
  288. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-secure-key-password]
  289. +{ssl-prefix}.ssl.truststore.path+::
  290. (<<static-cluster-setting,Static>>) deprecated:[7.16.0]
  291. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-path]
  292. +{ssl-prefix}.ssl.truststore.password+::
  293. (<<static-cluster-setting,Static>>) deprecated:[7.16.0]
  294. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-password]
  295. +{ssl-prefix}.ssl.truststore.secure_password+::
  296. (<<secure-settings,Secure>>) deprecated:[7.16.0]
  297. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-secure-password]
  298. [#{ssl-context}-pkcs12-files]
  299. ===== PKCS#12 files
  300. {es} can be configured to use PKCS#12 container files (`.p12` or `.pfx` files)
  301. that contain the private key, certificate and certificates that should be trusted.
  302. PKCS#12 files are configured in the same way as Java keystore files:
  303. +{ssl-prefix}.ssl.keystore.path+::
  304. (<<static-cluster-setting,Static>>) deprecated:[7.16.0]
  305. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-path]
  306. +{ssl-prefix}.ssl.keystore.type+::
  307. (<<static-cluster-setting,Static>>) deprecated:[7.16.0]
  308. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-type-pkcs12]
  309. +{ssl-prefix}.ssl.keystore.password+::
  310. (<<static-cluster-setting,Static>>) deprecated:[7.16.0]
  311. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-password]
  312. +{ssl-prefix}.ssl.keystore.secure_password+::
  313. (<<secure-settings,Secure>>) deprecated:[7.16.0]
  314. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-secure-password]
  315. +{ssl-prefix}.ssl.keystore.key_password+::
  316. (<<static-cluster-setting,Static>>) deprecated:[7.16.0]
  317. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-key-password]
  318. +{ssl-prefix}.ssl.keystore.secure_key_password+::
  319. (<<secure-settings,Secure>>) deprecated:[7.16.0]
  320. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-keystore-secure-key-password]
  321. +{ssl-prefix}.ssl.truststore.path+::
  322. (<<static-cluster-setting,Static>>) deprecated:[7.16.0]
  323. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-path]
  324. +{ssl-prefix}.ssl.truststore.type+::
  325. (<<static-cluster-setting,Static>>) deprecated:[7.16.0]
  326. Set this to `PKCS12` to indicate that the truststore is a PKCS#12 file.
  327. //TBD:Should this use the ssl-truststore-type definition and default values?
  328. +{ssl-prefix}.ssl.truststore.password+::
  329. (<<static-cluster-setting,Static>>) deprecated:[7.16.0]
  330. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-password]
  331. +{ssl-prefix}.ssl.truststore.secure_password+::
  332. (<<secure-settings,Secure>>) deprecated:[7.16.0]
  333. include::{es-repo-dir}/settings/common-defs.asciidoc[tag=ssl-truststore-secure-password]