diff --git a/docs/en/stack/monitoring/esms.asciidoc b/docs/en/stack/monitoring/esms.asciidoc new file mode 100644 index 000000000..432de263d --- /dev/null +++ b/docs/en/stack/monitoring/esms.asciidoc @@ -0,0 +1,176 @@ +[role="xpack"] +[[esms]] +== {esms} + +The {esms} ({esms-init}) is a monitoring cluster on {ecloud}. Elastic provides +and maintains {esms-init} for self-managed commercial customers. If you send +your monitoring data to {esms-init}, it can also be used by Elastic support to +provide better and faster incident resolution. + +NOTE: You must obtain your {esms-init} cluster URLs and credentials from the +Elastic support team. + +[discrete] +[[esms-elasticsearch]] +=== Collecting monitoring data about {es} + +There are two methods for collecting and sending data about the health of your +production cluster to {esms-init}: {metricbeat} or collectors and exporters. + +TIP: If you want to monitor {ls}, you must use collectors and exporters to route +data from the production cluster to {esms-init}. Otherwise, it is simplest to +use {metricbeat}. + +To use {metricbeat}: + +. Enable the collection of monitoring data on your cluster. ++ +-- +include::{es-repo-dir}/monitoring/configuring-metricbeat.asciidoc[tag=enable-collection] + +For more information about these settings, see +{ref}/monitoring-settings.html[Monitoring settings in {es}]. +-- + +. Disable the default collection of {es} monitoring metrics. ++ +-- +include::{es-repo-dir}/monitoring/configuring-metricbeat.asciidoc[tag=disable-default-collection] +-- + +. {metricbeat-ref}/metricbeat-installation.html[Install {metricbeat}] on each +node. + +. Enable the {es} {xpack} module in {metricbeat} on each node. + ++ +-- +include::{es-repo-dir}/monitoring/configuring-metricbeat.asciidoc[tag=enable-es-module] +-- + +. Configure the {es} {xpack} module in {metricbeat} on each node. + ++ +-- +include::{es-repo-dir}/monitoring/configuring-metricbeat.asciidoc[tag=configure-es-module] + +include::{es-repo-dir}/monitoring/configuring-metricbeat.asciidoc[tag=remote-monitoring-user] +-- + +. Optional: Disable the system module in {metricbeat}. + ++ +-- +include::{es-repo-dir}/monitoring/configuring-metricbeat.asciidoc[tag=disable-system-module] +-- + +. Identify where to send the {es} monitoring data and supply the necessary +security information. Add the following settings in the {metricbeat} +configuration file (`metricbeat.yml`): ++ +-- +[source,yaml] +---------------------------------- +output.elasticsearch: + hosts: ["MONITORING_ELASTICSEARCH_URL"] <1> + username: cloud_monitoring_agent <2> + password: MONITORING_AGENT_PASSWORD <3> +---------------------------------- +<1> Replace `MONITORING_ELASTICSEARCH_URL` with the appropriate URL for {esms-init}. +<2> The Elastic support team creates this user in {esms-init} and grants it the +{stack-ov}/built-in-roles.html[`remote_monitoring_agent` built-in role]. +<3> Replace `MONITORING_AGENT_PASSWORD` with the value provided to you by the +Elastic support team. +-- + +. {metricbeat-ref}/metricbeat-starting.html[Start {metricbeat}]. + +. Verify that your monitoring data exists in {esms-init}. ++ +-- +Open {kib} in your web browser. Use the {kib} URL and the administrator user ID +that was provided to you by the Elastic support team. +{kibana-ref}/elasticsearch-metrics.html[View the {es} metrics] on the +*Monitoring* page. + +If you do not see your metrics yet, see +<>. +-- + +[discrete] +[[esms-kibana]] +=== Collecting monitoring data about {kib} + +There are two methods for sending monitoring data about {kib} to {esms-init}. +You can send it directly to {esms-init} by using {metricbeat} or you can route +it through exporters on the production cluster. + +TIP: It is simplest to use {metricbeat}. + +To use {metricbeat}: + +. Disable the default collection of {kib} monitoring metrics. + ++ +-- +include::{kib-repo-dir}/monitoring/monitoring-metricbeat.asciidoc[tag=disable-kibana-collection] + +For more information, see +{kibana-ref}/monitoring-settings-kb.html[Monitoring settings in {kib}]. +-- + +. {kibana-ref}/start-stop.html[Start {kib}]. + +. Ensure that the `xpack.monitoring.collection.enabled` setting is `true` on +each node in the production cluster. + +. {metricbeat-ref}/metricbeat-installation.html[Install {metricbeat}] on the +same server as {kib}. + +. Enable the {kib} {xpack} module in {metricbeat}. + ++ +-- +include::{kib-repo-dir}/monitoring/monitoring-metricbeat.asciidoc[tag=enable-kibana-module] +-- + +. Configure the {kib} {xpack} module in {metricbeat}. + ++ +-- +include::{kib-repo-dir}/monitoring/monitoring-metricbeat.asciidoc[tag=configure-kibana-module] + +include::{kib-repo-dir}/monitoring/monitoring-metricbeat.asciidoc[tag=remote-monitoring-user] +-- + +. Optional: Disable the system module in {metricbeat}. + ++ +-- +include::{kib-repo-dir}/monitoring/monitoring-metricbeat.asciidoc[tag=disable-system-module] +-- + +. Identify where to send the {kib} monitoring data and supply the necessary +security information. Add the following settings in the {metricbeat} +configuration file (`metricbeat.yml`): ++ +-- +[source,yaml] +---------------------------------- + output.elasticsearch: + hosts: ["MONITORING_ELASTICSEARCH_URL"] <1> + username: cloud_monitoring_agent <2> + password: MONITORING_AGENT_PASSWORD <3> +---------------------------------- +<1> Replace `MONITORING_ELASTICSEARCH_URL` with the appropriate URL for {esms-init}. +<2> The Elastic support team creates this user in {esms-init} and grants it the +{stack-ov}/built-in-roles.html[`remote_monitoring_agent` built-in role]. +<3> Replace `MONITORING_AGENT_PASSWORD` with the value provided to you by the + Elastic support team. +-- + +. {metricbeat-ref}/metricbeat-starting.html[Start {metricbeat}]. + +. Verify that your monitoring data exists in {esms-init}. ++ +-- +Open {kib} in your web browser. Use the {kib} URL and the administrator user ID +that was provided to you by the Elastic support team. +{kibana-ref}/kibana-page.html[View the {kib} metrics] on the *Monitoring* page. + +If you do not see your metrics yet, see +<>. +-- diff --git a/docs/en/stack/monitoring/index.asciidoc b/docs/en/stack/monitoring/index.asciidoc index 1c449c32d..da045a734 100644 --- a/docs/en/stack/monitoring/index.asciidoc +++ b/docs/en/stack/monitoring/index.asciidoc @@ -1,3 +1,4 @@ include::intro.asciidoc[] include::how-monitoring-works.asciidoc[] include::production.asciidoc[] +include::esms.asciidoc[] diff --git a/docs/en/stack/monitoring/production.asciidoc b/docs/en/stack/monitoring/production.asciidoc index 16b9989fe..2efa337a3 100644 --- a/docs/en/stack/monitoring/production.asciidoc +++ b/docs/en/stack/monitoring/production.asciidoc @@ -5,7 +5,8 @@ By default, monitoring agents store data in the cluster where they're running. In production, you should send data to a separate _monitoring cluster_ so that historical monitoring -data is available even when the nodes you are monitoring are not. +data is available even when the nodes you are monitoring are not. If you are +sending your data to the ESMS, see <>. In 6.4 and later, you can use {metricbeat} to ship monitoring data about {kib} to a separate monitoring cluster. In 6.5 and later, you can do the same diff --git a/docs/en/stack/monitoring/troubleshooting.asciidoc b/docs/en/stack/monitoring/troubleshooting.asciidoc index df7994f97..9f5726bef 100644 --- a/docs/en/stack/monitoring/troubleshooting.asciidoc +++ b/docs/en/stack/monitoring/troubleshooting.asciidoc @@ -4,5 +4,17 @@ Monitoring ++++ -See +See also {logstash-ref}/monitoring-troubleshooting.html[Troubleshooting monitoring in Logstash]. + +*Symptoms*: +There is no information about your cluster on the *Monitoring* page in {kib}. + +*Resolution*: +Check whether the appropriate indices exist on the monitoring cluster. For +example, use the {ref}/cat-indices.html[cat indices] command to verify that +there is a `.monitoring-kibana*` index for your {kib} monitoring data and a +`.monitoring-es*` index for your {es} monitoring data. If you are collecting +monitoring data by using {metricbeat} the indices have `-mb` in their names. If +the indices do not exist, review your configuration: <>. +