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 ``reconfig`` the service for the
configuration to be updated.
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.
+
+Then the configuration file for the service needs to be recreated.
This is done using `reconfig`. For more details see the following example.
Example
ceph config-key set mgr/cephadm/services/prometheus/prometheus.yml \
-i $PWD/prometheus.yml.j2
- # restart cephadm mgr module
- ceph orch restart mgr
-
# reconfig the prometheus service
ceph orch reconfig prometheus