From: Zac Dover Date: Sun, 9 May 2021 14:39:47 +0000 (+1000) Subject: doc/cephadm: rewrite "deploy. mon. w/cephadm" X-Git-Tag: v16.2.5~72^2~16 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=30d9ffa61db2e4fb9c9400ca3f5ee641bbbd4fde;p=ceph.git doc/cephadm: rewrite "deploy. mon. w/cephadm" This PR corrects various minor usage errors in the subsection "Deploying Monitoring with cephadm" of the "monitoring" section of the cephadm guide. It also adds prompts, and cleans up the list rst a bit. This is the first of two PRs planned for this section. The second PR will create a sub-subsection that explains an additional installation step that is necessary when a Ceph cluster and a user accessing that cluster are in different DNS zones. But that's another story, for another PR. Signed-off-by: Zac Dover (cherry picked from commit e8419b53fbfd143c37ae80b0eeb441c26c5316f1) --- diff --git a/doc/cephadm/monitoring.rst b/doc/cephadm/monitoring.rst index 7de9e75feafe..e1532097e4b4 100644 --- a/doc/cephadm/monitoring.rst +++ b/doc/cephadm/monitoring.rst @@ -41,39 +41,51 @@ Manager `_ and `Grafana Deploying monitoring with cephadm --------------------------------- -By default, bootstrap will deploy a basic monitoring stack. If you -did not do this (by passing ``--skip-monitoring-stack``, or if you -converted an existing cluster to cephadm management, you can set up -monitoring by following the steps below. +The default behavior of ``cephadm`` is to deploy a basic monitoring stack. It +is however possible that you have a Ceph cluster without a monitoring stack, +and you would like to add a monitoring stack to it. (Here are some ways that +you might have come to have a Ceph cluster without a monitoring stack: You +might have passed the ``--skip-monitoring stack`` option to ``cephadm`` during +the installation of the cluster, or you might have converted an existing +cluster (which had no monitoring stack) to cephadm management.) -#. Enable the prometheus module in the ceph-mgr daemon. This exposes the internal Ceph metrics so that prometheus can scrape them. +To set up monitoring on a Ceph cluster that has no monitoring, follow the +steps below: - .. code-block:: bash +#. Enable the Prometheus module in the ceph-mgr daemon. This exposes the internal Ceph metrics so that Prometheus can scrape them: + + .. prompt:: bash # ceph mgr module enable prometheus -#. Deploy a node-exporter service on every node of the cluster. The node-exporter provides host-level metrics like CPU and memory utilization. +#. Deploy a node-exporter service on every node of the cluster. The node-exporter provides host-level metrics like CPU and memory utilization: - .. code-block:: bash + .. prompt:: bash # ceph orch apply node-exporter '*' -#. Deploy alertmanager +#. Deploy alertmanager: - .. code-block:: bash + .. prompt:: bash # ceph orch apply alertmanager 1 -#. Deploy prometheus. A single prometheus instance is sufficient, but - for HA you may want to deploy two. +#. Deploy Prometheus. A single Prometheus instance is sufficient, but + for high availablility (HA) you might want to deploy two: + + .. prompt:: bash # + + ceph orch apply prometheus 1 - .. code-block:: bash + or - ceph orch apply prometheus 1 # or 2 + .. prompt:: bash # + + ceph orch apply prometheus 2 -#. Deploy grafana +#. Deploy grafana: - .. code-block:: bash + .. prompt:: bash # ceph orch apply grafana 1