2018-04-20 21:13:37 +02:00
|
|
|
|
[role="xpack"]
|
|
|
|
|
[[monitoring-settings-kb]]
|
2019-02-11 18:50:20 +01:00
|
|
|
|
=== Monitoring settings in Kibana
|
2018-04-20 21:13:37 +02:00
|
|
|
|
++++
|
2019-02-11 18:50:20 +01:00
|
|
|
|
<titleabbrev>Monitoring settings</titleabbrev>
|
2018-04-20 21:13:37 +02:00
|
|
|
|
++++
|
|
|
|
|
|
2018-05-31 17:16:31 +02:00
|
|
|
|
By default, the Monitoring application is enabled, but data collection
|
2018-11-19 14:14:38 +01:00
|
|
|
|
is disabled. When you first start {kib} monitoring, you are prompted to
|
2020-01-15 01:17:27 +01:00
|
|
|
|
enable data collection. If you are using {security}, you must be
|
2018-11-19 14:14:38 +01:00
|
|
|
|
signed in as a user with the `cluster:manage` privilege to enable
|
|
|
|
|
data collection. The built-in `superuser` role has this privilege and the
|
2020-01-15 01:17:27 +01:00
|
|
|
|
built-in `elastic` user has this role.
|
2018-05-31 17:16:31 +02:00
|
|
|
|
|
|
|
|
|
You can adjust how monitoring data is
|
2018-04-20 21:13:37 +02:00
|
|
|
|
collected from {kib} and displayed in {kib} by configuring settings in the
|
2020-01-30 21:24:41 +01:00
|
|
|
|
`kibana.yml` file. There are also `monitoring.ui.elasticsearch.*` settings,
|
2018-04-20 21:13:37 +02:00
|
|
|
|
which support the same values as <<settings,{kib} configuration settings>>.
|
|
|
|
|
|
|
|
|
|
To control how data is collected from your {es} nodes, you configure
|
|
|
|
|
{ref}/monitoring-settings.html[`xpack.monitoring.collection`
|
|
|
|
|
settings] in `elasticsearch.yml`. To control how monitoring data is collected
|
2020-03-17 21:12:36 +01:00
|
|
|
|
from Logstash, configure monitoring settings in `logstash.yml`.
|
2018-04-20 21:13:37 +02:00
|
|
|
|
|
|
|
|
|
For more information, see
|
2019-10-18 00:19:14 +02:00
|
|
|
|
{ref}/monitor-elasticsearch-cluster.html[Monitor a cluster].
|
2018-04-20 21:13:37 +02:00
|
|
|
|
|
|
|
|
|
[float]
|
|
|
|
|
[[monitoring-general-settings]]
|
2019-02-11 18:50:20 +01:00
|
|
|
|
==== General monitoring settings
|
2018-04-20 21:13:37 +02:00
|
|
|
|
|
2020-05-04 17:48:29 +02:00
|
|
|
|
[cols="2*<"]
|
|
|
|
|
|===
|
|
|
|
|
| `monitoring.enabled`
|
|
|
|
|
| Set to `true` (default) to enable the {monitor-features} in {kib}. Unlike the
|
|
|
|
|
`monitoring.ui.enabled` setting, when this setting is `false`, the
|
|
|
|
|
monitoring back-end does not run and {kib} stats are not sent to the monitoring
|
|
|
|
|
cluster.
|
|
|
|
|
|
|
|
|
|
| `monitoring.ui.elasticsearch.hosts`
|
|
|
|
|
| Specifies the location of the {es} cluster where your monitoring data is stored.
|
|
|
|
|
By default, this is the same as `elasticsearch.hosts`. This setting enables
|
|
|
|
|
you to use a single {kib} instance to search and visualize data in your
|
|
|
|
|
production cluster as well as monitor data sent to a dedicated monitoring
|
|
|
|
|
cluster.
|
|
|
|
|
|
|
|
|
|
| `monitoring.ui.elasticsearch.username`
|
|
|
|
|
| Specifies the username used by {kib} monitoring to establish a persistent connection
|
|
|
|
|
in {kib} to the {es} monitoring cluster and to verify licensing status on the {es}
|
|
|
|
|
monitoring cluster. +
|
|
|
|
|
+
|
|
|
|
|
Every other request performed by the Stack Monitoring UI to the monitoring {es}
|
|
|
|
|
cluster uses the authenticated user's credentials, which must be the same on
|
|
|
|
|
both the {es} monitoring cluster and the {es} production cluster. +
|
|
|
|
|
+
|
|
|
|
|
If not set, {kib} uses the value of the `elasticsearch.username` setting.
|
|
|
|
|
|
|
|
|
|
| `monitoring.ui.elasticsearch.password`
|
|
|
|
|
| Specifies the password used by {kib} monitoring to establish a persistent connection
|
|
|
|
|
in {kib} to the {es} monitoring cluster and to verify licensing status on the {es}
|
|
|
|
|
monitoring cluster. +
|
|
|
|
|
+
|
|
|
|
|
Every other request performed by the Stack Monitoring UI to the monitoring {es}
|
|
|
|
|
cluster uses the authenticated user's credentials, which must be the same on
|
|
|
|
|
both the {es} monitoring cluster and the {es} production cluster. +
|
|
|
|
|
+
|
|
|
|
|
If not set, {kib} uses the value of the `elasticsearch.password` setting.
|
|
|
|
|
|
|
|
|
|
| `monitoring.ui.elasticsearch.pingTimeout`
|
|
|
|
|
| Specifies the time in milliseconds to wait for {es} to respond to internal
|
|
|
|
|
health checks. By default, it matches the `elasticsearch.pingTimeout` setting,
|
|
|
|
|
which has a default value of `30000`.
|
|
|
|
|
|
|
|
|
|
|===
|
2018-04-20 21:13:37 +02:00
|
|
|
|
|
|
|
|
|
[float]
|
|
|
|
|
[[monitoring-collection-settings]]
|
2019-02-11 18:50:20 +01:00
|
|
|
|
==== Monitoring collection settings
|
2018-04-20 21:13:37 +02:00
|
|
|
|
|
|
|
|
|
These settings control how data is collected from {kib}.
|
|
|
|
|
|
2020-05-04 17:48:29 +02:00
|
|
|
|
[cols="2*<"]
|
|
|
|
|
|===
|
|
|
|
|
| `monitoring.kibana.collection.enabled`
|
|
|
|
|
| Set to `true` (default) to enable data collection from the {kib} NodeJS server
|
|
|
|
|
for {kib} Dashboards to be featured in the Monitoring.
|
2018-04-20 21:13:37 +02:00
|
|
|
|
|
2020-05-04 17:48:29 +02:00
|
|
|
|
| `monitoring.kibana.collection.interval`
|
|
|
|
|
| Specifies the number of milliseconds to wait in between data sampling on the
|
|
|
|
|
{kib} NodeJS server for the metrics that are displayed in the {kib} dashboards.
|
|
|
|
|
Defaults to `10000` (10 seconds).
|
2018-04-20 21:13:37 +02:00
|
|
|
|
|
2020-05-04 17:48:29 +02:00
|
|
|
|
|===
|
2018-04-20 21:13:37 +02:00
|
|
|
|
|
|
|
|
|
[float]
|
|
|
|
|
[[monitoring-ui-settings]]
|
2019-02-11 18:50:20 +01:00
|
|
|
|
==== Monitoring UI settings
|
2018-04-20 21:13:37 +02:00
|
|
|
|
|
|
|
|
|
These settings adjust how the {kib} Monitoring page displays monitoring data.
|
|
|
|
|
However, the defaults work best in most circumstances. For more information
|
|
|
|
|
about configuring {kib}, see
|
|
|
|
|
{kibana-ref}/settings.html[Setting Kibana Server Properties].
|
|
|
|
|
|
2020-05-04 17:48:29 +02:00
|
|
|
|
[cols="2*<"]
|
|
|
|
|
|===
|
|
|
|
|
| `monitoring.ui.elasticsearch.logFetchCount`
|
|
|
|
|
| Specifies the number of log entries to display in the Monitoring UI. Defaults to
|
|
|
|
|
`10`. The maximum value is `50`.
|
2018-04-20 21:13:37 +02:00
|
|
|
|
|
2020-05-04 17:48:29 +02:00
|
|
|
|
| `monitoring.ui.max_bucket_size`
|
|
|
|
|
| Specifies the number of term buckets to return out of the overall terms list when
|
|
|
|
|
performing terms aggregations to retrieve index and node metrics. For more
|
|
|
|
|
information about the `size` parameter, see
|
|
|
|
|
{ref}/search-aggregations-bucket-terms-aggregation.html#search-aggregations-bucket-terms-aggregation-size[Terms Aggregation].
|
|
|
|
|
Defaults to `10000`.
|
2018-04-20 21:13:37 +02:00
|
|
|
|
|
2020-05-04 17:48:29 +02:00
|
|
|
|
| `monitoring.ui.min_interval_seconds`
|
|
|
|
|
| Specifies the minimum number of seconds that a time bucket in a chart can
|
|
|
|
|
represent. Defaults to 10. If you modify the
|
|
|
|
|
`monitoring.ui.collection.interval` in `elasticsearch.yml`, use the same
|
|
|
|
|
value in this setting.
|
2018-04-20 21:13:37 +02:00
|
|
|
|
|
2020-05-04 17:48:29 +02:00
|
|
|
|
| `monitoring.ui.enabled`
|
|
|
|
|
| Set to `false` to hide the Monitoring UI in {kib}. The monitoring back-end
|
|
|
|
|
continues to run as an agent for sending {kib} stats to the monitoring
|
|
|
|
|
cluster. Defaults to `true`.
|
|
|
|
|
|
|
|
|
|
|===
|
2019-06-18 17:37:39 +02:00
|
|
|
|
|
2018-04-20 21:13:37 +02:00
|
|
|
|
[float]
|
|
|
|
|
[[monitoring-ui-cgroup-settings]]
|
2019-02-11 18:50:20 +01:00
|
|
|
|
===== Monitoring UI container settings
|
2018-04-20 21:13:37 +02:00
|
|
|
|
|
|
|
|
|
The Monitoring UI exposes the Cgroup statistics that we collect for you to make
|
|
|
|
|
better decisions about your container performance, rather than guessing based on
|
|
|
|
|
the overall machine performance. If you are not running your applications in a
|
|
|
|
|
container, then Cgroup statistics are not useful.
|
|
|
|
|
|
2020-05-04 17:48:29 +02:00
|
|
|
|
[cols="2*<"]
|
|
|
|
|
|===
|
|
|
|
|
| `monitoring.ui.container.elasticsearch.enabled`
|
|
|
|
|
| For {es} clusters that are running in containers, this setting changes the
|
|
|
|
|
*Node Listing* to display the CPU utilization based on the reported Cgroup
|
|
|
|
|
statistics. It also adds the calculated Cgroup CPU utilization to the
|
|
|
|
|
*Node Overview* page instead of the overall operating system's CPU
|
|
|
|
|
utilization. Defaults to `false`.
|
|
|
|
|
|
|
|
|
|
| `monitoring.ui.container.logstash.enabled`
|
|
|
|
|
| For {ls} nodes that are running in containers, this setting
|
|
|
|
|
changes the {ls} *Node Listing* to display the CPU utilization
|
|
|
|
|
based on the reported Cgroup statistics. It also adds the
|
|
|
|
|
calculated Cgroup CPU utilization to the {ls} node detail
|
|
|
|
|
pages instead of the overall operating system’s CPU utilization. Defaults to `false`.
|
|
|
|
|
|
|
|
|
|
|===
|