-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
<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
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
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``:
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
"""""""
.. 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
--------------------