]> git.proxmox.com Git - ceph.git/blobdiff - ceph/doc/cephadm/monitoring.rst
update source to Ceph Pacific 16.2.2
[ceph.git] / ceph / doc / cephadm / monitoring.rst
index a694efaed69eb837764fdb48a14429afbcde8a2f..e2e180c22bfcb31ef70e5290b48580f2aea01d86 100644 (file)
@@ -1,5 +1,7 @@
-Monitoring Stack with Cephadm
-=============================
+.. _mgr-cephadm-monitoring:
+
+Monitoring Services
+===================
 
 Ceph Dashboard uses `Prometheus <https://prometheus.io/>`_, `Grafana
 <https://grafana.com/>`_, and related tools to store and visualize detailed
@@ -36,6 +38,9 @@ Manager <https://prometheus.io/docs/alerting/alertmanager/>`_ and `Grafana
   <https://prometheus.io/docs/operating/security/>` for more detailed
   information.
 
+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
@@ -114,21 +119,14 @@ A custom certificate can be configured using the following commands.
   ceph config-key set mgr/cephadm/grafana_key -i $PWD/key.pem
   ceph config-key set mgr/cephadm/grafana_crt -i $PWD/certificate.pem
 
-The ``cephadm`` manager module needs to be restarted to be able to read updates
-to these keys.
-
-.. code-block:: bash
-
-  ceph orch restart mgr
-
-If you already deployed Grafana, you need to redeploy the service for the
+If you already deployed Grafana, you need to ``reconfig`` the service for the
 configuration to be updated.
 
 .. code-block:: bash
 
-  ceph orch redeploy grafana
+  ceph orch reconfig grafana
 
-The ``redeploy`` command also takes care of setting the right URL for Ceph
+The ``reconfig`` command also takes care of setting the right URL for Ceph
 Dashboard.
 
 Using custom images
@@ -206,10 +204,10 @@ The following templates for files that will be generated by cephadm can be
 overridden. These are the names to be used when storing with ``ceph config-key
 set``:
 
-- ``alertmanager_alertmanager.yml``
-- ``grafana_ceph-dashboard.yml``
-- ``grafana_grafana.ini``
-- ``prometheus_prometheus.yml``
+- ``services/alertmanager/alertmanager.yml``
+- ``services/grafana/ceph-dashboard.yml``
+- ``services/grafana/grafana.ini``
+- ``services/prometheus/prometheus.yml``
 
 You can look up the file templates that are currently used by cephadm in
 ``src/pybind/mgr/cephadm/templates``:
@@ -239,9 +237,9 @@ To set contents of files as template use the ``-i`` argument:
   When using files as input to ``config-key`` an absolute path to the file must
   be used.
 
-It is required to restart the cephadm mgr module after a configuration option
-has been set. Then the configuration file for the service needs to be recreated.
-This is done using `redeploy`. For more details see the following example.
+
+Then the configuration file for the service needs to be recreated.
+This is done using `reconfig`. For more details see the following example.
 
 Example
 """""""
@@ -249,14 +247,11 @@ Example
 .. code-block:: bash
 
   # set the contents of ./prometheus.yml.j2 as template
-  ceph config-key set mgr/cephadm/services_prometheus_prometheus.yml \
+  ceph config-key set mgr/cephadm/services/prometheus/prometheus.yml \
     -i $PWD/prometheus.yml.j2
 
-  # restart cephadm mgr module
-  ceph orch restart mgr
-
-  # redeploy the prometheus service
-  ceph orch redeploy prometheus
+  # reconfig the prometheus service
+  ceph orch reconfig prometheus
 
 Disabling monitoring
 --------------------